I have been unable to crack this question:
A fair coin is tossed $n$ times. What is the probability of heads on the first toss given that $r$ heads were obtained in the $n$ tosses?
From: http://personal.vu.nl/h.c.tijms/ExamQuestionsUP.pdf
The solution uses conditional probability (which I am unfamiliar with, however, did search to understand). If anyone could explain that would be awesome.
Thanks!
Hint:
It can be rephrased like this:
If there are $n$ balls in an urn and exactly $r$ of them are red, then - if you pick out one ball - what is the probability that the ball is red?