CourseNotes
Published on CourseNotes (https://course-notes.org)

Home > AP Statistics > Random Variables > Variance of a Random Variable

Variance of a Random Variable

Variance of a Random Variable

The variance of a random variable is the variance of all the values that the random variable would assume in the long run. The variance of a random variable can be thought of this way: the random variable is made to assume values according to its probability distribution, all the values are recorded and their variance is computed. If this process is repeated indefinitely, the calculated variance of the values will approach some finite quantity, assuming that the variance of the random variable does exist (i.e., it does not diverge to infinity). This finite value is the variance of the random variable.

The variance of the random variable X is denoted by Var(X). For a discrete random variable, Var(X) is calculated as

5rv043

Although this formula can be used to derive the variance of X, it is easier to use the following equation:

5rv044

= E(x2) - 2E(X)E(X) + (E(X))2
= E(X2) - (E(X))2

The variance of the function g(X) of the random variable X is the variance of another random variable Y which assumes the values of g(X) according to the probability distribution of X. Denoted by Var[g(X)], it is calculated as

5rv045

EX. The random variable X that assumes the value of a dice roll has the probability mass function:
p(x) = 1/6 for x
ÃŽ {1, 2, 3, 4, 5, 6}.

5rv046

5rv047

=91/6 - 12.25
= 35/12

 5rv048

5rv049

For any random variable X whose variance is Var(X), the variance of X + b, where b is a constant, is given by

Var(X + b) = E [(X + b) - E(X + b)]2 = E[X + b - (E(X) + b)]2

= E [(X - E(X)]2
= Var(X)

i.e. the variance of a random variable does not change if a constant is added to all values of the random variable.

For any random variable X whose variance is Var(X), the variance of aX, where a is a constant, is given by

Var(aX) = E [aX - E(aX)]2 = E [aX - aE(X)]2

= a2E[(X - E(X)]2
= a2Var(X)

The variance of a scalar function of a random variable is the product of the variance of the random variable and the square of the scalar.

For any two independent random variables X and Y, E(XY) = E(X) E(Y). Thus, the variance of two independent random variables is calculated as follows:

Var(X + Y) = E[(X + Y)2] - [E(X + Y)]2

=E(X2 + 2XY + Y2) - [E(X) + E(Y)]2
=E(X2) + 2E(X)E(Y) + E(Y2) - [E(X)2 + 2E(X)E(Y) + E(Y)2]
=[E(X2) - E(X)2] + [E(Y2) - E(Y)2]
= Var(X) + Var(Y)

Note that Var(-Y) = Var((-1)(Y)) = (-1)2 Var(Y) = Var(Y). Therefore

Var(X - Y) = Var(X + (-Y)) = Var(X) + Var(-Y) = Var(X) + Var(Y)

The variance of the sum or difference of two independent random variables is the sum of the variances of the independent random variables. Similarly, the variance of the sum or difference of a set of independent random variables is simply the sum of the variances of the independent random variables in the set.

 

Subject: 
Statistics [1]
Subject X2: 
Statistics [1]

Source URL:https://course-notes.org/statistics/random_variables/variance_of_a_random_variable#comment-0

Links
[1] https://course-notes.org/subject/statistics