Professional Documents
Culture Documents
CI NOTE
CI NOTE
sample mean x and then substitute x into (7.4) in place of X, the resulting fixed
interval is called a 95% confidence interval for m. This CI can be expressed
either as
1x 2 1.96 ? Ïn , x 1 1.96 ? Ïn2 is a 95% CI for
or as
x 2 1.96 ? , , x 1 1.96 ? with 95% confidence
Ïn Ïn
A concise expression for the interval is x 6 1.96 ? yÏn, where 2 gives the
left endpoint (lower limit) and 1 gives the right endpoint (upper limit).
The correlation coefficient of X and Y, denoted by Corr(X, Y), X,Y, or just ,
is defined by
Cov(X, Y)
X, Y 5
X ? Y
2. For any two rv’s X and Y, 21 # # 1. The two variables are said to be
uncorrelated when 5 0.
The covariance of any two random variables X and Y , denoted by Cov(X, Y ), is de-
fined by
Let us consider now the special case where X and Y are indicator variables for
whether or not the events A and B occur. That is, for events A and B, define
1, if A occurs 1, if B occurs
X= Y=
0, otherwise, 0, otherwise
Then,
and, because XY will equal 1 or 0 depending on whether or not both X and Y equal 1,
we see that
Cov(X, Y ) = P {X = 1, Y = 1} − P {X = 1}P {Y = 1}
⇔ P {Y = 1|X = 1} > P {Y = 1}
That is, the covariance of X and Y is positive if the outcome X = 1 makes it more
likely that Y = 1 (which, as is easily seen by symmetry, also implies the reverse).
Properties of Covariance
For any random variables X, Y, Z and constant c,
1. Cov(X, X) = Var(X),
2. Cov(X, Y ) = Cov(Y, X),
3. Cov(cX, Y ) = c Cov(X, Y ),
4. Cov(X, Y + Z) = Cov(X, Y ) + Cov(X, Z).
Whereas the first three properties are immediate, the final one is easily proven as
follows:
The fourth property listed easily generalizes to give the following result:
⎛ ⎞
n m n m
Cov ⎝ Xi , Yj ⎠ = Cov(Xi , Yj )
i=1 j =1 i=1 j =1
A useful expression for the variance of the sum of random variables can be obtained
as follows:
⎛ ⎞
n n
n
Var Xi = Cov ⎝ Xi , Xj ⎠
i=1 i=1 j =1
n
n
= Cov(Xi , Xj )
i=1 j =1
n n
= Cov(Xi , Xi ) + Cov(Xi , Xj )
i=1 i=1 j =i
n n
= Var(Xi ) + 2 Cov(Xi , Xj )
i=1 i=1 j < i
n
n
Var Xi = Var(Xi )
i=1 i=1