Qasim Shah
All projects

Markov Chain Calculator

Finite-state probability workbench

An editable transition table that calculates n-step probabilities, lists paths, and classifies states. It shows the working alongside the answer.

Status
Local study tool
Kind
Data & geometry
Stack
Python · Linear algebra · Probability · Terminal UI
Labelled project overview, not an interface capture.

The problem

Checking a Markov chain by hand means keeping the state labels, transition matrix, path weights, and times consistent. I wanted to change one assumption and see what it did to the result.

What was built

  1. Editable transition matrices with named states, fractions, percentages, row validation, and saved models.
  2. Matrix powers, distribution evolution, joint and conditional events, stationary distributions, and hitting calculations.
  3. A terminal interface that explains intermediate results and tests boundary cases such as impossible conditioning events and reducible chains.

What I learned

An answer is only useful when the tool spells out its assumptions, including whether a starting state or distribution was supplied.