Stationary distribution of a two-state Markov chain by iteration.
Part of StatLab — twenty standalone statistical analysis tools for Windows, each shipped as a native executable with no runtime dependencies. Author: S M Nazmuz Sakib · [email protected]
- State forecasting — estimate long-run share of time in each state.
- Reliability modelling — compute steady-state up/down probabilities.
- Teaching stochastic processes — see convergence to equilibrium.
Download markov.exe from the Releases page, then:
Get-Content data.csv | .\markov.exe
# or
.\markov.exe -f data.csvThe executable is a native Windows binary — no Python, no installer, no DLLs.
go test ./...
go build -o markov.exe .{
"state_0": 0.6,
"state_1": 0.4,
"iterations": 200
}
Flags: -p01 (probability of leaving state 0) and -p10 (probability of returning from state 1).
main_test.go covers the core algorithm with deterministic cases. Run go test ./....
MIT © S M Nazmuz Sakib (2026). Questions: [email protected].
