Expand description
Pillar: III. PACR field: Γ.
Causal State Splitting Reconstruction (CSSR) algorithm.
Ref: Shalizi & Crutchfield (2001), “Computational Mechanics: Pattern and Prediction, Structure and Simplicity”, J. Stat. Phys. 104(3-4):817-879.
§Algorithm outline
- Build suffix statistics: for every observed history
hof length1..=max_depth, count how often each symbol followsh. - Process histories depth-first (L=1 first).
For each history
hof length L: a. Find parent historyh[1..]and its assigned causal state S. b. KS-test: ish’s conditional distribution homogeneous with S? • Yes → assignhto S (addh’s counts to S’s pool). • No → search other states for a homogeneous match; else new state. - Merge pass: collapse pairs of states that are now indistinguishable.
- Compact (remove empty states, re-index).
Structs§
- Causal
State - A causal state: an equivalence class of histories sharing the same conditional future distribution.
- Cssr
Result - Output of a single CSSR run.
Functions§
- build_
suffix_ stats - Build per-suffix next-symbol count vectors for all depths
1..=max_depth. - ks_
reject_ homogeneity - Two-sample KS test for discrete distributions.
- run_
cssr - Run CSSR on a discrete symbol sequence.