# Connexions

You are here: Home » Content » THE MEAN, VARIANCE, AND STANDARD DEVIATION

### Lenses

What is a lens?

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

#### In these lenses

• Statistics

This module is included inLens: Mathieu Plourde's Lens
By: Mathieu PlourdeAs a part of collection: "Introduction to Statistics"

Click the "Statistics" link to see all content selected in this lens.

### Recently Viewed

This feature requires Javascript to be enabled.

# THE MEAN, VARIANCE, AND STANDARD DEVIATION

Module by: Ewa Paszek. E-mail the author

Summary: This course is a short series of lectures on Introductory Statistics. Topics covered are listed in the Table of Contents. The notes were prepared by Ewa Paszek and Marek Kimmel. The development of this course has been supported by NSF 0203396 grant.

## The MEAN, VARIANCE, and STANDARD DEVIATION

### MEAN and VARIANCE

Certain mathematical expectations are so important that they have special names. In this section we consider two of them: the mean and the variance.

Mean Value

If X is a random variable with p.d.f. f( x ) f( x ) of the discrete type and space R= ( b 1 , b 2 , b 3 ,... ) ( b 1 , b 2 , b 3 ,... ) , then E( X )= R xf( x )= b 1 f( b 1 )+ b 2 f( b 2 )+ b 3 f( b 3 )+... E( X )= R xf( x )= b 1 f( b 1 )+ b 2 f( b 2 )+ b 3 f( b 3 )+... is the weighted average of the numbers belonging to R, where the weights are given by the p.d.f. f( x ) f( x ) .

We call E( X ) E( X ) the mean of X (or the mean of the distribution) and denote it by μ μ . That is, μ=E( X ) μ=E( X ) .

##### REMARK:
In mechanics, the weighted average of the points b 1 , b 2 , b 3 ,... b 1 , b 2 , b 3 ,... in one-dimensional space is called the centroid of the system. Those without the mechanics background can think of the centroid as being the point of balance for the system in which the weights f( b 1 ),f( b 2 ),f( b 3 ),... f( b 1 ),f( b 2 ),f( b 3 ),... are places upon the points b 1 , b 2 , b 3 ,... b 1 , b 2 , b 3 ,... .
##### Example 1

Let X have the p.d.f.

