Open the editor

Maths · University

Markov Chains Slides

Free animated slides, ready to teach: 6 slides where every step appears on a click and the diagrams move. Play them right here, present them full screen, or copy them into your account to edit.

A real Tracé deck playing in your browser. No account needed.

What the lesson covers

A two-state weather model, sunny or rainy, shows how a transition matrix moves probabilities forward one day at a time. The class watches P(sunny) settle and solves for the steady state of 2/3.

The slides, one by one

1 Markov chains

Where you go next depends only on where you are

If it's sunny today, what is the chance it's sunny in two days?

2 The next state depends only on the current one

P=(0.80.20.40.6)P = \begin{pmatrix} 0.8 & 0.2 \\ 0.4 & 0.6 \end{pmatrix}

Row 1: from sunny. Row 2: from rainy

Each row adds to 1

3 The chance of sun settles to a steady value

xn+1=xnPx_{n+1} = x_n P
Starting sunny:1,0.8,0.72,0.688,…\begin{aligned}&\textsf{Starting sunny:}\\ &1, 0.8, 0.72, 0.688, \ldots\end{aligned}
It tends to 23\textsf{It tends to }\frac{2}{3}

4 The steady state of the weather

Sunny → sunny 0.8, sunny → rainy 0.2, rainy → sunny 0.4, rainy → rainy 0.6. Find the long-run chance of sun.

→ Solve πP = π; the two add to 1

πS=0.8πS+0.4πR\pi_S = 0.8\pi_S + 0.4\pi_R
0.2πS=0.4πR0.2\pi_S = 0.4\pi_R
πS=2πR\pi_S = 2\pi_R
3πR=13\pi_R = 1
πS=23, πR=13\pi_S = \tfrac{2}{3},\ \pi_R = \tfrac{1}{3}

In the long run it is sunny 2/3 of the days

5 Quick check

Sunny today. Chance of sun in two days?

  • 0.72
  • 0.64
  • 0.8
  • 0.67
Show the answer

0.72

Sun then sun, or rain then sun: 0.8 × 0.8 + 0.2 × 0.4 = 0.64 + 0.08 = 0.72.

6 What to remember

States and transition probabilities

Rows of P add to 1\textsf{Rows of }P\textsf{ add to 1}
Step forward: xn+1=xnP\textsf{Step forward: }x_{n+1} = x_n P
Steady state: πP=π\textsf{Steady state: }\pi P = \pi

Challenge: Starting rainy, what is the chance of sun after two days?

Every slide is built click by click: text, formulas and pictures come in one step at a time, so the class follows the reasoning instead of reading ahead. Graphs with sliders can be dragged live while you present.

Make your own version with AIChange the level, the numbers or the language: type the topic and get a new deck that moves in about 30 seconds. Free, no account needed.

Questions teachers ask

How do you find the steady state of a Markov chain?

Solve πP = π with the entries of π adding to 1. For sunny → sunny 0.8 and rainy → sunny 0.4, the long-run chance of sun is 2/3.

Are these slides really free?

Yes. Watch them on this page or present them full screen with no account. Making your own copy to edit is free too.

Can I change the slides before my lesson?

Yes. Press "Make my own copy" and the deck becomes one of your projects in the Tracé editor, where you can change the text, the numbers, the colours or the order of the clicks.

Do they work on a classroom projector or an interactive whiteboard?

Yes. They run in the browser on any laptop, so anything that shows your screen works. Press the right arrow or click to go to the next step.