Variance and Standard Deviation
Variance and Standard Deviation
1
Variance and Standard Deviation
We need a measure of the distribution or spread of data
around an expected value (either x or ). Variance and
standard deviation provide such measures.
2
Measures of Variation:
• The Sample Variance
• Average (approximately) of squared deviations of values
from the mean
n
• Sample variance: (X X) i
2
S 2 i1
n -1
Where X = arithmetic mean
n = sample size
Xi = ith value of the variable X
3
Sample Variance
4
SAMPLE VARIANCE
n xi
1 i 1
S2 i
n 1 i 1
x 2
n
• Where S2 is the sample variance
• n is the total number of values in the sample
• xi is the value of the i-th observation.
• represents a summation
5
Measures of Variation:
i
(X X ) 2
S i1
n -1
6
Population Variance
• In practice population variance cannot be computed
directly because the entire population is not ordinarily
observed.
• An analogous measure of variability may be determined
with sample data.
• This referred to as sample variance
7
SAMPLE VARIANCE
8
POPULATION/SAMPLE STANDARD DEVIATION
9
The population mean
X i
X1 X2 XN
i1
N N
where μ = population mean
N = population size
Xi = ith value of the variable X
10
Population Variance σ2
i
(X μ)2
σ2 i1
N
i
(X μ) 2
σ i1
N
12
POPULATION / SAMPLE STANDARD DEVIATION
13
Sample vs population parameters
14
Variance and Standard Deviation
Procedure:
15
Variance and Standard Deviation
16
Variance and Standard Deviation
17
Variance and Standard Deviation
In statistics, the sample standard deviation and sample
variance are used to describe the spread of data about the
mean x.
18
Variance and Standard Deviation
However, the defining formulas for s 2 and s emphasize the
fact that the variance and standard deviation are based on
the differences between each data value and the mean.
19
Variance and Standard Deviation
20
Example – Sample Standard Deviation (Defining Formula)
21
Standard Deviation
22
Standard Deviation
23
Standard Deviation
variance = 206,
24
Example – Sample Standard Deviation (Defining Formula)
2 3 3 8 10 10
25
Example – Solution
Several steps are involved in computing the variance and
standard deviation. A table will be helpful (see Table).
26
Example – Solution
27
Example – Solution
28
Variance
29
Variance
30
Variance
31
Variance and Standard Deviation
In most applications of statistics, we work with a random
sample of data rather than the entire population of all
possible data values.
32
Variance and Standard Deviation
However, if we have data for the entire population, we can
compute the population mean , population variance 2,
and population standard deviation (lowercase Greek
letter sigma) using the following formulas:
33
Variance and Standard Deviation
We note that the formula for is the same as the formula
for x (the sample mean) and that the formulas for 2 and
are the same as those for s 2 and s (sample variance and
sample standard deviation), except that the population size
N is used instead of n – 1.
36
Standard Deviation
37
Standard Deviation
Example:
38
Standard Deviation
39
Variance / Standard Deviation
40
Variance
41
Standard Deviation
Marks: 10 20 30 40 50 60 70
No. of students: 6 5 12 3 5 4 5
42
Standard Deviation
43
Standard Deviation
44
Standard Deviation
45
Example – Sample Standard Deviation (Defining Formula)
Ex:
46
Standard Deviation
47
Standard deviation
Ex: A study of the age of 100 persons grouped into
intervals 20–22, 22–24, 24–26,..., revealed the mean age
and standard deviation to be 32.02 and 13.18 respectively.
While checking it was discovered that the observation 57
was misread as 27. Calculate the correct mean age and
standard deviation.
48
Standard deviation
49
Coefficient of Variation
50
Coefficient of Variation
A disadvantage of the standard deviation as a comparative
measure of variation is that it depends on the units of
measurement.
51
Coefficient of Variation
53
Coefficient of Variation
54
Example – Coefficient of Variation
The Trading Post on Grand Mesa is a small, family-run
store in a remote part of Colorado. The Grand Mesa region
contains many good fishing lakes, so the Trading Post sells
spinners (a type of fishing lure).
Solution:
Since the computation formulas for x and are identical,
most calculators provide the value of x only.
Solution:
57
Example – Solution
Interpretation
The coefficient of variation can be thought of as a measure
of the spread of the data relative to the average of the data.
58
Example
Ex: The weekly sales of two products A and B were
recorded as given below:
Product A : 59 75 27 63 27 28 56
Product B : 150 200 125 310 330 250 225
Find out which of the two shows greater fluctuation in
sales.
59
Example
Product A: Let A = 56 be the assumed mean of sales for
product A
60
Example
61
Example
62
Example
63
Example
From the analysis of monthly wages paid to employees in two service
organizations X and Y, the following results were obtained:
(b)
66
Example – Solution
From the analysis of monthly wages paid to workers
in two organizations X and Y, the following results
were obtained:
69
Example
32 trials of a process to finish a certain job revealed the
following information:
Mean time taken to complete the job = 80 minutes
Standard deviation = 16 minutes
Another set of 8 trials gave mean time as 100 minutes and
standard deviation equal to 25 minutes.
Find the combined mean and standard deviation.
Solution:
70
Example
An analysis of production rejects resulted in the following
observations
Solution:
71
Example
From the analysis of monthly wages paid to employees in
two service organizations X and Y, the following results
were obtained:
72
Example
73
Example
From the analysis of monthly wages paid to workers in two
organizations X and Y, the following results were obtained:
X Y
Number of wage-earners : 550 600
Average monthly wages (Rs.): 1260 1348.5
Variance of distribution of
wages (Rs.): 100 841
74
Example
The following set of data is from a sample of
7 4 9 8 2
a. Compute the mean, median, and mode.
b. Compute the range, variance, standard deviation, and
coefficient of variation.