MathFin
Map / Choice · Market microstructure / MathFin.Markets.Microstructure.GlostenMilgromSequential

The Glosten–Milgrom quote sequence is a martingale for the dealer's measure

MathFin.Markets.Microstructure.GlostenMilgromSequentialMSC 91B26MSC 60G42JEL D82JEL G14 source

The one-trade theory (GlostenMilgrom) posits the dealer's quotes as E[V | buy] and E[V | sell] and updates the belief θ that the value is high by postBuy/postSell. This file runs the model along a sequence of trades. The value is high with prior θ; trader i is informed with probability p (and then trades on the value) or else tosses a fair coin, all independently of each other given the value; the dealer sees only the order directions. The dealer's quote after a history is V_L + θₙ (V_H − V_L), where θₙ iterates postBuy/postSell over the history. The sample space is Bool × (ℕ → Bool × Bool) with the product measure Measure.infinitePi, so there is no horizon.

The quote process is shown to be P[V | 𝓖 n] almost surely, 𝓖 n the σ-algebra generated by the first n order directions, and hence the dealer's measure prices the market of quotes.

Main definitions

  • gmSeqMeasure: the sequential Glosten–Milgrom measure on Bool × (ℕ → Bool × Bool).
  • gmFiltration: the σ-algebras generated by the first n order directions.
  • gmQuote: the dealer's quote, V_L + θₙ (V_H − V_L) with θₙ iterating postBuy/postSell.

Main results

  • condExp_comap_ae_eq_of_fibres: for a map to a finite type, a function whose fibre masses match the integrals of f is a version of μ[f | comap D].
  • gmBelief_eq: the iterated Bayes updates are the likelihood-ratio posterior.
  • gmQuote_ae_eq_condExp: gmQuote n = P[V | 𝓖 n] almost surely, for every n.
  • gmQuote_isPricingMeasure: the quotes are those conditional expectations and P is a pricing measure of the market whose asset is n ↦ P[V | 𝓖 n].
  • gmFiltration_one, gmQuote_one_ae_eq_quote: after one order the dealer's information is σ(first order is a buy), and the sequential quote is almost surely the posited ask on a buy and bid on a sell of condExp_payoff_eq_quote.

Scope

Interior prior 0 < θ < 1 and informed share 0 ≤ p < 1: at p = 1 some histories are null and the quote there is a junk value of postBuy/postSell. The posited quote (the Bayes posterior) is as in GlostenMilgrom; its derivation from a competitive dealer's zero expected profit is not formalized.

References

  • L. R. Glosten and P. R. Milgrom, Bid, ask and transaction prices in a specialist market with heterogeneously informed traders [GlostenMilgrom1985]

Tags

Glosten–Milgrom model, market maker quotes, sequential trades, Bayesian updating, martingale, pricing measure, conditional expectation, MSC 91B26, MSC 60G42, JEL D82, JEL G14

Import neighbourhood

Above: what it imports. Below: what imports it.

Corpus entries

mf-glosten-milgrom-quote-sequence-pricing-measure · market_microstructure.json · full statement
Glosten-Milgrom Quote Sequence Is a Martingale Priced by the Dealer's Measure

In the sequential Glosten-Milgrom model (value high with prior theta in (0,1); each trader informed with probability p in [0,1) and then trading on the value, else tossing a fair coin; traders independent given the value; sample space Bool x (N -> Bool x Bool) with the infinite product measure), the dealer's quote after n orders, V_L + theta_n (V_H - V_L) with theta_n the posterior iterated by the one-trade Bayes updates postBuy/postSell over the order history, is almost surely the conditional expectation of the value given the sigma-algebra generated by the first n order directions. Hence the dealer's measure is a pricing measure, at every horizon, of the discrete market whose asset is that quote process. The quote is the Bayes posterior as in the one-trade entries; its derivation from a competitive dealer's zero expected profit is not formalized; p = 1 is excluded.

Declarations 33

