wjhopper / bayes_bars Goto Github PK
View Code? Open in Web Editor NEWBayesian reasoning with bars
Bayesian reasoning with bars
A user has reported when the "top" bar representing the conditional probability has focus, clicking the "bottom" bar representing the marginal probability doesn't consistently change the focus onto the "bottom" bar. I cannot reproduce this issue on my computers or Starn's lab computers (all running Windows 7) .
At the time of writing (latest commit 59ffdc6) the code governing changing focus from rects is here:
Line 196 in 59ffdc6
A user has proposed adding an extra visual guide for bar width, in the form of a dashed line connecting the right edge of the bar to the x axis that would appear when adjusting the bar and disappear when the adjustment is finished.
There are several reasons why this feature may be helpful. First, it would help subjects precisely match their bar widths to the proportions given in the problem. Second, if participants knew the precise numeric widths of the bars representing the conditional probabilities p(B|A) and p(B|Aฬ), this could aid them in estimating the ratio of their lengths (i.e., they could use numeric estimation, rather than pure visual perception).
There is one reason not to like this idea though, which is it's potential to encourage matching the width of the bar to the conditional probability given in the problem. For example, if a problem says "20% of people eat cookies, and 10% of people who eat cookies eat brownies", then the correct width of the p(brownie | cookie)
bar is .2 โ .1 = .02. However, having the visual guide connecting the bar to the axis might encourage matching the width of the bar to the value given in the problem (10%), rather than making the width a proportion of the bar representing the marginal probability. This concern is speculative, but I think is important to consider in light of the anticipated difficulty participants will have in understanding the conditional probability bars should be adjusted to be proportions of the marginal probability bars.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.