Variance with Examples in Statistics

 

Certainly! In statistics, variance is a measure of how spread out the values of a random variable are around the mean or expected value. It quantifies the dispersion or variability of a random variable from its mean, providing important insights into the consistency or unpredictability of outcomes. Let's explore the concept of variance in detail, along with examples and numerical illustrations.

Definition and Notation:

For a random variable XX with mean μ=E(X)\mu = E(X) , the variance Var(X)\text{Var}(X) is defined as:

Var(X)=E[(Xμ )2] \text{Var}(X) = E[(X - \mu)^2]

Alternatively, it can be expressed as:

Var(X)=E(X2)[ E(X)]2 \text{Var}(X) = E(X^2) - [E(X)]^2

Where:

  • E(X)E(X) is the expected value or mean of XX .
  • E(X2) E(X^2) is the expected value of X2 X^2 .

Interpretation:

The variance measures how much the values of XX deviate from the mean E(X)E(X) . A higher variance indicates that the values are more spread out from the mean, while a lower variance indicates the values are closer to the mean, suggesting greater consistency.

Examples:

Example 1: Coin Toss

Consider a fair coin toss where XX is a random variable representing the number of heads in a single toss.

  • Random Variable XX : Possible outcomes are {0,1}\{0, 1\} .
  • Probability Mass Function (PMF): P(X=0)=P(X=1)=0.5 P(X = 0) = P(X = 1) = 0.5 .

To find Var(X)\text{Var}(X) :

  1. Calculate E(X)E(X) : E(X)=00.5+10.5=0.5 E(X) = 0 \cdot 0.5 + 1 \cdot 0.5 = 0.5

  2. Calculate E(X2) E(X^2) : E(X2)=020.5+12 0.5=0+0.5=0.5 E(X^2) = 0^2 \cdot 0.5 + 1^2 \cdot 0.5 = 0 + 0.5 = 0.5

  3. Find Var(X)\text{Var}(X) : Var(X)=E(X2) [E(X)]2=0.5(0.5 )2=0.50.25=0.25 \text{Var}(X) = E(X^2) - [E(X)]^2 = 0.5 - (0.5)^2 = 0.5 - 0.25 = 0.25

So, the variance of XX , the number of heads in a fair coin toss, is 0.250.25 .

Example 2: Normal Distribution

Let XX follow a normal distribution N(μ,σ2) N(\mu, \sigma^2) , where μ\mu is the mean and σ2 \sigma^2 is the variance.

  • Random Variable XX : XN(μ,σ2) X \sim N(\mu, \sigma^2) .
  • Probability Density Function (PDF): f(x)= 1 2πσ2 exp ( (xμ)2 2σ2 ) f(x) = \frac{1}{\sqrt{2\pi\sigma^2}} \exp\left( -\frac{(x-\mu)^2}{2\sigma^2} \right) .

To find Var(X)\text{Var}(X) :

  1. Mean μ\mu : E(X)=μE(X) = \mu .

  2. Calculate E(X2) E(X^2) : E(X2)= x2f(x)dx=μ2+ σ2 E(X^2) = \int_{-\infty}^{\infty} x^2 \cdot f(x) \, dx = \mu^2 + \sigma^2

  3. Find Var(X)\text{Var}(X) : Var(X)=E(X2) [E(X)]2=μ2+ σ2μ2=σ2 \text{Var}(X) = E(X^2) - [E(X)]^2 = \mu^2 + \sigma^2 - \mu^2 = \sigma^2

Thus, the variance of XX in a normal distribution N(μ,σ2) N(\mu, \sigma^2) is σ2 \sigma^2 .

Importance of Variance:

  • Measurement of Spread: Variance quantifies the spread or dispersion of data points around the mean.
  • Decision Making: It helps in assessing risk, uncertainty, and variability in various fields such as finance, engineering, and natural sciences.
  • Comparison: Variance allows comparison of the variability of different datasets or processes.

Conclusion:

Variance is a crucial statistical measure that provides insights into the dispersion of random variables around their mean values. Whether in simple discrete scenarios like coin tosses or continuous distributions like the normal distribution, understanding variance enhances our ability to analyze and interpret data, making it a fundamental concept in statistical analysis and inference.

Previous Post Next Post