M4.3 7 min read Oct 2026

M4.3 Can You Detect a Reversed Movie? Time Reversal and Probability Ratios

Builds on2 notes

A record without timestamps

A weather record contains sunny, cloudy, and rainy states with transition times, but no dates or sun positions. Can you tell whether it runs forward or backward? Model it as a finite-state CTMC and compare transition laws.

Consider two questions:

  1. What statistical evidence could reveal the direction?
  2. Would your answer change if there were only sunny and rainy states?

Randomness does not imply time symmetry. A preference for sunny→cloudy→rainy→sunny reverses under playback. Given the current state, where was the process just before? This is another Bayes question.

DiscussionQ1

For Ys=XT−sY_s=X_{T-s}, is the reversed process Markov, and what are its rates?

Show the reasoning

Under the usual finite-state setting, time reversal remains Markov. Conditional on the present, past and future are independent, a symmetric statement in their roles.

The rates generally change. Forward rates describe the next state; reverse rates infer the previous state from the present. Bayes weights each possible origin by its prior probability and likelihood of reaching the observation, then normalizes. We need the short-time slope of that posterior.

Rooms and circulation

Imagine people moving between sunny and rainy rooms. Reversing the movie exchanges the directions of each crossing. At stationary two-room balance, both flows agree, leaving the same statistical law.

With three rooms, balanced total inflow and outflow can coexist with a preferred cycle. Reversal changes that circulation direction. Two states cannot support such a cyclic current; three can.

Two-state balance compared with three-state circulation.

Stationary two-state flow balances pairwise; three states can maintain a directed circulation.

Derive the reverse rule

Bayes over a short interval

Let ptp_t be the law of a finite-state CTMC. Restrict to pt(x)>0p_t(x)>0 and distinct x,yx,y. Ask for the probability that Xt=yX_t=y given Xt+dt=xX_{t+dt}=x:

Pr⁡(Xt=y∣Xt+dt=x)=Pr⁡(Xt+dt=x∣Xt=y)  pt(y)pt+dt(x)≈R(y,x) dt  pt(y)pt(x).\Pr(X_t=y\mid X_{t+dt}=x) =\frac{\Pr(X_{t+dt}=x\mid X_t=y)\;p_t(y)}{p_{t+dt}(x)} \approx\frac{R(y,x)\,dt\;p_t(y)}{p_t(x)} .

Use

Pr⁡(Xt+dt=x∣Xt=y)=R(y,x)dt+o(dt)\Pr(X_{t+dt}=x\mid X_t=y)=R(y,x)dt+o(dt)

and pt+dt(x)→pt(x)p_{t+dt}(x)\to p_t(x). Divide by dtdt to obtain

  R^t(x,y)=R(y,x) pt(y)pt(x)  (x≠y),\boxed{\;\hat R_t(x,y)=R(y,x)\,\frac{p_t(y)}{p_t(x)}\;}\qquad(x\ne y),

Choose diagonal entries so rows sum to zero. The numerator combines the forward likelihood rate R(y,x)R(y,x) and origin prior pt(y)p_t(y); the denominator pt(x)p_t(x) is the limiting evidence. Reversal needs both transition tendencies and the current population allocation.

The subscript tt refers to forward time. Under reverse clock ss, the generator is R^T−s\hat R_{T-s}. It usually varies with time even if RR is constant. Do not divide by zero-probability states; support and endpoint behavior require care.

When is reversal statistically invisible?

At stationarity pt=πp_t=\pi, reverse rates are time-independent. Equality with the forward rates requires

π(x)R(x,y)=π(y)R(y,x)for every x≠y.\pi(x)R(x,y)=\pi(y)R(y,x)\quad\text{for every }x\ne y.

This is detailed balance; the stationary process is reversible. It balances every pair, stronger than global balance πR=0\pi R=0, which only balances each state’s total inflow and outflow.

