Suppose that a coin is tossed twice and the random variable is the number of heads, how do you calculate the variance? I already did the calculation for expected value and got 1.
2026-03-31 10:04:05.1774951445
On
coin flip variance
7k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
There are 3 best solutions below
0
On
You did: $\quad \mathsf E(X) \\= \sum_{x=0}^2 x\,\mathsf P(X=x) \\ = 0\cdot \tfrac 14+1\cdot\tfrac 12 + 2\cdot\tfrac 14 \\=1$
Now do: $\quad \mathsf {Var}(X) \\ =\mathsf E((X-\mathsf E(X))^2) \\= \mathsf E((X-1)^2) \\ = \sum_{x=0}^2 (x-1)^2\, \mathsf P(X=x) \\ ~\vdots $
Edit: or use $\mathsf{Var}(X)=\mathsf E(X^2)-\mathsf E(X)^2$ if you prefer.
Hint:
Compute $E[X^2]$ and use $$Var(X)=E[X^2]-E[X]^2$$