Idea: A state nobody publishes
A hidden state changes by a Markov rule. You see only observations that depend on it.
- Hidden: a deep or a thin market
- Seen: each day's spread
- Model: start, transition table, emission table
Formula: Filtering
The chance of each hidden state given everything seen so far, updated every day.
Idea: Predict, then correct
Each day push the belief through the transitions, then weight it by the new data.
- Predict: the transition table, before any data
- Correct: Bayes with the emission table
- Today's output is tomorrow's input, no history stored
Example: A wide spread prints
Deep stays deep , thin stays thin . Wide spreads: of deep days, of thin. Belief in deep , today prints wide. New belief?
- Predict:
- Weight: ,
- Correct:
Common mistake: Skipping the predict step
Bayes on last night's belief gives instead of .
Instead The state can move overnight. Always predict first, then correct.
Formula: The long-run share
Share of a state: the other state's exit rate b over the sum of both exit rates.
Quick check: Share of deep days
Deep leaves with chance a day, thin with . What is the long-run share of deep days?
Show the answer
Answer:
Balance , so .
Idea: Filter, smooth, decode
Keep the questions apart: only the filter can be traded.
- Filtering: data up to today
- Smoothing: also later data, so a backtest on it looks ahead
- Decoding: the single most likely hidden path
Idea: Say it out loud
Name the layers, then say "predict, then correct" and write the lines.
- The Markov rule is a claim about the hidden state
- Recursion: steps, not paths
- Tables fitted on calm data understate how fast liquidity vanishes
Courses / Advanced probability models