Rethink2m6

probability
bayes
bayes-grid
rethink-chap2
string
Published

November 8, 2023

Aufgabe

This question is taken from McElreath, R. (2020). Statistical rethinking: A Bayesian course with examples in R and Stan (2. Ed.). Taylor and Francis, CRC Press.

2M6. Imagine that black ink is heavy, and so cards with black sides are heavier than cards with white sides. As a result, it’s less likely that a card with black sides is pulled from the bag. So again assume there are three cards: B/B, B/W, and W/W. After experimenting a number of times, you conclude that for every way to pull the B/B card from the bag, there are 2 ways to pull the B/W card and 3 ways to pull the W/W card. Again suppose that a card is pulled and a black side appears face up. Show that the probability the other side is black is now 0.5. Use the counting method, as before.











Lösung

Let’s label the cards bb (black on both sides), bw (black on one, white on the other), and ww (both sides are white), respectively.

Wanted is the probability that the second side of the card is black (2b), given one side is already identified as black (1b): \(Pr(2b|1b)\).

Bayes-Box to the rescue:

Whenever the probability of all paths (in a tree diagram) is the same, we do not need to write down the probability of the path for the likelihood. It is enough to write the number of paths.

Hyp Prior Likelihood unstand_post std_post
bb 1 2 2 0.5
bw 2 1 2 0.5
ww 3 0 0 0.0

Categories:

  • probability
  • bayes
  • bayes-grid
  • rethink-chap2
  • string