Code Monkey home page Code Monkey logo

bayes_bars's People

Contributors

wjhopper avatar

Watchers

 avatar  avatar  avatar

bayes_bars's Issues

Clicking "bottom" bar doesn't always change focus

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:

# Focus bars via clicks as long as no handles are clicked (focused = draw the handle)
If this issue can be reproduced, this code should be revisited.

Guide line for bar width

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.