a) Let's use the letters H and T for βheadβ and βtailβ respectively. The sample space:
S={TT,HT,TH,HHβ}.
b) In the case of TT (i.e we got two tails) X = 0; for HT and TH (first head, second tail or vice versa) X = 1 and for HH (both heads) X = 2.
c) The probability that we get head p=21β, that we get tail q=1βp=1β21β=21β.
The result of both tossings are independent events, for each sample point:
P(TT)=P(T)β
P(T)=qβ
q=21ββ
21β=41β;P(TH)=P(T)β
P(H)=qβ
p=21ββ
21β=41β;P(HT)=P(T)β
P(H)=pβ
q=21ββ
21β=41β;P(HH)=P(T)β
P(H)=pβ
p=21ββ
21β=41β.
The probabilities for the random variable values:
P(X=0)=P(TT)=41β;P(X=1)=P(TH)+P(HT)=41β+41β=21β;P(X=2)=P(HH)=41β.