Basic Prerequisites: Probability & Measure Theory (Poisson processes, MLE) and 02 · PIN.


1. Intuition & Practical Objective

PIN in 02 gives the formula; this page makes it estimable. The EKOP model (Easley, Kiefer & O’Hara 1997) is the full generative story behind PIN: a daily mixture of three Poisson processes, with parameters to be estimated from observed daily buy/sell counts by maximum likelihood.

The intuition: on any day, exactly one of three regimes generates the counts -

  1. No information event (prob ): buys ~ , sells ~ - balanced.
  2. Good news (prob ): buys ~ , sells ~ - buys lopsided.
  3. Bad news (prob ): buys ~ , sells ~ - sells lopsided.

The likelihood of any observed is the weighted average of the three Poisson probabilities. Maximizing the log-likelihood over the parameter grid recovers - and with them PIN.

The practical objective: implement the full likelihood, fit it to simulated data of known truth, and verify that MLE recovers the true PIN - the honest, working rendition of the primary paper.


2. Mathematical Ground Truth & Derivations

Poisson probabilities. A single day with buys and sells has probability (Hasbrouck eq. 6.3):

Log-likelihood over days (each day independent):

The parameters are estimated by maximizing over (grid search is a robust, transparent method for this small three-parameter problem). PIN follows:

Why only is well identified. The likelihood surface is shallow over the ridge where is constant - many pairs give nearly the same fit. The product is identified, so is stable even though individually bounce around the grid (Hasbrouck Ch 6).


3. Computational Implementation - full EKOP likelihood + MLE (stdlib only)

Generate 5000 days from known truth (true PIN ), then grid-search the likelihood and show the MLE recovers it.

MLE recovers the truth: estimated PIN , exactly equal to the true PIN, and is matched. This is the full EKOP pipeline - the same machinery that turns real daily buy/sell counts into an information-risk estimate.


4. Failure Modes & First-Principles Breakdowns

  1. The identification ridge. With a coarse grid or too little data, MLE can pick a different pair with the same product - PIN stays right, but the individual rates are not trustworthy. Never report or in isolation.
  2. Grid search resolution. The estimate is only as good as the grid. Refining the grid (or using a continuous optimizer) changes while leaving essentially fixed - another sign that the product, not the parts, is identified.
  3. Daily counts throw away the tape. The EKOP likelihood uses only daily totals; intraday timing, order sizes, and sequence are discarded. This is the precise gap VPIN (volume buckets) is designed to close for high-frequency data (04 · VPIN).
  4. Model misspecification. Real data has correlation in uninformed arrivals, clustering, and multi-day information events that violate the i.i.d.-daily-Poisson assumption; PIN then becomes a biased estimator of the true informed fraction.

5. References

  • Easley, Kiefer & O’Hara (1997), The information content of the trading process, J. Empirical Finance 4, 159–186
  • Hasbrouck (2007), Empirical Market Microstructure
  • Easley, Hvidkjaer & O’Hara (2002), Is information risk a determinant of asset returns?, J. Finance 57(5)

6. Connected Graph Bridges