This Live Stream covers Markov Chains: Session 6 of the “Programming from A to Z” class at ITP (
I explain the concepts of N-Grams and Markov Chains and use them both to generate text algorithmically.

22:07 – Intro to Session 6
40:23 – Coding Challenge: Markov Chains Part 1
1:17:17 – Coding Challenge: Markov Chains Part 2
1:32:33 – Homework Assignment
1:44:14 – Conclusion/Q&A

Support this channel on Patreon:

Send me your questions and coding challenges!:


GitHub Repo with all the info for Programming from A to Z:

Links discussed in this video:
Google’s Ngram Viewer:
n-gram on Wikipedia:
Chris Harrison’s Web Trigrams:
Allison Parrish’s( Generative Course Descriptions:
Allison Parrish’s website:
Michael Walker’s King James Programming:
Victor Powell’s Markov Chains Explained:
Flooper’s Perlin Noise song:

Source Code for the all Video Lessons:


For More Live Streams:

For More Programming from A to Z:

Help us caption & translate this video!