# Conditional Probability: P(W|H)=29,P(W|Hc)=511,P(H)=12,P(H|W)=P(W|H)=\frac{2}{9},P(W|H^c)=\frac{5}{11},P(H)=\frac{1}{2},P(H|W)=?

I was marked wrong for this question on a probability and statistics quiz, but I can’t figure out how to do it correctly:

P(W|H)=29P(W|H)=\frac{2}{9}
P(W|Hc)=511P(W|H^c)=\frac{5}{11}
P(H)=12P(H)=\frac{1}{2}

What is P(H|W)P(H|W)?

My solution was as follows:

P(W)=P(W|H)⋅P(H)+P(W|Hc)⋅P(Hc)=29⋅12+511⋅12=19+522P(W)=P(W|H)\cdot P(H)+P(W|H^c)\cdot P(H^c)=\frac{2}{9}\cdot\frac{1}{2}+\frac{5}{11}\cdot\frac{1}{2}=\frac{1}{9}+\frac{5}{22}
P(W|H)=P(W∩H)P(H)P(W|H)=\frac{P(W\cap H)}{P(H)}
P(W∩H)=P(W|H)⋅P(H)=29⋅12=19P(W\cap H)=P(W|H)\cdot P(H)=\frac{2}{9}\cdot\frac{1}{2}=\frac{1}{9}

Hence P(H|W)=P(H∩W)P(W)=1919+522P(H|W)=\frac{P(H\cap W)}{P(W)}=\frac{\frac{1}{9}}{\frac{1}{9}+\frac{5}{22}}

What is my mistake? I’ve been trying to figure it out but I am stuck.

=================

Clearly you’ve calculated P(W)P(W) to be 29+522\frac{2}{9}+\frac{5}{22}, but then used 19+522\frac{1}{9}+\frac{5}{22} instead.
– barak manos
2 days ago

That was just a typo, I meant to write 1/9 the first time too.
– Conor James Thomas Warford Hen
2 days ago

=================