Suppose a fair coin is tossed times independently at random. If is a random variable denoting the number of heads among the tosses, what is the minimum value of for any real number ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
There are 8 possible outcomes for tossing a coin 3 times: {TTT, TTH, THT, THH, HTT, HTH, HHT, HHH}. One of them has no heads, three have one head, three have two heads and finally one has three heads. Therefore, the expected value can be computed as follows:
E [ ∣ X − a ∣ ] = 8 1 × ∣ 0 − a ∣ + 3 × ∣ 1 − a ∣ + 3 × ∣ 2 − a ∣ + 1 × ∣ 3 − a ∣
If we draw the above fraction as a graph:
We can see that y takes the lowest value, namely y = 0 . 7 5 when x ∈ [ 1 ; 2 ] .