Skip to main content
by learnformula
Explore courses
search
For Business
Team license & compliance management
For Higher Education
Academic partnerships
For Government Agencies
Government training solutions
For Instructors & Course Creators
Teach on our marketplace
Become a Sponsor
Reach professionals where they learn
Log inStart 7-Day Free TrialStart Free TrialStart Free Trial
search
Explore courses
  1. Courses
  2. /Information Technology
  3. /Programming Language

A Primer on Quant Trading

Order Book Statistics, Dynamics and Modeling: Empirical Facts, Diffusion Models of Book Size and the Bouchaud-Mézard-Potters Model, Fitted to Tick Data and Synthetic Data in Python

Created byJerome Busca
BeginnerUpdated Nov 25, 2026

What You'll Learn

  • check_circleDescribe how an order book works and how liquidity providers and liquidity takers interact in it.
  • check_circleCompute and interpret the histogram of the order book's total size and the average liquidity profile from tick data.
  • check_circleDerive a diffusion model for the probability density of book size, and explain why a source term is needed to keep the density normalized.
  • check_circleSolve the stationary diffusion equations explicitly, locate the most likely book size, and fit the resulting models to empirical data with least squares in Python.
  • check_circleExplain how the Bouchaud-Mézard-Potters model produces the observed bell-shaped liquidity profile, with low liquidity near the best bid and offer and a peak inside the book.
  • check_circleEvaluate how well each model fits real data compared with synthetic data, and discuss the limitations of simple diffusion models.

About This Course

This course introduces the order book, the building block of electronic trading, and shows why its statistical and dynamical behavior matters when implementing a quant strategy. Learners start with real tick data for a Nasdaq-listed stock and find two empirical facts. The total size of one side of the book has a well-defined most likely value, and liquidity peaks inside the book rather than right at the best bid or offer. The course then builds mathematical models for each fact. Diffusion models explain the distribution of the book's total size. The Bouchaud-Mézard-Potters (BMP) model explains the shape of the book. Each model is fitted to the data with the Python scripts provided in the course material, and the fits are compared with a synthetic order book generated by a Monte Carlo simulation.

Topics covered:

  • What an order book is: market makers (liquidity providers), liquidity takers, and the cost of buying 200 shares across price levels
  • Working with aggregated order book data in Python, and plotting the mid price and the order book over time
  • Empirical observations: the histogram of the book's total size (with a well-defined mode around 60,000 shares for the sample stock) and the average liquidity profile as a function of distance from the mid
  • Diffusion models of the order book:
    • The probability density of book size, with addition and deletion events
    • The partial differential equation obtained by Taylor expansion, and the maximum principle
    • Why the book size dropping to zero requires a source (creation) term
    • Stationary solutions for two variants: a creation term proportional to the density, and a Dirac mass source
    • Locating the mode of each distribution and checking that the density integrates to one
    • Fitting both models to the data with least squares
  • The Bouchaud-Mézard-Potters model: the density of orders as a function of depth, the best bid modeled as a Brownian motion, the heat equation with the method of images, the power-law order arrival rate, and the explicit order density
  • Fitting the BMP model to tick data
  • Comparing all three models on a synthetic Monte Carlo order book, and the trade-off between goodness of fit and model complexity
  • References for further reading on book diffusion models, the BMP model and the maximum principle

Course Content

4 activities • 11 videos • duration: 5h 23m

  • videocam1.1 Book size and shape — empirical observations
    Duration 12:03
  • videocam1.2 Diffusion models of the order book
    Duration 53:08
  • videocam1.3 Bouchaud-Mézard-Potters model
    Duration 35:42

Your Instructor

Jerome Busca

Quant Trader, Portfolio Manager & Researcher

menu_book1 courses

I was a professional quant trader for 15+ years on Wall Street, working for major hedge funds, and, more recently, I taught finance at an engineering school. I hold a Ph.D. in applied mathematics from the University of Paris 6 (PSL), and I am an alumnus of the École Normale Supérieure (ENS) in Paris. I have published numerous articles in quant finance, as well as in mathematics (nonlinear partial differential equations).

Credit Information

What Students Are Saying

0.0 out of 5
Student's Choice
0 reviews

Frequently Asked Questions

We are a registered provider with 300+ associations and regulatory bodies worldwide. We operate across 28 global markets including Canada, the US, Australia, and the UK. Every course page clearly displays its specific accreditations. Upon completion, you receive a professional certificate that can be validated online. Our certificates include all necessary accreditation details, credit hours, and completion dates, and are formatted specifically to meet the submission requirements of most global regulatory bodies.

You May Also Like

  • Finance: Budgeting & Financial Forecasting

    Critical Skills for CFOs & Controllers: Budgeting & Forecasting Strategies for Today’s World

    starRated5.0out of 5,(200 reviews)
    2.5 CPD hrs
  • Ethics: Business Ethics

    2026 Ethics and Corporate Compliance

    starRated5.0out of 5,(694 reviews)
    2 CPD hrs
  • Personal Development: Stress Management

    Stress Management for Work

    starRated4.9out of 5,(146 reviews)
    3 CPD hrs