Beruflich Dokumente
Kultur Dokumente
John Norstad
j-norstad@northwestern.edu
http://www.norstad.org
September 11, 2002
Updated: November 3, 2011
Abstract
We dene and review the basic notions of variance, standard deviation, covari-
ance, and correlation coecients for random variables. We give proofs of their
basic properties.
1 DEFINITIONS AND SUMMARY OF THE PROPOSITIONS 1
1 Denitions and Summary of the Propositions
Denition 1 E(X) = the expected value of a random variable X is the mean
or average value of X.
Denition 2 Var(X) = the variance of X = E([X E(X)]
2
).
Denition 3 Stdev(X) = the standard deviation of X =
_
Var(X).
Denition 4 Cov(X, Y ) = the covariance of X and Y =
E([X E(X)][Y E(Y )]).
Denition 5 Cor(X, Y ) = the correlation coecient of X and Y =
Cov(X,Y )
Stdev(X)Stdev(Y )
.
Proposition 1: Var(X) = E(X
2
) E(X)
2
Proposition 2: Var(aX +b) = a
2
Var(X)
Proposition 3: Stdev(aX +b) = |a|Stdev(X)
Proposition 4: Cov(X, Y ) = E(XY ) E(X)E(Y )
Proposition 5: Cov(aX +b, cY +d) = acCov(X, Y )
Proposition 6: Cov(X, X) = Var(X)
Proposition 7: Cov(X, Y ) = Cov(Y, X)
Proposition 8: Var
_
n
i=1
w
i
X
i
_
=
n
i=1
n
j=1
w
i
w
j
Cov(X
i
, X
j
)
Proposition 9: Cov
_
n
i=1
w
i
X
i
, Y
_
=
n
i=1
w
i
Cov(X
i
, Y )
Proposition 10: |Cor(X
1
, X
2
)| 1
2 PROOFS OF THE PROPOSITIONS 2
2 Proofs of the Propositions
Proposition 1 Var(X) = E(X
2
) E(X)
2
Proof:
Var(X) = E([X E(X)]
2
)
= E(X
2
2XE(X) + E(X)
2
)
= E(X
2
) 2E(X)E(X) + E(X)
2
= E(X
2
) E(X)
2
Proposition 2 Var(aX +b) = a
2
Var(X)
Proof :
Var(aX +b) = E([(aX +b) E(aX +b)]
2
)
= E([aX +b aE(X) b]
2
)
= E([a(X E(X))]
2
)
= E(a
2
[X E(X)]
2
)
= a
2
E([X E(X)]
2
)
= a
2
Var(X)
Proposition 3 Stdev(aX +b) = |a|Stdev(X)
Proof :
Stdev(aX +b) =
_
Var(aX +b)
=
_
a
2
Var(X) (by Proposition 2)
= |a|
_
Var(X)
= |a|Stdev(X)
Proposition 4 Cov(X, Y ) = E(XY ) E(X)E(Y )
Proof :
Cov(X, Y ) = E([X E(X)][Y E(Y )])
= E(XY XE(Y ) E(X)Y + E(X)E(Y ))
= E(XY ) E(X)E(Y ) E(X)E(Y ) + E(X)E(Y ))
= E(XY ) E(X)E(Y )
2 PROOFS OF THE PROPOSITIONS 3
Proposition 5 Cov(aX +b, cY +d) = acCov(X, Y )
Proof :
Cov(aX +b, cY +d) = E([aX +b E(aX +b)][cY +d E(cY +d)])
= E([aX +b aE(X) b][cY +d cE(Y ) d])
= E(a[X E(X)]c[Y E(Y )])
= acE([X E(X)][Y E(Y )])
= acCov(X, Y )
Proposition 6 Cov(X, X) = Var(X)
Proof :
Cov(X, X) = E([X E(X)][X E(X)])
= E([X E(X)]
2
)
= Var(X)
Proposition 7 Cov(X, Y ) = Cov(Y, X)
Proof :
Cov(X, Y ) = E([X E(X)][Y E(Y )])
= E([Y E(Y )][X E(X)])
= Cov(Y, X)
2 PROOFS OF THE PROPOSITIONS 4
Proposition 8 Var
_
n
i=1
w
i
X
i
_
=
n
i=1
n
j=1
w
i
w
j
Cov(X
i
, X
j
)
Proof :
Var
_
n
i=1
w
i
X
i
_
= E
_
_
_
n
i=1
w
i
X
i
_
2
_
_
E
_
n
i=1
w
i
X
i
_
2
(by Proposition 1)
= E
_
_
n
i=1
n
j=1
w
i
w
j
X
i
X
j
_
_
_
n
i=1
w
i
E(X
i
)
_
2
=
n
i=1
n
j=1
w
i
w
j
E(X
i
X
j
)
n
i=1
n
j=1
w
i
w
j
E(X
i
)E(X
j
)
=
n
i=1
n
j=1
w
i
w
j
[E(X
i
X
j
) E(X
i
)E(X
j
)]
=
n
i=1
n
j=1
w
i
w
j
Cov(X
i
, X
j
) (by Proposition 4)
Proposition 8 can be stated in terms of matrix algebra as follows:
Var
_
n
i=1
w
i
X
i
_
= w
V w
where:
w = column vector of the values w
i
for i = 1 . . . n
w
i=1
w
i
X
i
, Y
_
=
n
i=1
w
i
Cov(X
i
, Y )
Proof :
Cov
_
n
i=1
w
i
X
i
, Y
_
= E
_
n
i=1
w
i
X
i
Y
_
E
_
n
i=1
w
i
X
i
_
E(Y )
(by Proposition 4)
=
n
i=1
w
i
E(X
i
Y )
n
i=1
w
i
E(X
i
)E(Y )
=
n
i=1
w
i
[E(X
i
Y ) E(X
i
)E(Y )]
=
n
i=1
w
i
Cov(X
i
, Y ) (by Proposition 4)
Lemma 1 Let = E(X) and = Stdev(X). Dene
X =
X
. Then
E(
X) = 0 and Var(
X) = Stdev(
X) = 1.
Proof :
E(
X) = E
_
X
_
=
1
(E(X) ) =
1
(0) = 0
Var(
X) = E
_
_
X
E
_
X
__
2
_
= E
_
_
1
(X E(X))
_
2
_
=
1
2
E([X E(X)]
2
)
=
1
2
Var(X)
= 1
2 PROOFS OF THE PROPOSITIONS 6
Lemma 2 Let
1
= E(X
1
),
1
= Stdev(X
1
),
2
= E(X
2
), and
2
= Stdev(X
2
)
Dene
X
1
=
X
1
1
and
X
2
=
X
2
2
Then Cor(X
1
, X
2
) = Cov(
X
1
,
X
2
).
Proof :
Cov(
X
1
,
X
2
) = Cov
_
X
1
1
,
X
2
2
_
=
1
2
Cov(X
1
, X
2
) (by Proposition 5)
= Cor(X
1
, X
2
)
Proposition 10 |Cor(X
1
, X
2
)| 1
Proof :
1
Dene
X
1
and
X
2
as in [2].
0 Var(
X
1
+
X
2
)
= Var(
X
1
) + 2Cov(
X
1
,
X
2
) + Var(
X
2
)
(by Propositions 6, 7 and 8)
= 2(1 + Cor(X
1
, X
2
)) (by Lemmas 1 and 2)
0 1 + Cor(X
1
, X
2
)
1 Cor(X
1
, X
2
)
Similarly,
0 Var(
X
1
X
2
)
= Var(
X
1
) 2Cov(
X
1
,
X
2
) + Var(
X
2
)
(by Propositions 5, 6, 7 and 8)
= 2(1 Cor(X
1
, X
2
)) (by Lemmas 1 and 2)
0 1 Cor(X
1
, X
2
)
1 Cor(X
1
, X
2
)
1
This nifty proof is from Feller [1]
REFERENCES 7
References
[1] William Feller. An Introduction to Probability Theory and Its Applications,
volume 1. John Wiley & Sons, third edition, 1968.