Tabellab
AI & Data Science Advanced

Hidden Markov Models by Hand: States & Emissions, the Forward Algorithm, Viterbi Decoding, Smoothing & Simple Learning from Counts

Uncover hidden states from what you can observe. You will set up transition and emission tables, compute sequence probabilities with the forward algorithm, find the most likely hidden path with Viterbi and backtracking, smooth with forward–backward, estimate tables from labelled counts and tag a short toy sentence, with every cell checked as you go.

8 lessons 8 labs 2.1 h Certificate

One-time payment · lifetime access · lessons, labs, exam and certificate included · no subscription.

About this course

This course builds a hidden Markov model one table at a time on a toy ferry logbook, where the weather is hidden and only the ferry status is recorded. You complete a transition table and push a distribution forward, then multiply start, transition and emission probabilities for all eight weather paths behind three days. The forward algorithm adds those paths efficiently, Viterbi finds the best one with MAX and back-pointers. You compare paths with log-probabilities, fill backward tables for posterior probabilities, estimate the tables from labelled counts with add-one smoothing and finally tag a short original sentence with three word classes.

Lessons

  1. Markov Chains Refresher: Transition Tables, Rows That Sum to 1 and Two-Step ProbabilitiesLab14 min Pro
  2. Hidden States & Emissions: The Joint Probability of a Weather Path and a LogbookLab16 min Pro
  3. The Forward Algorithm: α Tables Step by Step and the Probability of a LogbookLab16 min Pro
  4. Viterbi Decoding: δ Tables with MAX, Back-Pointers and the Best Path by BacktrackingLab17 min Pro
  5. Log Probabilities: Underflow, LN Sums Instead of Products and Comparing PathsLab14 min Pro
  6. Backward & Smoothing: β Tables and the Posterior Probability of Each Day's WeatherLab17 min Pro
  7. Learning from Counts: Transition and Emission Tables from a Labelled Logbook, with Add-One SmoothingLab15 min Pro
  8. Toy Part-of-Speech Tagging: Three Hidden Tags, Viterbi on a Short Sentence, Accuracy and a Posterior ChartLab18 min Pro