markov-chain-le.le · output · proof · check · playground
The question
A system moves among alpha, beta and gamma. Given an initial distribution and three transition rows, how do the probabilities change over the next three steps?
Historical background
In 1913 Andrei Markov used the alternation of vowels and consonants in Pushkin’s Eugene Onegin to study chains of dependent events. Here each transition depends on the current state and the rules propagate the whole distribution. Markov’s study in English translation
What we tell eyemind
Each row has three nonnegative integers that must sum to 100. At each step the rules multiply the current row vector by the transition matrix and multiply its denominator by 100. The weights and denominator stay integers, so the probabilities are exact fractions.
What eyemind concludes
| Step | Alpha | Beta | Gamma |
|---|---|---|---|
| 0 | 60% | 30% | 10% |
| 1 | 53.5% | 32.5% | 14% |
| 2 | 49.55% | 34.275% | 16.175% |
| 3 | 47.11125% | 35.46875% | 17.42% |
The incomplete-row scenario returns only the initial distribution.
struct('le:answer', 'steps', 'valid matrix', 3, [47111250, 35468750, 17420000], 100000000)
What the proof establishes
The proof is checked. Each update uses three valid rows and the previous step’s exact weights.
Try it
node bin/eyemind.js examples/markov-chain-le.le
node bin/eyemind.js --check-proof examples/proof/markov-chain-le.js examples/markov-chain-le.le
Change the incomplete beta row to [10, 70, 20]. It yields the same
four distributions as the valid scenario.
