+ Reply to Thread
Results 1 to 3 of 3

Thread: Multi-level Bayes

  1. #1
    Points: 7, Level: 1
    Level completed: 13%, Points required for next Level: 43

    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Multi-level Bayes




    I guess that this is a multi level Bayes problem but there maybe a better technical name for it that I am not aware.

    Three jars contain tokens of two different colors; red and green.
    Jar A has 40% red and 60% green.
    Jar B has 80% red and 20% green.
    Jar C has 30% red and 70% green.
    Two jars are selected at random and one token is taken from each jar.
    The tokens are one red and one green.
    What is the probability that the red token came from Jar B?
    My solution:
    Jar A: (1/3)x0.4x(1/2)x0.2x(1/2)x0.7 = 0.0046
    Prob Jar A selected times prob. of red times prob. Jar B times green times
    prob. Jar C times green.
    Jar B: (1/3)x0.8 x (1/2)x0.6x(1/2)x0.7 = 0.0277
    Jar C: (1/3)x0.3x(1/2)x0.6x(1/2)x0.2 = 0.003
    Sum Jar A, Jar B, Jar C = 0.0353
    p(B|red&green) = 0.0277/0.0353 = 0.785

    Is this correct? Thanks in advance for any comments .

  2. #2
    Devorador de queso
    Points: 95,922, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Posting AwardCommunity AwardDiscussion EnderFrequent Poster
    Dason's Avatar
    Location
    Tampa, FL
    Posts
    12,937
    Thanks
    307
    Thanked 2,630 Times in 2,246 Posts

    Re: Multi-level Bayes

    You're looking for P(red came from B | red and green showed up) which is different than P(B | red and green showed up).
    I don't have emotions and sometimes that makes me very sad.

  3. #3
    Points: 7, Level: 1
    Level completed: 13%, Points required for next Level: 43

    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Multi-level Bayes


    You're right but is my math correct for calculating P(red came from B | red and green showed up)?

+ Reply to Thread

           




Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats