Vous êtes sur la page 1sur 2

MathType

Statistics Examples

Mean, Variance, and Standard Deviation


Let  X1 , X2 ,..., X n  be n observations of a random variable X. We wish to measure the average of
X1 , X2 ,..., X n  in some sense. One of the most commonly used statistics is the mean,   X , defined 
by the formula
1 n
X  X   Xi
n i 1

Next, we wish to obtain some measure of the variability of the data. The statistics most often 
used are the variance and the standard deviation   X   X2 . We have

2
1  n 2 1  n  
X    Xi    Xi  
n  i 1 n  i 1  

It is easy to show that the variance is simply the mean squared deviation from the mean.

Covariance and Correlation


Next, let (X1 , Y1), (X2 , Y2) ,…, (Xn , Yn) be n pairs of values of two random variables X and Y. 
We wish to measure the degree to which X and Y vary together, as opposed to being independent.
The first statistic we will calculate is the covariance   XY  given by

1 n 1 n  n  
 XY    XiYi    Xi  Yi  
n  i 1 n  i 1  i 1  

Actually, a much better measure of correlation can be obtained from the formula

n
1 n  n 

i 1
X Y
i i   X Y
n  i 1 i   i 1 i 
XY 
 n 2 1  n  2   n 2 1  n  2 
 Xi    Xi   Yi   Yi  
 i 1 n  i 1    i 1 n  i 1  

The quantity   XY  is known as the coefficient of correlation of X and Y.

4028 Broadway Long Beach California 90803 USA | Phone 562.433.0685 | Fax 562.433.6969 | Email info@mathtype.com
The Covariance Matrix
Covariances and variances are sometimes arranged in a matrix known as a covariance matrix.  In
our case, the covariance matrix will be a  2  2  matrix:

  X2  XY 
C  
 XY  Y2 

The eigenvalues of the covariance matrix are sometimes of interest.  These are obtained in the 
usual way by solving the characteristic equation:

   X2  XY
p     det   I  C  
 XY    Y2

Statistics Examples page 2

Vous aimerez peut-être aussi