Chapter 5
Chapter 5
X X
2
i
Sample var iance S 2 i 1
i 1, 2, . . ., n
n 1
The sample variance (S2) is a point estimator of σ2 with n-1 degrees of freedom.
Standard deviation: The positive square root of the variance is called standard deviation.
Therefore
2
X X
2
2 i
Sample s tan dard deviation S S
n 1
(n 1) S 2
If sampling is from a normally distributed population, then the random variable has a
2
(n 1) S 2
chi-square distribution with n-1 degrees of freedom. That is 2
~ 2 ( n1)
Confidence intervals for the population variance
To find confidence intervals for variances and standard deviations, you must assume that the
variable is normally distributed. To calculate these confidence intervals, a new statistical
distribution is needed. It is called the chi-square distribution. The chi-square variable is
similar to the t variable in that its distribution is a family of curves based on the number of
degrees of freedom. A chi-square variable cannot be negative, and the distributions are
skewed to the right. At about 100 degrees of freedom, the chi-square distribution becomes
somewhat symmetric. The area under each chi-square distribution is equal to 1.00, or
100%.Two different values are used in the formula because the distribution is not
symmetric.
(n 1) S 2
P χ 2 α χ 2 χ 2 α 1 : Since 2
follows a chi square distribution
1
2 2
2 (n 1) S 2
P χ α 2
χ 2 α 1
1
2 2
1 2 1
P 2 2
1
χ 1 α , (n 1) (n 1) S χ 2 α , (n 1)
2 2
(n 1) S 2 (n 1) S 2
P 2 2 2 1
χ α , (n 1) χ α , (n 1)
1
2 2
Therefore the (1-α) 100% confidence interval for σ2 is given by:
(n 1) S 2 2 (n 1) S 2
χ 2 α , (n 1) χ 2 α , (n 1)
1
2 2
The (1 )100% confidence int erval for is given by :
(n 1) S 2 (n 1) S 2
χ 2 α , (n 1) χ 2 α , (n 1)
1
2 2
Example: Find the 95% confidence interval for the variance and standard deviation of the
nicotine content of cigarettes manufactured if a sample of 20 cigarettes has a standard deviation
of 1.6 milligrams.
Hence, you can be 95% confident that the true standard deviation for the nicotine content
of all cigarettes manufactured is between 1.2 and 2.3 milligrams based on a sample of 20
cigarettes.
Hypothesis testing about σ2
2 2
H0 : 2 o H 1 : 2 o two tailed
2 2
H0 : 2 o H1 : 2 o
2 2
one tailed
H0 : 2 o H1 : 2 o
(n 1) S 2
Test statistic: 2 cal
o2
Decision rule:
H1 Reject H0 if
2 cal 2 OR 2 cal 2
2
, n1
1 , n1
H1 : 2 o 2 2
H1 : 2 o
2 2 cal 2 , n1
H1 : 2 o
2 2 cal 2 1 , n1
Examples:
1. An instructor wishes to see whether the variation in scores of the 23 students in her class is
less than the variance of the population. The variance of the class is 198. Is there enough
evidence to support the claim that the variation of the students is less than the population
variance ( =225) at σ=0.05? Assume that the scores are normally distributed.
Example 2. A cigarette manufacturer wishes to test the claim that the variance of the nicotine
content of its cigarettes is 0.644. Nicotine content is measured in milligrams, and assumes that it
is normally distributed. A sample of 20 cigarettes has a standard deviation of 1.00 milligram. At
α=0.05, is there enough evidence to reject the manufacturer’s claim?
Summarize the results. There is not enough evidence to reject the manufacturer’s claim
that the variance of the nicotine content of the cigarettes is equal to 0.644.
2. A social worker believes that the aid given to refugees in a camp depends on the variation of
the age of migrants. The sample variance of the age of 101 randomly selected refugees in a
camp is found to be 31.
a) At α=0.05 test H 1 : 2 25 against H 1 : 2 25
b) Construct a 95% confidence interval for the variance
c) Construct a 95% confidence interval for the standard deviation.
3. In a drug manufacturing it is important not only that the amount of drug in the capsules be a
particular value on average, but also that the variation around that value be very small. The
drug company will consider its machine accurate enough if the capsules are filled within a
variation of σ2=0.25 mg2. Data is collected for 20 capsules and the sample standard
deviation is found to be 0.787. Is this variability significantly greater than what the company
will tolerate? Use α=0.05.
Solution:
a)
Step1 : H 0 : 2 25 H 1 : 2 25
Step 2 : 0.05
Step3 : Chi square distribution
Step 4 : Re jection region H 0 if 2 cal 2 0.025, 100 129.561 OR 2 cal 2 0.975, 100 74.222
2)
Step1 : H 0 : 2 0.25 H 1 : 2 0.25
Step 2 : 0.05
Step3 : Chi square distribution
Step 4 : Re jection region H 0 if 2 cal 2 0.05, 19 30.144
= , where the larger of the two variances is placed in the numerator regardless of the
subscripts. The F test has two terms for the degrees of freedom: that of the numerator, n1-1, and
that of the denominator, n2-1, where n1 is the sample size from which the larger variance was obtained.
NOTE: When you are finding the F test value, the larger of the variances is placed in the numerator of the
F formula; this is not necessarily the variance of the larger of the two sample sizes.
Example. A medical researcher wishes to see whether the variance of the heart rates (in beats per minute)
of smokers is different from the variance of heart rates of people who do not smoke. Two samples are
selected, and the data are as shown. Using a0.05, is there enough evidence to support the claim?
Exercise : 1 An experiment was conducted to determine whether there was sufficient evidence to indicate
that data variation within one population, say population A, exceeded the variation within a second
population, population B. Random samples of = = 8 measurements were selected from the two
populations and the sample variances were calculated to be