Solve the given problem involving conditional probability

  • #1
chwala
Gold Member
2,650
351
Homework Statement
see attached (circled question 17).
Relevant Equations
probability
1705663358798.png


Phew! took time to figure this out...i guess there may be a way to use combinations or markov process i do not know...
anyway,
it was pretty straightforward,

we have the ##P_r(w) = \dfrac{n-3}{n}## from box ##X## and this will result in ##P_r(w) = \dfrac{4}{n+1}## in box ##Y##.

Together i shall have ##P_r(w)=\dfrac{4(n-3)}{n(n+1)}##

interested in alternative method.
 
Last edited:
Physics news on Phys.org
  • #2
chwala said:
we have the ##P_r(w) = \dfrac{n-3}{n}## from box X and this will result in ##P_r(w) = \dfrac{4}{n+1}## in box Y.
So with ##n=3## you have four white balls in box ##Y## ?

:nb)

##\ ##
 
  • #3
BvU said:
So with ##n=3## you have four white balls in box ##Y## ?

:nb)

##\ ##
...but should be correct ;

we have ##3## white balls in box ##Y## assuming that 1 white ball is added from box ##X##...that sums to ##4##.
 
  • #4
chwala said:
...but should be correct we have 3 white balls in box ##Y## assuming that 1 white ball is added from box ##X##...that sums to ##4##.
You should do a probability tree showing all four possible outcomes and their probability.
 
  • Like
Likes chwala
  • #5
You need the conditional probability concept here.

The conditions are two
1) The ball taken from box X is black which is a condition C1 with probability P1=... and then the probability that we get white ball from box Y given that the C1 is true is P(white from Y/C1)=...
2) The ball taken from box X is white which is a condition C2 with probability P2=.. and then the probability to get white ball from box Y given that C2 is true P(white from Y/C2)=..

Then you got to combine P1,P(white from Y/C1),P2 and P(white from Y/C2) into an expression that gives the unconditional probability
P(White from Y)=...
 
  • Like
Likes chwala and PeroK
  • #6
chwala said:
...but should be correct ;

we have ##3## white balls in box ##Y## assuming that 1 white ball is added from box ##X##...that sums to ##4##.
With ##n=3## there are only three white balls !!

##\ ##
 
Last edited:
  • Like
Likes chwala
  • #7
@chwala you should also consider the case when the ball taken from box X is black, you still will have some probability for the ball from box Y to be white.

I think btw that the restriction ##n\geq 4## is implied.
 
  • Like
Likes chwala
  • #8
Delta2 said:
@chwala you should also consider the case when the ball taken from box X is black, you still will have some probability for the ball from box Y to be white.

I think btw that the restriction ##n\geq 4## is implied.
Let me check on this. Does not look easy I say...
 
  • #9
chwala said:
Does not look easy I say...
Can you work it out for ##n=3## ?
Then perhaps try n=4 etc until you recognize the pattern

Delta2 said:
I think btw that the restriction n≥4 is implied.
Why ?

##\ ##
 
  • Like
Likes scottdave
  • #10
chwala said:
Let me check on this. Does not look easy I say...
What you did at OP is half the work. The other half work is the case where the ball taken from box X is black. Its pretty much a similar thing. then you add the two probabilities and you have the final probability

Hm i thought the n-3 appears in the denominator somewhere but not. So its ok it can be n=3.

The final probability i get is $$\frac{9+4(n-3)}{n(n+1)}$$
 
  • Like
Likes chwala
  • #11
We really want to give Chwala a chance to find this for himself....

(and check that it works for ##n=3\ \ ## :wink: ... )

##\ ##
 
  • Like
Likes scottdave, SammyS and Delta2
  • #12
I worked out b) btw and the answer i get is $$P(X=B/Y=W)=\frac{9}{9+4(n-3)}$$ but I am not sure at all for this.
 
  • Like
Likes chwala
  • #13
Delta2 said:
I worked out b) btw and the answer i get is $$P(X=B/Y=W)=\frac{9}{9+4(n-3)}$$ but I am not sure at all for this.
correct as per text book solution; i am looking at part (a) now...
 
  • Like
Likes Delta2
  • #14
Delta2 said:
@chwala you should also consider the case when the ball taken from box X is black, you still will have some probability for the ball from box Y to be white.

I think btw that the restriction ##n\geq 4## is implied.
I now did this, i can see the pattern but i know that i still need to re read on conditional probability as my problem seems to be with the semantics...anyway as you rightfully indicated ##n≠3##.

When ##n=4## we have the probabilities,

##P(w/b)= \dfrac{3}{4}×\dfrac{3}{5} = \dfrac{9}{20}##

##P(w/w)= \dfrac{1}{4}×\dfrac{4}{5} = \dfrac{4}{20}##

##P_{Required} = \dfrac{9}{20} + \dfrac{4}{20} = \dfrac{13}{20}= \dfrac{4n-3}{n(n+1)}## at ##n=4##.

Similarly,

When ##n=5## we shall have

