Step 1: The possible outcomes for two tosses of a fair coin are: \( HH, HT, TH, TT \). The corresponding values of \( X \) (number of heads) are \( 2, 1, 1, 0 \).
Step 2: Calculate the expectation \( E(X) \): \[ E(X) = \sum X \cdot P(X) = 2 \cdot \frac{1}{4} + 1 \cdot \frac{2}{4} + 0 \cdot \frac{1}{4} = 1. \]