f( x )={ 1 8 ,x=0,3, 3 8 ,x=1,2. f( x )={ 1 8 ,x=0,3, 3 8 ,x=1,2.

The mean of X is

μ=E[X=0(18)+1(38)+2(38 )+3( 1 8 )= 3 2 . μ=E[X=0(18)+1(38)+2(38 )+3( 1 8 )= 3 2 .

The example below shows that if the outcomes of X are equally likely (i.e., each of the outcomes has the same probability), then the mean of X is the arithmetic average of these outcomes.

##### Example 2

Roll a fair die and let X denote the outcome. Thus X has the p.d.f. f( x )= 1 6 ,x=1,2,3,4,5,6. f( x )= 1 6 ,x=1,2,3,4,5,6. Then,

E( X )= x=1 6 x( 1 6 )= 1+2+3+4+5+6 6 = 7 2 , E( X )= x=1 6 x( 1 6 )= 1+2+3+4+5+6 6 = 7 2 ,

which is the arithmetic average of the first six positive integers.

Variance

It was denoted that the mean μ=E( X ) μ=E( X ) is the centroid of a system of weights of measure of the central location of the probability distribution of X. A measure of the dispersion or spread of a distribution is defined as follows:

If u( x )= ( xμ ) 2 u( x )= ( xμ ) 2 and E[ ( Xμ ) 2 ] E[ ( Xμ ) 2 ] exists, the variance, frequently denoted by σ 2 σ 2 or Var( X ) Var( X ) , of a random variable X of the discrete type (or variance of the distribution) is defined by

σ 2 =E[ ( Xμ ) 2 ]= R ( xμ ) 2 f( x ) . σ 2 =E[ ( Xμ ) 2 ]= R ( xμ ) 2 f( x ) .
(1)

The positive square root of the variance is called the standard deviation of X and is denoted by

σ= Var( X ) = E[ ( Xμ ) 2 ] . σ= Var( X ) = E[ ( Xμ ) 2 ] .
(2)
##### Example 3

Let the p.d.f. of X by defined by f( x )= x 6 ,x=1,2,3. f( x )= x 6 ,x=1,2,3.

The mean of X is

μ=E( X )=1( 1 6 )+2( 2 6 )+3( 3 6 )= 7 3 . μ=E( X )=1( 1 6 )+2( 2 6 )+3( 3 6 )= 7 3 .

To find the variance and standard deviation of X we first find

E( X 2 )= 1 2 ( 1 6 )+ 2 2 ( 2 6 )+ 3 2 ( 3 6 )= 36 6 =6. E( X 2 )= 1 2 ( 1 6 )+ 2 2 ( 2 6 )+ 3 2 ( 3 6 )= 36 6 =6.

Thus the variance of X is σ 2 =E( X 2 ) μ 2 =6 ( 7 3 ) 2 = 5 9 , σ 2 =E( X 2 ) μ 2 =6 ( 7 3 ) 2 = 5 9 ,

and the standard deviation of X is σ= 5 9 =0.745. σ= 5 9 =0.745.

##### Example 4

Let X be a random variable with mean μ x μ x and variance σ x 2 σ x 2 . Of course, Y=aX+b Y=aX+b , where a and b are constants, is a random variable, too. The mean of Y is

μ Y =E( Y )=E( aX+b )=aE( X )+b=a μ X +b.  μ Y =E( Y )=E( aX+b )=aE( X )+b=a μ X +b.

Moreover, the variance of Y is

σ Y 2 =E[ ( Y μ Y ) 2 ]=E[ ( aX+ba μ X b ) 2 ]=E[ a 2 ( X μ X ) 2 ]= a 2 σ X 2 . σ Y 2 =E[ ( Y μ Y ) 2 ]=E[ ( aX+ba μ X b ) 2 ]=E[ a 2 ( X μ X ) 2 ]= a 2 σ X 2 .

Moments of the distribution

Let r be a positive integer. If E( X r )= R x r f( x ) E( X r )= R x r f( x ) exists, it is called the rth moment of the distribution about the origin. The expression moment has its origin in the study of mechanics.

In addition, the expectation E[ ( Xb ) r ]= R x r f( x ) E[ ( Xb ) r ]= R x r f( x ) is called the rth moment of the distribution about b. For a given positive integer r.

E[ ( X ) r ]=E[ X( X1 )( X2 )( Xr+1 ) ] E[ ( X ) r ]=E[ X( X1 )( X2 )( Xr+1 ) ] is called the rth factorial moment.

##### Note That:
The second factorial moment is equal to the difference of the second and first moments: E[ X( X1 ) ]=E( X 2 )E( X ). E[ X( X1 ) ]=E( X 2 )E( X ).

There is another formula that can be used for computing the variance that uses the second factorial moment and sometimes simplifies the calculations.

First find the values of E( X ) E( X ) and E[ X( X1 ) ] E[ X( X1 ) ] . Then σ 2 =E[ X( X1 ) ]+E( X ) [ E( X ) ] 2 , σ 2 =E[ X( X1 ) ]+E( X ) [ E( X ) ] 2 , since using the distributive property of E, this becomes σ 2 =E( X 2 )E( X )+E( X ) [ E( X ) ] 2 =E( X 2 ) μ 2 . σ 2 =E( X 2 )E( X )+E( X ) [ E( X ) ] 2 =E( X 2 ) μ 2 .

##### Example 5

Let continue with example 4, it can be find that

E[ X( X1 ) ]=1( 0 )( 1 6 )+2( 1 )( 2 6 )+3( 2 )( 3 6 )= 22 6 . E[ X( X1 ) ]=1( 0 )( 1 6 )+2( 1 )( 2 6 )+3( 2 )( 3 6 )= 22 6 .

Thus σ 2 =E[ X( X1 ) ]+E( X ) [ E( X ) ] 2 = 22 6 + 7 3 ( 7 3 ) 2 = 5 9 . σ 2 =E[ X( X1 ) ]+E( X ) [ E( X ) ] 2 = 22 6 + 7 3 ( 7 3 ) 2 = 5 9 .

##### REMARK:
Recall the empirical distribution is defined by placing the weight (probability) of 1/n on each of n observations x 1 , x 2 ,..., x n x 1 , x 2 ,..., x n . Then the mean of this empirical distribution is i=1 n x i 1 n = i=1 n x i n = x ¯ . i=1 n x i 1 n = i=1 n x i n = x ¯ .

The symbol x ¯ x ¯ represents the mean of the empirical distribution. It is seen that x ¯ x ¯ is usually close in value to μ=E( X ) μ=E( X ) ; thus, when μ μ is unknown, x ¯ x ¯ will be used to estimate μ μ .

Similarly, the variance of the empirical distribution can be computed. Let v denote this variance so that it is equal to

v= i=1 n ( x i x ¯ ) 2 1 n = i=1 n x i 2 1 n x ¯ 2 = 1 n i=1 n x i 2 x ¯ 2 . v= i=1 n ( x i x ¯ ) 2 1 n = i=1 n x i 2 1 n x ¯ 2 = 1 n i=1 n x i 2 x ¯ 2 .

This last statement is true because, in general, σ 2 =E( X 2 ) μ 2 . σ 2 =E( X 2 ) μ 2 .

##### NOTE THAT:
There is a relationship between the sample variance s 2 s 2 and variance v of the empirical distribution, namely s 2 =ns/( n1 ) s 2 =ns/( n1 ) . Of course, with large n, the difference between s 2 s 2 and v is very small. Usually, we use s 2 s 2 to estimate σ 2 σ 2 when σ 2 σ 2 is unknown.

## Content actions

PDF | EPUB (?)

### What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks