# Distribution of the heads-tails difference after three coin tosses

Three fair coins are tossed and D is the positive difference between the number of heads and the number of tails obtained, so D takes the values 1 and 3. Tabulate the probability distribution of D and calculate E(D).

with difference 1:

(HTT) (TTH) (HTH) (THT) (HHT) (THH)

with difference 3: (HHH) (TTT)

later I have done

$6 (1/2)^3$ (for the condition where difference is 1) AND $2 (1/2)^3$ (for the condition where difference is 3)

The answers I am getting are 3/4 for the first condition and 1/4 for the second condition but I am not sure if this is the right way

• What have you tried, and where are you having problems? This is not a good site to just have people do your homework for you. Commented Apr 1, 2015 at 21:09
• I would never trust coins I got from a fair. They're bound to be weighted, or have two heads, or split into two mid-air. Commented Apr 1, 2015 at 21:21
• Your answers seem correct. Just the difference there - it's not 0, it's 3. And also you stopped before calculating the expectation, it seems. You only calculated the probabilities. Commented Apr 1, 2015 at 21:31
• oh yes sorry for the mistake Commented Apr 1, 2015 at 21:32
• Because there are only 8 outcomes in terms of H's and T's when three coins are tossed, I suppose you were intended to get the distribution of D by direct enumeration--the way you began. Make a distribution table, telling the probability of each value of D. Then use it to find E(D). Commented Apr 2, 2015 at 0:21

• $\Pr(D=1) = \frac34$
• $\Pr(D=3) = \frac14$
• $E[D]=1\times \frac34 +3 \times \frac14 = \frac32 .$