Live data from Hacker News

Seeing Theory: A Visual Introduction to Probability and Statistics

seeing-theory.brown.edu

11–20 of 94 posts

Re: Seeing Theory: A Visual Introduction to Probability and Statistics

#11
"If you roll 2 six-sided dice, what are the chances you roll at least one dice above 5 (5 or 6)?"

A nice trick to visually solve this in your head I heard once is:

If you think of rolling two dice as a square. X and Y are each dice. You get a 36 square board. Getting 1 six is just the upper boarder. 6 on the top, 6 on the right (6 and 6 overlap). So 11 out of the 36 squares.

Re: Seeing Theory: A Visual Introduction to Probability and Statistics

#12
post #11

"If you roll 2 six-sided dice, what are the chances you roll at least one dice above 5 (5 or 6)?" A nice trick to visually solve this in your head I heard once is: If you think of rolling two dice as a square. X and Y are each dice. You get a 36 square board. Getting 1 six is just the upper boarder. 6 on the top, 6 on the right (6 and 6 overlap). So 11 out of the 36 squares.

Chances of rolling below 5 are 4x4/36 = 16/36, so above are 20/36

And here is the board: https://www.edcollins.com/backgammon/diceprob.htm

Re: Seeing Theory: A Visual Introduction to Probability and Statistics

#13

A couple of years ago I was just learning Python and was playing around with matplotlib. Running simulation of a dice roll 100, 1000, 10,000, 100,000, and 1,000,000 times started to show how the distribution starts to catch up with the expected 1/6th probability of each face. I was thinking how good it would be to teach young students this way.

You can get quite deep this way.

Generative models map well to programming concepts. Mixtures are quite similar to composition, and hierarchical models can be understood as inheritance. Lots of classical models like HMM, LDA, etc are quite similar to those presented in the GoF book in the sense they combine composition and inheritance in some particularly interesting manner.

Re: Seeing Theory: A Visual Introduction to Probability and Statistics

#14
"Don't trust your intuition". This should be the basis for all teaching in statistics and probability. If all goes wrong, it should be the one thing everyone remembers from their statistics education. And yet year after year, everyone is starting with E(X)=sum(x*P(x)) and has no idea what it was about afterwards.

With calculus and linear algebra your gut feel is about right no average. You can quickly get a feel for trajectories, acceleration and distances (derivatives and integrals), areas, volumes, amounts, etc. But on probability your gut-feel will always fool you.

In the end, you see a handful of math bloggers bemoaning the lack of education in probability and the nonsense being discussed by journalists and politicians. And it hardly matters whether it's an election or a pandemic. The lack of understanding of uncertainty and the false belief that one can reason about these without looking at the numbers too closely is dangerous.

Sorry about the rant. But...

Dear creator of seeing-theory.brown.edu, if there is one thing you could change about the project to make it different and infinitely more useful: Please start the first chapter with the goat problem[1], then go through a couple of examples from chapter 10 in Thinking Fast and Slow[2], the discuss information (maybe with a simplified version of Mendel's pea experiment[3]), discuss distributions and leave expectations and variances for much-much later.

[1]: https://en.wikipedia.org/wiki/Monty_Hall_problem [2]: https://en.wikipedia.org/wiki/Thinking,_Fast_and_Slow [3]: https://www.sciencelearn.org.nz/resources/1999-mendel-s-expe...

Re: Seeing Theory: A Visual Introduction to Probability and Statistics

#15
post #7

On a different thread this morning someone bemoaned the lack of statistical education - a sentiment that is widespread among people who have studied and worked with statistics and probability. It is really exciting to see pedagogical tools that help explain basic but important concepts like distributions and sampling. Great work.

I am so glad I am not the only one that feels this way. In high school, I didn't have to take a single probability/stats class. In college, as a CS major (!!), I had to take a single intro stats class that was completely insufficient. And when a stats education is insufficient, god damn is it insufficient. No motivating examples whatsoever (what distribution would I use to measure ${real world process}? why would I need to calculate ${X} about the distribution?), just formulas that you're expected to memorize and vomit onto an exam with no understanding of why you're doing what you're doing at all.

What is the deal with this? Why isn't stats commonly taught in school when it is by far one of the most prevalent disciplines? And why, on the rare occasion when it is taught, is it so abysmal? Statistics forms the basis for all of science, for god's sake. I've since developed a patchwork understanding of statistics on my own from various resources I've found the time to consume. For the record, I grew up in the US.

Re: Seeing Theory: A Visual Introduction to Probability and Statistics

#16

A couple of years ago I was just learning Python and was playing around with matplotlib. Running simulation of a dice roll 100, 1000, 10,000, 100,000, and 1,000,000 times started to show how the distribution starts to catch up with the expected 1/6th probability of each face. I was thinking how good it would be to teach young students this way.

In an effort to reduce screen time, I recently tried to instigate a game of classic table-top Dungeons & Dragons. And I swear, kids were even more interested in the BigInt N-sided die function I cribbed in a python shell than any demons or demigods ;)

Seeing Theory interactivity is very interesting. I think if there is one canonical example to tie it all together it would be something akin to "estimate the likelihood of an extremely rare event". Say, you're a top astrophysicist at NASA and you have to give the President a briefing on the improbability not impossibility of an extinction level asteroid event. And you must justify how those beliefs are informed by and change with data. It ties everything together: physically based world models, event spaces, conditional probabilities, monte carlo sampling and entropy estimation. And would be really fun to boot!

Re: Seeing Theory: A Visual Introduction to Probability and Statistics

#18

A couple of years ago I was just learning Python and was playing around with matplotlib. Running simulation of a dice roll 100, 1000, 10,000, 100,000, and 1,000,000 times started to show how the distribution starts to catch up with the expected 1/6th probability of each face. I was thinking how good it would be to teach young students this way.

A couple of years ago I was also a great fan of this paradigm where you try to convince yourself that you understand a math concept by coding/simulating it (a procedural, rather than conceptual understanding, if you will). Here for instance I studied the so-called "Secretary Problem", using the tools you mention:

http://cjauvin.blogspot.com/2012/12/find-true-love-on-dating...

Re: Seeing Theory: A Visual Introduction to Probability and Statistics

#19
So so cool ! And it goes to show how poorly probabilities and statistics are usually taught, it's such a waste. I'm working on a non profit project aiming in parts to aggregate this kind of pedagogical tools into a collaborative learning map and serving it in a personalised way: https://sci-map.org. Early phases still, but if people are interested to contribute please hit me up!

Re: Seeing Theory: A Visual Introduction to Probability and Statistics

#20
post #12
post #11

"If you roll 2 six-sided dice, what are the chances you roll at least one dice above 5 (5 or 6)?" A nice trick to visually solve this in your head I heard once is: If you think of rolling two dice as a square. X and Y are each dice. You get a 36 square board. Getting 1 six is just the upper boarder. 6 on the top, 6 on the right (6 and 6 overlap). So 11 out of the 36 squares.

Chances of rolling below 5 are 4x4/36 = 16/36, so above are 20/36 And here is the board: https://www.edcollins.com/backgammon/diceprob.htm

There is the small matter of "equal to 5"
Post reply on HN