Lurker News

Comments (92) 45 threads

Earlier comments
saganus#
Very nice! I've never had to work with Markov chains but I've read about them and they seem to pop up in lots of places.

Nice and simple and interactive explanation.

jesuslop#
Gian Carlo Rota is always a pleasure to quote, despite he knowing it. One from his reminiscence about Jack Schwartz, in his "Indiscrete Thoughts" Book (TL;DR: Markov Chains seen as random maps):

The first lecture by Jack I listened to was given in the spring of 1954 in a seminar in functional analysis. A brilliant array of lecturers had been expounding throughout the spring term on their pet topics. Jack's lecture dealt with stochastic processes. Probability was still a mysterious subject cultivated by a few scattered mathematicians, and the expression "Markov chain" conveyed more than a hint of mystery. Jack started his lecture with the words, "A Markov chain is a generalization of a function." His perfect motivation of the Markov property put the audience at ease. Graduate students and instructors relaxed and followed his every word to the end.
Beuatiful visualizations.

granttimmerman2 replies#
I created a Markov chain generator: https://gist.github.com/grant/561834963dc526495c45

var numNodes=10;var roundNum=100;var a=[];for(var i=0;iroundNum)/roundNum;connections[j]=randNum;sum+=randNum}connections=connections.map(function(e){var t=e(1/sum);t=Math.round(troundNum)/roundNum;return t});sum=connections.reduce(function(e,t){return e+t});connections[numNodes-1]+=1-sum;connections[numNodes-1]=Math.round(connections[numNodes-1]roundNum)/roundNum;a[i]=connections}console.log(JSON.stringify(a))
Copy and paste the output into the side bar.

vicapow#
Nice!
TazeTSchnitzel1 reply#
Please indent each line with a double space so it's properly monospace formatted.
chatmasta#
Yeah, your comment breaks the readability of this comment thread on my mobile (as in, everything is horrible stretched horizontally).
pimgeek#
It really helps, I used to learn Markov Chain Theory in graduate school, but either I was not paying attention, or the tutor did not really intended to get things better-explained, I never truely care about its real life application.

But this tutorial, both visually attractive and expained with real life examples, make me want to re-learn this topic. Just quote one passage:
[if you made a Markov chain model of a baby's behavior, you might include "playing," "eating", "sleeping," and "crying" as states, which together with other behaviors could form a 'state space': a list of all possible states.]
Thanks for sharing!

Load more comments