##P_{Required} = \dfrac{9}{30} + \dfrac{8}{20} = \dfrac{17}{30}=\dfrac{4n-3}{n(n+1)}## at ##n=5##.

Now to get the algorithm in term of ##n## for numerator part is what i need to figure out.
 
Last edited:
  • #15
The ##P_{required}## for n=4 is indeed 13/20 but where did the ##\frac{4n-3}{n(n+1)}## came from , i thought at post #1 you said ##\frac{4(n-3)}{n(n+1)}## (watch out the parenthesis unless you are based on my post#10 where indeed the numerator is ##9+4(n-3)=4n-3##.
 
  • #16
chwala said:
Now to get the algorithm in term of n for numerator part is what i need to figure out.

You correctly calculate in post #1 the ##P(w/w)=\frac{4(n-3)}{n(n+1)}##, now just calculate the ##p(w/b)## in a very similar way as a function of ##n##.
 
  • Like
Likes chwala
  • #17
chwala said:
When ##n=4## we have the probabilities, ##P(w/b)= \dfrac{3}{4}×\dfrac{3}{5} = \dfrac{9}{20}##
Technically what you have calculated here is ##P(X=B)P(Y=W|X=B)##. Or, ##P(X=B, Y=W)##.
chwala said:
##P(w/w)= \dfrac{1}{4}×\dfrac{4}{5} = \dfrac{4}{20}##
Likewise, this is ##P(X=W, Y=W) = P(X=W)P(Y=W|X=W)##
chwala said:
##P_{Required} = \dfrac{9}{20} + \dfrac{4}{20} = \dfrac{13}{20}= \dfrac{4n-3}{n(n+1)}## at ##n=4##.
##P_{Required}## is simply ##P(Y = W)##. This can be written as:
$$P(Y=W) = P(X=B, Y=W) + P(X=W, Y=W) = P(X=B)P(Y=W|X=B) + P(X=W)P(Y=W|X=W)$$
chwala said:
similarly,
When ##n=5## we shall have ##P_{Required} = \dfrac{9}{30} + \dfrac{8}{20} = \dfrac{17}{30}=\dfrac{4n-3}{n(n+1)}## at ##n=5##.

Now to get the algorithm in term of ##n## for numerator part is what i need to figure out.
Okay, but it should be clear what's happening for ##n##.
 
  • Informative
Likes chwala
  • #18
Ok i got it we have,

##P(X=B,Y=W) = \dfrac{3}{n} × \dfrac{3}{n+1}= \dfrac{9}{n(n+1)}##

and##P(X=W,Y=W) = \dfrac{n-3}{n} × \dfrac{4}{n+1}= \dfrac{4(n-3)}{n(n+1)}##

adding the two gives us the required value. Cheers!
 
  • Like
Likes PeroK and Delta2
  • #19
Part b) is trickier!
 
  • #20
PeroK said:
Part b) is trickier!
Let me look at it...
 
  • #21
chwala said:
Let me look at it...
The calculations you have done so far can be shown in a probability tree, which is the best way to tackle these problems. The tree in this case has two initial branches, ecah of which splits into two subbranches:

