Problem: In a school, $30\%$ of students have glasses. $20\%$ of students with glasses play sports. $60\%$ of students without glasses play sports. If we randomly choose a student, find probability that a student without glasses (chosen randomly) plays a sport.
My Approach
- $P(O)=0.3$ is the probability that a student has glasses.
- $P(S|O) = 0.2$ is the probability that a student with glasses plays sport (P of S given O).
- $P(S|O^c)=0.6$, where $O^c$ is {Sample Space - $O$}. The probability that a student without glasses plays sport $(P(S\text{ given }O^c)$.
I have to find $P(O^c|S)$ (the opposite of $P(S|O^c)$, meaning "a student plays sport without glasses").
I know that $80\%$ of students play a sport, and that $70\%$ of students don't have glasses. So in order to solve the problem I have to do $$P(O^c|S) = \frac{0.8 \times 0.7}{0.8} = 0.7 $$ but given correct solution is $0.87$ $(0.7\neq0.87)$.
EDIT: I think the problem is in this assumption: I've assumed that $0.8$ and $0.7$ were two independent probabilities, therefore I've multiplied $0.8$ with $0.7$. If this is not correct, then I don't know how to find probability of intersection.
$$\mathbb{P}(O^c|S)=\frac{\mathbb{P}(O^c\cap S)}{\mathbb{P}(S)}=\frac{\mathbb{P}(S|O^c)\mathbb{P}(O^c)}{\mathbb{P}(S|O^c)\mathbb{P}(O^c)+\mathbb{P}(S|O)\mathbb{P}(O)}=\frac{0.6*0.7}{0.6*0.7+0.2*0.3}=0.875$$