theoremMathFin.Execution.condExp_comap_ae_eq_of_fibressource
∀ {Ω : Type u_1} {β : Type u_2} [MeasurableSpace Ω] [Fintype β] [MeasurableSpace β] [MeasurableSingletonClass β] (μ : Measure Ω) [IsFiniteMeasure μ] {D : Ω → β}, Measurable D → ∀ {f : Ω → ℝ}, Integrable f μ → ∀ (q : β → ℝ), (∀ (b : β), μ.real (D ⁻¹' {b}) * q b = ∫ (ω : Ω) in D ⁻¹' {b}, f ω ∂μ) → μ[f | MeasurableSpace.comap D inferInstance] =ᵐ[μ] fun ω => q (D ω)

Conditional expectation given a finite-valued map, from the fibres. If the mass of each fibre of D times q b is the integral of f over that fibre, then q ∘ D is a version of μ[f | comap D].

defMathFin.Execution.gmBernsource
ℝ → Measure Bool

The Bernoulli law on Bool, true with probability q (clamped to [0, 1]).

theoremMathFin.Execution.instIsProbabilityMeasureBoolGmBern @[instance]source
∀ (q : ℝ), IsProbabilityMeasure (gmBern q)
theoremMathFin.Execution.gmBern_real_truesource
∀ {q : ℝ}, 0 ≤ q → q ≤ 1 → (gmBern q).real {true} = q
theoremMathFin.Execution.gmBern_real_falsesource
∀ {q : ℝ}, 0 ≤ q → q ≤ 1 → (gmBern q).real {false} = 1 - q
defMathFin.Execution.GMTradersource
Type

A trader is a pair: whether informed, and the coin an uninformed trader tosses.

defMathFin.Execution.gmDirectionsource
Bool → GMTrader → Bool

The order direction (true = buy) of trader t when the value is high iff s: an informed trader trades on the value, an uninformed one follows the coin.

defMathFin.Execution.gmTraderLawsource
ℝ → Measure GMTrader

The law of a trader: informed with probability p, a fair coin independent of it.

theoremMathFin.Execution.instIsProbabilityMeasureGMTraderGmTraderLaw @[instance]source
∀ (p : ℝ), IsProbabilityMeasure (gmTraderLaw p)
defMathFin.Execution.gmSeqMeasuresource
ℝ → ℝ → Measure (Bool × (ℕ → GMTrader))

The sequential Glosten–Milgrom measure. Value high with prior θ; independently of the value, trader i is drawn from gmTraderLaw p, independently across i.

theoremMathFin.Execution.instIsProbabilityMeasureProdBoolForallNatGMTraderGmSeqMeasure @[instance]source
∀ (θ p : ℝ), IsProbabilityMeasure (gmSeqMeasure θ p)
defMathFin.Execution.gmSeqHighsource
Set (Bool × (ℕ → GMTrader))

The value is high: the state coordinate is true.

theoremMathFin.Execution.measurableSet_gmSeqHighsource
MeasurableSet gmSeqHigh
defMathFin.Execution.gmLiksource
ℝ → Bool → Bool → ℝ

The likelihood of an order direction b when the value state is s: (1 + p)/2 if the order agrees with the value, (1 - p)/2 otherwise.

theoremMathFin.Execution.gmLik_selfsource
∀ (p : ℝ) (s : Bool), gmLik p s s = (1 + p) / 2
used by 1: gmStep_eq
theoremMathFin.Execution.gmLik_nesource
∀ (p : ℝ) {s b : Bool}, s ≠ b → gmLik p s b = (1 - p) / 2
used by 1: gmStep_eq
theoremMathFin.Execution.gmLik_possource
∀ {p : ℝ}, 0 ≤ p → p < 1 → ∀ (s b : Bool), 0 < gmLik p s b
theoremMathFin.Execution.gmTraderLaw_realsource
∀ {p : ℝ}, 0 ≤ p → p ≤ 1 → ∀ (s b : Bool), (gmTraderLaw p).real {t | gmDirection s t = b} = gmLik p s b
defMathFin.Execution.gmHistsource
(n : ℕ) → Bool × (ℕ → GMTrader) → Fin n → Bool

The first n order directions the dealer observes.

theoremMathFin.Execution.measurable_gmHistsource
∀ (n : ℕ), Measurable (gmHist n)
defMathFin.Execution.gmFiltrationsource
Filtration ℕ inferInstance

The dealer's information: the σ-algebra generated by the first n order directions.

defMathFin.Execution.gmStepsource
ℝ → ℝ → Bool → ℝ

One Bayes update of the belief that the value is high, on an order direction (true = buy): postBuy after a buy, postSell after a sell.

defMathFin.Execution.gmBeliefsource
ℝ → ℝ → List Bool → ℝ

The dealer's belief after a history: the Bayes updates postBuy/postSell iterated.

defMathFin.Execution.gmQuotesource
ℝ → ℝ → ℝ → ℝ → ℕ → Bool × (ℕ → GMTrader) → ℝ

The dealer's quote after the first n orders: V_L + θₙ (V_H − V_L).

theoremMathFin.Execution.gmStep_eqsource
∀ {θ p : ℝ}, 0 < θ → θ < 1 → 0 ≤ p → p < 1 → ∀ (b : Bool), gmStep p θ b = θ * gmLik p true b / (θ * gmLik p true b + (1 - θ) * gmLik p false b)
used by 1: gmBelief_eq
theoremMathFin.Execution.gmBelief_eqsource
∀ {p : ℝ}, 0 ≤ p → p < 1 → ∀ (l : List Bool) (θ : ℝ), 0 < θ → θ < 1 → gmBelief θ p l = θ * (List.map (gmLik p true) l).prod / (θ * (List.map (gmLik p true) l).prod + (1 - θ) * (List.map (gmLik p false) l).prod)

The iterated Bayes updates are the likelihood-ratio posterior: after a history l the belief gmBelief θ p l is θ ∏ lik_high / (θ ∏ lik_high + (1 - θ) ∏ lik_low).

theoremMathFin.Execution.gmSeqMeasure_real_cylindersource
∀ {θ p : ℝ}, 0 ≤ p → p ≤ 1 → ∀ (n : ℕ) (h : Fin n → Bool) (s : Bool), (gmSeqMeasure θ p).real ({s} ×ˢ {τ | ∀ (i : Fin n), gmDirection s (τ ↑i) = h i}) = (gmBern θ).real {s} * ∏ i, gmLik p s (h i)
theoremMathFin.Execution.gmQuote_ae_eq_condExpsource
∀ {θ p : ℝ}, 0 < θ → θ < 1 → 0 ≤ p → p < 1 → ∀ (VL VH : ℝ) (n : ℕ), (gmSeqMeasure θ p)[payoff gmSeqHigh VL VH | ↑gmFiltration n] =ᵐ[gmSeqMeasure θ p] gmQuote θ p VL VH n

The dealer's quote is the conditional expectation of the value given the order history. For every n, gmQuote n is P-almost surely P[V | 𝓖 n], where V is the two-valued asset V_H on the high-value event and V_L off it, and 𝓖 n is generated by the first n order directions.

theoremMathFin.Execution.gmQuote_isPricingMeasuresource
∀ {θ p : ℝ}, 0 < θ → θ < 1 → 0 ≤ p → p < 1 → ∀ (VL VH : ℝ) (T : ℕ), (∀ (n : ℕ), gmQuote θ p VL VH n =ᵐ[gmSeqMeasure θ p] (gmSeqMeasure θ p)[payoff gmSeqHigh VL VH | ↑gmFiltration n]) ∧ (toMarket (gmSeqMeasure θ p) gmFiltration (fun n => (gmSeqMeasure θ p)[payoff gmSeqHigh VL VH | ↑gmFiltration n]) T ⋯).IsPricingMeasure (↑T) (gmSeqMeasure θ p)

The dealer's measure prices the market of quotes. The dealer's quote process is P-almost surely the conditional expectation process n ↦ P[V | 𝓖 n], and P is a pricing measure, at every horizon T, of the discrete market whose asset is that process (a P-martingale).

defMathFin.Execution.gmFirstBuysource
Set (Bool × (ℕ → GMTrader))

The first order is a buy: the event {gmHist 1 = (true)}.

theoremMathFin.Execution.measurableSet_gmFirstBuysource
MeasurableSet gmFirstBuy
theoremMathFin.Execution.gmFiltration_onesource
↑gmFiltration 1 = MeasurableSpace.generateFrom {gmFirstBuy}

After one order the dealer's information is the first order's direction: 𝓖 1 is the σ-algebra σ(B) generated by the event B = gmFirstBuy that it is a buy.

theoremMathFin.Execution.gmQuote_one_ae_eq_quotesource
∀ {θ p : ℝ}, 0 < θ → θ < 1 → 0 ≤ p → p < 1 → ∀ (VL VH : ℝ) [DecidablePred fun x => x ∈ gmFirstBuy], gmQuote θ p VL VH 1 =ᵐ[gmSeqMeasure θ p] gmFirstBuy.piecewise (fun x => ∫ (ω : Bool × (ℕ → GMTrader)), payoff gmSeqHigh VL VH ω ∂(gmSeqMeasure θ p)[|gmFirstBuy]) fun x => ∫ (ω : Bool × (ℕ → GMTrader)), payoff gmSeqHigh VL VH ω ∂(gmSeqMeasure θ p)[|gmFirstBuyᶜ]

The sequential quote after one order is the one-trade quote. In the sequential Glosten–Milgrom model, the dealer's quote after the first order is, P-almost surely, the ask ∫ V ∂P[|B] if the order is a buy (B = gmFirstBuy) and the bid ∫ V ∂P[|Bᶜ] if it is a sell: the quotes that condExp_payoff_eq_quote identifies with P[V | σ(B)].