P(X=B) (##\frac{3}{n}##) --- P(Y=B|X=B) (##\frac{3}{n} \times \frac{n-2}{n+1}##)
---------------- P(Y=W|X=B) (##\frac{3}{n} \times \frac{3}{n+1}##) (**)

P(X=W) (##\frac{n-3}{n}##) --- P(Y=B|X=W) (##\frac{n-3}{n} \times \frac{n-3}{n+1}##)
------------------- P(Y=W|X=W) (##\frac{n-3}{n} \times \frac{4}{n+1}##) (**)

This tells you everything. The two outcomes marked (**) identify a reduced sample space of outcomes where the second ball is white. The outcome you are interested in is the first of these, where the first ball was black.

The probability that the first ball is black given the second ball is white is the probability that the first ball is black relative to the reduced sample space. In other words:
$$P(X=B|Y=W) = \frac{P(Y=W|X=B)}{P(Y=W)} = \frac{P(Y=W|X=B)}{P(Y=W|X=B)+P(Y=W|X=W)}$$
 
  • Informative
Likes chwala
  • #22
PeroK said:
The calculations you have done so far can be shown in a probability tree, which is the best way to tackle these problems. The tree in this case has two initial branches, ecah of which splits into two subbranches:

P(X=B) (##\frac{3}{n}##) --- P(Y=B|X=B) (##\frac{3}{n} \times \frac{n-2}{n+1}##)
---------------- P(Y=W|X=B) (##\frac{3}{n} \times \frac{3}{n+1}##) (**)

P(X=W) (##\frac{n-3}{n}##) --- P(Y=B|X=W) (##\frac{n-3}{n} \times \frac{n-3}{n+1}##)
------------------- P(Y=W|X=W) (##\frac{n-3}{n} \times \frac{4}{n+1}##) (**)

This tells you everything. The two outcomes marked (**) identify a reduced sample space of outcomes where the second ball is white. The outcome you are interested in is the first of these, where the first ball was black.

The probability that the first ball is black given the second ball is white is the probability that the first ball is black relative to the reduced sample space. In other words:
$$P(X=B|Y=W) = \frac{P(Y=W|X=B)}{P(Y=W)} = \frac{P(Y=W|X=B)}{P(Y=W|X=B)+P(Y=W|X=W)}$$
I am trying to understand the 'English' on part (b) of the question. The first ball is black... which ball are they reffering to? The ball from box ##X## to ##Y##? The second ball ..."is it the drawn ball from box ##Y##? if so then i can proceed to analyse. I need to understand the question first.
 
  • #23
Yes the first ball is the ball taken from box X and the second ball is the ball taken from box Y (after we have put in Y the ball taken from X).

At least that's how I interpreted it and found the solution presented at post #12
 
  • Like
Likes chwala
  • #24
Delta2 said:
Yes the first ball is the ball taken from box X and the second ball is the ball taken from box Y (after we have put in Y the ball taken from X).

At least that's how I interpreted it and found the solution presented at post #12
Ok we have,

##P(B/W) = \dfrac{P(B∩W)}{P(W)} = \dfrac{\dfrac{3}{n}⋅\dfrac{3}{n+1}}{\dfrac{4(n-3)}{n(n+1)}}=\dfrac{9}{n(n+1)}×\dfrac{n(n+1)}{4(n-3)}=\dfrac{9}{4n-3}##

Cheers man! :cool:
 
Last edited:
  • #25
Not sure if you still fixing Latex but your expression for ##P(W)## is not entirely correct. But yes thats the way to find it.
 
  • #26
Delta2 said:
Not sure if you still fixing Latex but your expression for ##P(W)## is not entirely correct. But yes thats the way to find it.
Let me check again...
 
  • #27
you say ##P(W)=\frac{4(n-3)}{n(n+1)}## thats not ##P(W)## thats ##P(W,B)##
 
  • #28
##P(W)## is the answer to question 1).
 
  • #29
Delta2 said:
##P(W)## is the answer to question 1).
aaargh let me fix that.
 
  • #30
Ok we have,

##P(B/W) = \dfrac{P(B∩W)}{P(W)} = \dfrac{\dfrac{3}{n}⋅\dfrac{3}{n+1}}{\dfrac{4n-3}{n(n+1)}}=\dfrac{9}{n(n+1)}×\dfrac{n(n+1)}{4n-3}=\dfrac{9}{4n-3}##

Cheers @Delta2
 
  • Like
Likes PeroK and Delta2
  • #31
Ehm, not so cheerful here, check your post #18 again, P(W) is the addition of those two.
 
  • #32
Delta2 said:
Ehm, not so cheerful here, check your post #18 again, P(W) is the addition of those two.
Yes, i am aware that ##P(W)= \dfrac{4n-3}{n(n+1)}## is the addition given by

##P(X=B,Y=W) = \dfrac{3}{n} × \dfrac{3}{n+1}= \dfrac{9}{n(n+1)}##

and##P(X=W,Y=W) = \dfrac{n-3}{n} × \dfrac{4}{n+1}= \dfrac{4(n-3)}{n(n+1)}##

My post ##30## is correct.
 
  • #33
yes ok right, it is ##4n-3## there i thought you had ##4(n-3)##.
 
  • Like
Likes chwala

1. What is conditional probability?

Conditional probability is the likelihood of an event occurring given that another event has already occurred. It is calculated by dividing the probability of the intersection of the two events by the probability of the given condition.

2. How do you calculate conditional probability?

To calculate conditional probability, you first determine the probability of the intersection of the two events, and then divide that by the probability of the given condition. This can be represented by the formula P(A|B) = P(A ∩ B) / P(B), where P(A|B) is the conditional probability of event A given event B.

3. What is the difference between conditional probability and regular probability?

The main difference between conditional probability and regular probability is that conditional probability takes into account a specific condition or event that has already occurred, while regular probability looks at the likelihood of an event occurring without any additional information.

4. Can you provide an example of conditional probability?

Sure! An example of conditional probability is the likelihood of drawing a red card from a deck of cards given that a black card has already been drawn. This can be calculated by dividing the probability of drawing a red card and a black card by the probability of drawing a black card.

5. In what real-life situations is conditional probability used?

Conditional probability is commonly used in various real-life situations such as weather forecasting, medical diagnosis, and risk assessment in insurance. It helps in making more accurate predictions and decisions based on the information available.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
5
Views
508
  • Precalculus Mathematics Homework Help
Replies
4
Views
749
  • Precalculus Mathematics Homework Help
Replies
4
Views
744
  • Precalculus Mathematics Homework Help
Replies
7
Views
613
  • Calculus and Beyond Homework Help
Replies
1
Views
703
  • Calculus and Beyond Homework Help
Replies
2
Views
733
  • Calculus and Beyond Homework Help
Replies
8
Views
927
  • Differential Equations
Replies
3
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
603
  • Precalculus Mathematics Homework Help
Replies
6
Views
2K
Back
Top