
What is the formula for the variance of a probability distribution?
Answer
462.6k+ views
Hint: We know the variance of a random variable X is the mean or expected value of the squared deviation from the mean of X. Using this definition, we can arrive at a simpler formula for variance, both for continuous and discrete random variables.
Complete step-by-step answer:
We know that the variance measures how far a set of numbers is spread out, from their average value. Also, we are aware that variance is the square of standard deviation. The variance of a random variable X is represented by ${{\sigma }^{2}},{{s}^{2}}$ or Var(X).
Using the definition of variance, for a random variable X, we can write the variance as
$Var\left( X \right)=E\left[ {{\left( X-E\left[ X \right] \right)}^{2}} \right]$
where, E(X) represents the expected value or mean for the random variable X.
We can expand the above equation as
$Var\left( X \right)=E\left[ {{X}^{2}}-2X\cdot E\left[ X \right]+E{{\left[ X \right]}^{2}} \right]$
Hence, we can write
$Var\left( X \right)=E\left[ {{X}^{2}} \right]-2E\left[ X \right]\cdot E\left[ X \right]+E{{\left[ X \right]}^{2}}$
Thus, we can simplify this to get
$Var\left( X \right)=E\left[ {{X}^{2}} \right]-E{{\left[ X \right]}^{2}}...\left( i \right)$
Hence, we can also say that the variance of X is equal to the difference of the mean of the square of X and the square of the mean of X.
We know that for a continuous random variable X, the total probability is
$P\left( a\le X\le b \right)=\int\limits_{a}^{b}{f\left( x \right)dx=1}$.
Also, we can write the expected value as,
$E\left( X \right)=\int\limits_{a}^{b}{xf\left( x \right)dx}$.
Hence, we can write the variance using equation (i) as
$Var\left( X \right)=\int\limits_{a}^{b}{{{x}^{2}}f\left( x \right)dx}-{{\left\{ \int\limits_{a}^{b}{xf\left( x \right)dx} \right\}}^{2}}$.
Similarly, for a discrete random variable X, we have the total probability as,
$\sum\limits_{i=1}^{n}{P\left( {{x}_{i}} \right)}=1$.
Also, we can write the expectation of X as,
$E\left( X \right)=\sum\limits_{i=1}^{n}{{{x}_{i}}P\left( {{x}_{i}} \right)}$.
Thus, we can write the variance using equation (i) as
$Var\left( X \right)=\sum\limits_{i=1}^{n}{{{x}_{i}}^{2}P\left( {{x}_{i}} \right)}-{{\left\{ \sum\limits_{i=1}^{n}{{{x}_{i}}P\left( {{x}_{i}} \right)} \right\}}^{2}}$.
Note: We must take care that in the above explanation, we have assumed that the probability distribution of continuous random variable to be defined from a to b, and the discrete random variable is assumed to have n different possibilities.
Complete step-by-step answer:
We know that the variance measures how far a set of numbers is spread out, from their average value. Also, we are aware that variance is the square of standard deviation. The variance of a random variable X is represented by ${{\sigma }^{2}},{{s}^{2}}$ or Var(X).
Using the definition of variance, for a random variable X, we can write the variance as
$Var\left( X \right)=E\left[ {{\left( X-E\left[ X \right] \right)}^{2}} \right]$
where, E(X) represents the expected value or mean for the random variable X.
We can expand the above equation as
$Var\left( X \right)=E\left[ {{X}^{2}}-2X\cdot E\left[ X \right]+E{{\left[ X \right]}^{2}} \right]$
Hence, we can write
$Var\left( X \right)=E\left[ {{X}^{2}} \right]-2E\left[ X \right]\cdot E\left[ X \right]+E{{\left[ X \right]}^{2}}$
Thus, we can simplify this to get
$Var\left( X \right)=E\left[ {{X}^{2}} \right]-E{{\left[ X \right]}^{2}}...\left( i \right)$
Hence, we can also say that the variance of X is equal to the difference of the mean of the square of X and the square of the mean of X.
We know that for a continuous random variable X, the total probability is
$P\left( a\le X\le b \right)=\int\limits_{a}^{b}{f\left( x \right)dx=1}$.
Also, we can write the expected value as,
$E\left( X \right)=\int\limits_{a}^{b}{xf\left( x \right)dx}$.
Hence, we can write the variance using equation (i) as
$Var\left( X \right)=\int\limits_{a}^{b}{{{x}^{2}}f\left( x \right)dx}-{{\left\{ \int\limits_{a}^{b}{xf\left( x \right)dx} \right\}}^{2}}$.
Similarly, for a discrete random variable X, we have the total probability as,
$\sum\limits_{i=1}^{n}{P\left( {{x}_{i}} \right)}=1$.
Also, we can write the expectation of X as,
$E\left( X \right)=\sum\limits_{i=1}^{n}{{{x}_{i}}P\left( {{x}_{i}} \right)}$.
Thus, we can write the variance using equation (i) as
$Var\left( X \right)=\sum\limits_{i=1}^{n}{{{x}_{i}}^{2}P\left( {{x}_{i}} \right)}-{{\left\{ \sum\limits_{i=1}^{n}{{{x}_{i}}P\left( {{x}_{i}} \right)} \right\}}^{2}}$.
Note: We must take care that in the above explanation, we have assumed that the probability distribution of continuous random variable to be defined from a to b, and the discrete random variable is assumed to have n different possibilities.
Recently Updated Pages
Master Class 12 Biology: Engaging Questions & Answers for Success

Master Class 12 Physics: Engaging Questions & Answers for Success

Master Class 12 Economics: Engaging Questions & Answers for Success

Master Class 12 Maths: Engaging Questions & Answers for Success

Master Class 11 Economics: Engaging Questions & Answers for Success

Master Class 11 Accountancy: Engaging Questions & Answers for Success

Trending doubts
Which are the Top 10 Largest Countries of the World?

Differentiate between homogeneous and heterogeneous class 12 chemistry CBSE

Why is the cell called the structural and functional class 12 biology CBSE

a Tabulate the differences in the characteristics of class 12 chemistry CBSE

Who discovered the cell and how class 12 biology CBSE

Draw a labelled sketch of the human eye class 12 physics CBSE
