Subject: Class 12 Mathematics Chapter: Mean and Variance Topic: 14.8 Mean and Variance β Calculate distribution mean and variance
A probability distribution tells us exactly how likely each value of a random variable is, but it is often useful to summarize the whole distribution by a few numbers. The most important summaries are the mean, which measures the central location of the distribution, and the variance with its square root, the standard deviation, which measure how spread out the values are. Together these numbers give a compact description of the behaviour of the random variable.
The mean of a random variable, also called its expectation, is the probability-weighted average of its possible values. It answers the question: what value would we expect on average over many repetitions of the experiment? For example, the mean number of heads when a coin is tossed twice is 1, even though 1 is not the only possible outcome. The mean is not necessarily a value the variable can actually take; it is the balancing point of the probabilities.
The variance and standard deviation describe variability. A small variance means the values are clustered close to the mean, while a large variance means they are widely scattered. These measures are indispensable in statistics, economics and the sciences because the average alone never reveals how reliable it is. In this section we define the mean and variance of a discrete random variable, derive the standard shortcut formula for the variance, and solve worked examples that compute these quantities from a probability distribution.
The mean or expectation of a discrete random variable X, denoted by E(X) or ΞΌ, is the weighted average of its values, where each value is weighted by its probability.
Formula: ΞΌ = E(X) = x1p1 + x2p2 + ... + xnpn = Ξ£ xi p(xi).
Key points to remember: - The mean uses probabilities as weights, so values with high probability contribute more. - The mean may be a decimal or a fraction even though the variable is discrete. - The mean is expressed in the same units as the random variable. - The mean is the centre of mass of the probability distribution.
Worked Example 1: The probability distribution of X is P(X = 0) = 0.1, P(X = 1) = 0.2, P(X = 2) = 0.4, P(X = 3) = 0.3. Find the mean of X.
Step 1: Write the formula E(X) = Ξ£ xi p(xi). Step 2: E(X) = 0(0.1) + 1(0.2) + 2(0.4) + 3(0.3). Step 3: E(X) = 0 + 0.2 + 0.8 + 0.9 = 1.9. Step 4: The mean is 1.9, which lies between the smallest and largest values as expected.
Worked Example 2: A die is thrown once. Let X be the number shown. Find the mean of X.
Step 1: P(X = k) = 1/6 for k = 1 to 6. Step 2: E(X) = (1 + 2 + 3 + 4 + 5 + 6) Γ (1/6). Step 3: E(X) = 21/6 = 3.5. Step 4: The mean of a fair die is 3.5, the average of all faces.
The variance of a discrete random variable X, denoted by Var(X) or Ο^2, measures the expected squared deviation of X from its mean. The standard deviation, denoted by Ο, is the positive square root of the variance.
Formula: Var(X) = Ξ£ (xi β ΞΌ)^2 p(xi).
Shortcut formula: Var(X) = E(X^2) β [E(X)]^2, where E(X^2) = Ξ£ xi^2 p(xi).
Key points to remember: - The variance is always non-negative and is zero only for a constant random variable. - The shortcut formula avoids computing each deviation separately and is faster to use. - The standard deviation Ο = βVar(X) is measured in the same units as X. - Both the mean and the variance are computed from the probability distribution table.
Worked Example 3: Using the distribution of Worked Example 1, find the variance and standard deviation of X.
Step 1: E(X) = 1.9 as computed earlier. Step 2: E(X^2) = 0^2(0.1) + 1^2(0.2) + 2^2(0.4) + 3^2(0.3) = 0 + 0.2 + 1.6 + 2.7 = 4.5. Step 3: Var(X) = 4.5 β (1.9)^2 = 4.5 β 3.61 = 0.89. Step 4: Ο = β0.89 β 0.943, so the typical deviation from the mean is about 0.94.
Worked Example 4: Find the variance of the number shown on a single die.
Step 1: E(X) = 3.5 from Worked Example 2. Step 2: E(X^2) = (1^2 + 2^2 + 3^2 + 4^2 + 5^2 + 6^2)/6 = 91/6. Step 3: Var(X) = 91/6 β (3.5)^2 = 91/6 β 49/4 = 182/12 β 147/12 = 35/12. Step 4: Ο = β(35/12) β 1.708.
Let us compute the mean and variance for a variety of distributions, using both the direct and the shortcut methods.
Worked Example 5: A coin is tossed twice. Let X be the number of heads. Find the mean and variance of X.
Step 1: P(X = 0) = 1/4, P(X = 1) = 1/2, P(X = 2) = 1/4. Step 2: E(X) = 0(1/4) + 1(1/2) + 2(1/4) = 1/2 + 1/2 = 1. Step 3: E(X^2) = 0 + 1(1/2) + 4(1/4) = 1/2 + 1 = 1.5. Step 4: Var(X) = 1.5 β 1^2 = 0.5, and Ο = β0.5.
Worked Example 6: The distribution of X is P(X = 1) = 1/2, P(X = 2) = 1/6, P(X = 3) = 1/3. Find the mean and variance.
Step 1: E(X) = 1(1/2) + 2(1/6) + 3(1/3) = 1/2 + 1/3 + 1 = 11/6. Step 2: E(X^2) = 1(1/2) + 4(1/6) + 9(1/3) = 1/2 + 2/3 + 3 = 25/6. Step 3: Var(X) = 25/6 β (11/6)^2 = 25/6 β 121/36 = 150/36 β 121/36 = 29/36. Step 4: Ο = β(29/36) = β29/6.
Worked Example 7: X takes the values 1 and 3 with equal probability. Find the mean and variance.
Step 1: P(X = 1) = 1/2 and P(X = 3) = 1/2. Step 2: E(X) = 1(1/2) + 3(1/2) = 2. Step 3: E(X^2) = 1(1/2) + 9(1/2) = 5. Step 4: Var(X) = 5 β 4 = 1, so Ο = 1.
Worked Example 8: A random variable X has the distribution P(X = k) = k/6 for k = 1, 2, 3. Find the mean and variance.
Step 1: E(X) = 1(1/6) + 2(2/6) + 3(3/6) = 1/6 + 4/6 + 9/6 = 14/6 = 7/3. Step 2: E(X^2) = 1(1/6) + 4(2/6) + 9(3/6) = 1/6 + 8/6 + 27/6 = 36/6 = 6. Step 3: Var(X) = 6 β (7/3)^2 = 6 β 49/9 = 54/9 β 49/9 = 5/9. Step 4: Ο = β5/3.
Worked Example 9: In a game, a player earns 0 with probability 0.5, 2 with probability 0.3 and 5 with probability 0.2. Find the expected earnings and the variance.
Step 1: E(X) = 0(0.5) + 2(0.3) + 5(0.2) = 0 + 0.6 + 1.0 = 1.6. Step 2: E(X^2) = 0 + 4(0.3) + 25(0.2) = 1.2 + 5 = 6.2. Step 3: Var(X) = 6.2 β (1.6)^2 = 6.2 β 2.56 = 3.64. Step 4: Ο = β3.64 β 1.908, so earnings typically deviate from 1.6 by about 1.91.
Worked Example 10: The random variable X has P(X = 0) = a, P(X = 1) = 2a and P(X = 2) = 3a. Find the mean of X.
Step 1: The sum a + 2a + 3a = 1 gives 6a = 1, so a = 1/6. Step 2: P(X = 0) = 1/6, P(X = 1) = 1/3, P(X = 2) = 1/2. Step 3: E(X) = 0(1/6) + 1(1/3) + 2(1/2) = 1/3 + 1 = 4/3. Step 4: E(X^2) = 0 + 1(1/3) + 4(1/2) = 1/3 + 2 = 7/3, so Var(X) = 7/3 β (4/3)^2 = 7/3 β 16/9 = 21/9 β 16/9 = 5/9.
| Measure | Formula | Meaning |
|---|---|---|
| Mean | E(X) = Ξ£ xi p(xi) | Probability-weighted centre |
| Second moment | E(X^2) = Ξ£ xi^2 p(xi) | Weighted average of squares |
| Variance | Var(X) = E(X^2) β [E(X)]^2 | Expected squared deviation |
| Standard deviation | Ο = βVar(X) | Typical deviation in same units |
| Property | E(cX) = cE(X) | Scaling by a constant |
| Property | Var(cX) = c^2 Var(X) | Variance scales by the square |
| Distribution | Mean | Variance | Standard deviation |
|---|---|---|---|
| Single die face | 3.5 | 35/12 | β(35/12) |
| Number of heads in 2 tosses | 1 | 1/2 | 1/β2 |
| Values 1 and 3 equally likely | 2 | 1 | 1 |
| P(X = k) = k/6, k = 1,2,3 | 7/3 | 5/9 | β5/3 |
| Game earnings 0, 2, 5 | 1.6 | 3.64 | β 1.908 |
flowchart TD
A[Mean and Variance] --> B[Mean expectation]
A --> C[Variance]
A --> D[Standard deviation]
A --> E[Shortcut formula]
B --> F[Sum of xi times p of xi]
C --> G[Sum of x minus mu squared times p]
D --> H[Square root of variance]
E --> I[E of X squared minus E of X squared]
F --> J[Probability weighted average]
C --> K[Measure of spread]
I --> L[Easier computation]
K --> M[Zero only for constant variable]
The mean and variance summarize a probability distribution into two numbers that describe its centre and its spread. The mean E(X) = Ξ£ xi p(xi) is the probability-weighted average of the values, while the variance Var(X) = E(X^2) β [E(X)]^2 measures the expected squared deviation from the mean, with the standard deviation as its square root. Both quantities are computed entirely from the probability distribution table, so a correct distribution is the essential prerequisite. These measures are the gateway to statistics, where the mean describes typical behaviour and the variance describes reliability. Together with the total probability theorem, Bayes theorem and the ideas of random variables, the mean and variance complete the systematic study of probability in Class 12.