Master's · Master's

Markov chains

P(tomorrow | today)

The idea

A process without memory: the future depends only on the now, not on the past.

The board

  1. Weather: sunny → tomorrow sunny with 0.8, rain with 0.2. Rain → rain 0.5.
  2. You write the probabilities in a transition matrix P.
  3. After n days: Pn — matrix multiplication.
  4. In the long run a stationary distribution π with πP = π settles in — an eigenvector!

The most common mistake

Thinking every random thing is Markov. If the past matters, it isn't.

The trick

Text from early chatbots and your phone's autocorrect are Markov chains.

Problems

A Markov process remembers…

  • the whole past
  • only the current state
  • nothing
  • the last two
Show the answer

only the current state — No memory.

Take the lesson · exercises and XPFree, no sign-up needed.

You need to know