Two states: the sole independent stationary balance equation is already detailed balance. A stationary two-state CTMC and its reversal therefore have identical path laws. This concerns statistical laws, not deterministic identification of a particular observed segment.

Three-state cycle: set clockwise rates to one and counterclockwise rates to ε\varepsilon. Symmetry gives uniform π\pi. Reversal transposes off-diagonal rates, exchanging the two tendencies. At ε=1\varepsilon=1, detailed balance holds; for small positive ε\varepsilon, counts of directed transitions can reveal a statistical preference.

DetailsReversed marginals, discrete-time reversal, and a cycle criterion

Set qs=pT−sq_s=p_{T-s} and t=T−st=T-s. Substituting reverse rates into (qsR^t)(y)(q_s\hat R_t)(y) gives

(qsR^t)(y)=∑x≠y[pt(y)R(y,x)−pt(x)R(x,y)]=−p˙t(y)=q˙s(y).\begin{aligned} (q_s\hat R_t)(y) &=\sum_{x\ne y}[p_t(y)R(y,x)-p_t(x)R(x,y)]\\ &=-\dot p_t(y)=\dot q_s(y). \end{aligned}

Thus the reversed forward equation moves the marginal law backward as required.

In discrete time, Bayes gives P^n(x,y)=P(y,x)pn(y)/pn+1(x)\hat P_n(x,y)=P(y,x)p_n(y)/p_{n+1}(x). At stationarity it becomes π(y)P(y,x)/π(x)\pi(y)P(y,x)/\pi(x), and detailed balance is π(x)P(x,y)=π(y)P(y,x)\pi(x)P(x,y)=\pi(y)P(y,x).

Kolmogorov’s criterion characterizes reversibility of an irreducible chain by equality of forward and reverse rate products around every cycle. For the triangle, these products are one and ε3\varepsilon^3, agreeing only at ε=1\varepsilon=1 [1].

Revisit the intuition

“Random looks random backward” is insufficient. Stationary reversibility makes the laws exactly equal, while a stationary circulation can break that symmetry. Long holding times alone do not establish a direction of time.

Stationarity matters. A reversible generator started away from equilibrium can have time-dependent reverse rates. For sunny→rainy rate 0.2, rainy→sunny rate 0.4, and an all-sunny start, pt(R)=13(1−e−0.6t)p_t(\mathrm R)=\tfrac13(1-e^{-0.6t}). The reverse rainy→sunny rate is 0.2pt(S)/pt(R)0.2p_t(\mathrm S)/p_t(\mathrm R), behaving like 1/t1/t near zero. Reversed paths must return to the prescribed sunny start. This gives distributional direction information without guaranteeing identification from one short record.

Try it

import numpy as np
rng = np.random.default_rng(0)
eps, T = .2, 200000
R = np.array([[-(1+eps),1,eps],[eps,-(1+eps),1],[1,eps,-(1+eps)]])
x, path = 0, []
for _ in range(T):
    rates = R[x].copy()
    rates[x] = 0
    x = rng.choice(3,p=rates/rates.sum())
    path.append(x)
path = np.array(path)
cw = np.mean((path[1:]-path[:-1])%3==1)
print('clockwise fraction, forward and reversed:',cw,1-cw)
# Equal exit rates make jump counts especially simple here.

Check your understanding

Check your understanding

A stationary finite birth–death chain models queue length, with nearest-neighbor transitions and suitable endpoint rules. Can its path law reveal playback direction?

Check your understanding

Why does reverse rate contain pt(y)/pt(x)p_t(y)/p_t(x)?

Check your understanding

A reversible three-state generator starts far from equilibrium. Can forward and reversed finite-horizon path laws differ?

References

  1. Kelly, F. P. Reversibility and Stochastic Networks. Wiley, 1979.
  2. Norris, J. R. Markov Chains. Cambridge University Press, 1997.
  3. Levin, D. A., Peres, Y. Markov Chains and Mixing Times, 2nd ed. AMS, 2017.