d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > Homework Help > Probability& Inductive Logic Help
Add Reply New Topic New Poll
Member
Posts: 7,184
Joined: Oct 30 2021
Gold: 1,109.00
Feb 16 2022 07:19am
There is a room filled with two types of urns.

Type A urns have 5 green marbles, 2 red.
Type B urns have 4 green marbles, 3 red.
The two types of urn look identical, but 30% of them are Type A. You pick an urn at random, and start randomly drawing marbles without replacement.

If the first draw is green and the second draw is red, what is the probability the urn is Type A?
Answer=0.2632 (with margin: 0.0001)
Continuing the previous problem: if the first draw is green and the second draw is red, what is the probability the third draw will be red?
Answer=0.3474 (with margin: 0.0001)


Can someone show me the process about how to get this number?
will pay 50fg, thanks.
Member
Posts: 8,106
Joined: Jan 31 2009
Gold: 24,820.21
Feb 19 2022 08:07pm
Not sure if you still need the answer to this but here it is:

A) We're looking for P (A | First = G, Second = R)

We develop: P (A | First = G, Second = R) = P ( A intersection First = G, Second = R) / P (First = G, Second = R) -- We can apply the bayes theorem here

We now have: P (First = G, Second = R) | A) * P ( A ) / P (First = G, Second = R) ---- We already know P (A) and can calculate the missing pieces

We get: 5/7 * 2/6 * 0.3 / [ 5/7 * 2/6 * 0.3 + 4/7 * 3/6 * 0.7 ] = 0.2632

b) We're looking for P ( Third = R | Second = R, First = G) = P ( Third = R intersection First = G, Second = R) / P (First = G, Second = R)

We already calculated the denominator in A), ---> [ 5/7 * 2/6 * 0.3 + 4/7 * 3/6 * 0.7 ], now lets find the num.

We basically have to find that sequence for both types of urs, A and B.

We get: 5/7 * 2/6 * 1/5 * 0.3 + 4/7 * 3/6 * 2/5 * 0.7 / [ 5/7 * 2/6 * 0.3 + 4/7 * 3/6 * 0.7 ] = 0.3474

Hope that helps

This post was edited by Pasc on Feb 19 2022 08:07pm
Member
Posts: 7,184
Joined: Oct 30 2021
Gold: 1,109.00
Feb 19 2022 08:08pm
Quote (Pasc @ Feb 20 2022 10:07am)
Not sure if you still need the answer to this but here it is:

A) We're looking for P (A | First = G, Second = R)

We develop: P (A | First = G, Second = R) = P ( A intersection First = G, Second = R) / P (First = G, Second = R) -- We can apply the bayes theorem here

We now have: P (First = G, Second = R) | A) * P ( A ) / P (First = G, Second = R) ---- We already know P (A) and can calculate the missing pieces

We get: 5/7 * 2/6 * 0.3 / [ 5/7 * 2/6 * 0.3 + 4/7 * 3/6 * 0.7 ] = 0.2632

B) We're looking for P ( Third = R | Second = R, First = G) = P ( Third = R intersection First = G, Second = R) / P (First = G, Second = R)

We already calculated the denominator in A), ---> [ 5/7 * 2/6 * 0.3 + 4/7 * 3/6 * 0.7 ], now lets find the num.

We basically have to find that sequence for both types of urs, A and B.

We get: 5/7 * 2/6 * 1/5 * 0.3 + 4/7 * 3/6 * 2/5 * 0.7 / [ 5/7 * 2/6 * 0.3 + 4/7 * 3/6 * 0.7 ] = 0.3474

Hope that helps


helps a lot thanks, topic closed
Go Back To Homework Help Topic List
Add Reply New Topic New Poll