Interactive Bayes Theorem Visualization

post by Allen Kim · 2018-03-03T04:00:24.771Z · LW · GW · 5 comments

This is a link post for https://allenkim67.github.io/bayes-demo/

This visualization was inspired by the Julia Galef video that I linked to in the opening paragraph. One thing I liked about that video is that it represents probability space as a box which, for understanding Bayes' rule, I think is much more intuitive than the circular venn-diagram approaches. Some improvements that I think this visualization offers is showing the different probabilities updating in relation to each other, generalizing to more than two events for both priors and likelihoods, and explicitly showing the discarding of conditional probabilities of unobserved events and normalization of the posteriors.

5 comments

Comments sorted by top scores.

comment by Ben Pace (Benito) · 2018-03-03T15:40:23.560Z · LW(p) · GW(p)

Promoted to frontpage.

comment by Trevor Hill-Hand (trevor-hill-hand) · 2018-03-03T15:08:18.470Z · LW(p) · GW(p)

I love this! I can imagine myself using this as an ad hoc calculator, especially when I need to explain my estimates to someone unfamiliar with probability. For that purpose it might be useful if I could fill in my own labels for all the variables. So instead of "E1/E2/..." the page could literally display "Drew a black marble/drew a white marble/..." or whatever I put in.

Replies from: trevor-hill-hand
comment by Trevor Hill-Hand (trevor-hill-hand) · 2018-03-03T16:45:06.175Z · LW(p) · GW(p)

Snapping to whole percentages might be better too. Having a displayed value of "87.23%" overstates how much control I have in choosing a specific value, given how the sliders work and how finicky per-pixel selection is.

Replies from: Allen Kim
comment by Allen Kim · 2018-03-03T20:47:38.319Z · LW(p) · GW(p)

Hey thanks for the feedback! After playing around with it more myself I agree with you about the percentages. I think ideally for more precise values it would have a manual input option, but rounding to whole values for now would be better. I also like the label changing suggestion.

comment by Romex91 (romex91) · 2022-06-20T13:30:05.940Z · LW(p) · GW(p)

A simplified version of the page for interpretation of medical test results:

https://romex91.github.io/sick-or-healthy/