kekse01

probability
bayes-grid
Published

October 27, 2022

Exercise

In Think Bayes stellt Allen Downey folgende Aufgabe:

“Suppose there are two bowls of cookies.

Bowl 1 contains 30 vanilla cookies and 10 chocolate cookies.

Bowl 2 contains 20 vanilla cookies and 20 chocolate cookies.

Now suppose you choose one of the bowls at random and, without looking, choose a cookie at random. If the cookie is vanilla, what is the probability that it came from Bowl 1?”

Hinweise:

  • Untersuchen Sie die Hypothesen \(\pi_0 = 0, \pi_1 = 0.1, \pi_2 = 0.2, ..., \pi_{10} = 1\) für die Trefferwahrscheinlichkeit
  • Erstellen Sie ein Bayes-Gitter zur Lösung dieser Aufgabe.
  • Gehen Sie davon aus, dass Sie (apriori) indifferent gegenüber der Hypothesen zu den Parameterwerten sind.
  • Geben Sie Prozentzahlen immer als Anteil an und lassen Sie die führende Null weg (z.B. .42).











Solution

p_Gitter Priori Likelihood unstd_Post Post
1 1 0.75 0.75 0.6
2 1 0.50 0.50 0.4

Die Antwort lautet: .6


Categories:

  • probability
  • bayes-grid