A student is going to sit for an exam on Calculus. If he studies the night before the exam, he is got 0.99 probability to pass it.
But, instead if he choose to go to his friend's party , he is got 0.5 probability to pass it.
In order to decide what to do , he tosses a coin.
Finally , the next day he succesfully passes the exam. What is the probability that he gone to the party ?
I used conditional probability and i am getting 0.335
Is it right ?
Thanks in advance!