Exercise 10: Naive Bayes classifier (Beginner)

Hi there,

I am reporting my reflection/issues on the authors’ assumption made in the assignment and the result reasoning vs. my assumption I made when solving this assignment.

In this exercise assignment, the second (loaded) dice “… also has six sides, but that however gives the outcome six on every second try on average. That means the probability that you get a six is 16.7% with the first die but 50% with the second die.“ Once completed, the answer interpreted makes clear that LH = 3 is applied 5 times to the prior odds 1:1, resulting in 243:1 > 100:1 at the 5th die (which is the correct answer).

However, I encountered this assignment assuming that the second dice has odds of six yielding in non-liner manner: 1:5, 1:1, 1:5, 1:1 … repeating etc. Since my method was different, my calculation was different too. Finally, since I was not able to anser 6 rolls, I just guessed that the 5th roll must be the correct answer.

I'm not sure if anybody will be able to follow up this.. But I am reporting that this assignment could be interpreted two ways and, in the second case - as I got it - the correct answer would be 6 rolls (not 5 rolls). Here are my numbers at glance:

  • dices = [die1, die2, die3, die4, die5, die6, die7]

  • normalOdds = [1:5, 1:5, 1:5, 1:5, 1:5, 1:5, 1:5]

  • loadedOdds = [1:5, 1:1, 1:5, 1:1, 1:5, 1:1, 1:5]

  • normalProducts = [1, 25, 125, 3215, 15625, 78125]

  • loadedProducts = [1, 5, 25, 25, 125, 125, 625]

  • LHnormal-loaded = [1, 5, 5, 25, 25, 125, 125]