Part 2: Four measures · Chapter 4 of 14 · 7 min
The variance ratio
The variance ratio compares the variance of q-candle moves with q times that of one candle: it is 1 if the price has no memory, above 1 if candles reinforce each other (trend), below 1 if they cancel (reversion). On hourly gold it is 1.00 at q = 2, 0.99 at q = 4 and 1.01 at q = 8, that is no memory over a few hours; it rises to 1.07 (q = 16), 1.14 (q = 24, z = 1.8, above the random series, 0.94-1.09) and 1.15 (q = 48): a hint of persistence at one or two days, with an error that variable volatility makes larger than the one stated. Rolling over 96 candles the VR(4) has a median of 0.96, sits below 0.9 in 38% of candles and above 1.1 in 26%, and varies less than random series (deviation 0.20 against 0.24).
The idea
If the price has no memory, the variance of moves grows in proportion to time: a 4-candle move has a variance equal to 4 times that of one candle. If candles reinforce each other (after a rise comes another), long moves have more variance than that. If they cancel (after a rise comes a fall), they have less.
> VR(q) = variance of q-candle moves ÷ (q × variance of 1-candle moves)
| VR(q) | What it says |
|---|---|
| Close to 1 | No memory: candles are independent |
| Above 1 | Candles reinforce: trend |
| Below 1 | Candles cancel: reversion to the mean |
An example with small numbers: if a one-candle move has variance 1 and a 4-candle one has variance 3, VR(4) = 3 ÷ (4 × 1) = 0.75: long moves are smaller than the sum of four independent candles would lead you to expect, a sign of reversion.
On the whole series
Computed on all 4,864 hourly changes of gold (with the Lo and MacKinlay correction) and on 30 random series:
| q (candles) | VR on gold | z (constant variance) | Random series (5th-95th) |
|---|---|---|---|
| 2 | 1.00 | 0.0 | 0.99 (0.99-1.00) |
| 4 | 0.99 | −0.3 | 0.99 (0.98-1.00) |
| 8 | 1.01 | 0.1 | 1.00 (0.96-1.02) |
| 16 | 1.07 | 1.1 | 1.02 (0.98-1.06) |
| 24 | 1.14 | 1.8 | 1.02 (0.94-1.09) |
| 48 | 1.15 | 1.3 | 1.01 (0.83-1.17) |
From two to eight hours gold behaves like a random walk. From 16 hours up the VR rises to 1.07-1.15: a hint of persistence. But watch how you read it.
- A single value (q = 24) leaves the chance band, and by little (1.14 against 1.09). With six values of q tried, one at the edge is expected.
- A z of 1.8 does not reach 1.96, the 95% threshold.
- The z assumes constant variance, and on gold it is not constant (book 14: volatility clusters). With variable volatility the true error is larger than the one stated.
You can say: «it is compatible with a mild persistence at one or two days and with chance». You cannot say it is proven.
Rolling over 96 candles
To use it as a regime measure the VR(4) is computed on a rolling window of 96 candles (4 days):
Read the chart in words
Daily gold chart with, below, two lines swinging around 1 between 0.5 and 1.7.
| Measure over 96 candles | Gold | Random series (5th-95th) |
|---|---|---|
| Median VR(4) | 0.96 | 0.97 (0.94-1.00) |
| Share of candles below 0.9 («reversion») | 38% | 38% |
| Share of candles above 1.1 («trend») | 26% | 31% |
| Standard deviation of the rolling VR(4) | 0.20 | 0.24 (0.21-0.26) |
Three things.
- The rolling VR swings a lot: from 0.46 to 1.74. Over 96 candles the estimator is noisy, and it is on chance too (0.24).
- The share of «trend» and «reversion» is chance's: a series with no memory produces a rolling VR above 1.1 in 31% of cases.
- Gold's VR is a bit steadier than random series: 0.20 against 0.24. It is the only gap, and it is in the direction of «less variable than chance».
What follows
- The VR says whether moves reinforce or cancel at a given scale, not what the next candle will be.
- On gold it is 1 up to eight hours and rises slightly at 16-48 hours, in a way that chance and variable volatility largely explain.
- Over 96 candles it is too noisy: a VR above 1.1 appears 26% of the time on gold and 31% on a series with no trend.
- With a single q and a single window the VR is a measure, not a proof: every q and every window tried are extra parameters.
What to do
- Write q and the window (4 and 96 in the book) before looking at the results.
- Read the VR against the chance band, not against 1: a rolling VR(4) of 1.15 is normal.
- Declare how many q you tried: six values give one at the edge by pure chance.
- Do not use the constant-variance z on data with variable volatility without saying so.
- Prefer the VR on the whole series to the rolling VR to understand whether there is memory; the rolling one only serves to classify candles.
Procedure in four steps
- Choose q and the window; compute the variances at 1 candle and at q candles.
- Divide: VR = variance at q ÷ (q × variance at 1).
- Compare with a random series of the same volatility.
- Write how many q and how many windows you tried.
Exercises
Chapter exercises
1. A one-candle move has variance 1 and a 4-candle one variance 3. What is VR(4)?
2. What value does the VR of a memoryless path have?
3. On gold VR(24) = 1.14 with z = 1.8, and chance reaches 1.09. What do you say?
4. Over 96 candles a rolling VR(4) above 1.1 appears 26% of the time on gold and 31% on a random series. What does it say?
Have a question or want to share your exercise?
Post in the community, or join the free signals room on Telegram.
Educational content, not financial advice. Trading involves risk.