Mean and Variance
Mean and Variance
Mean and Variance
This example suggests the need for what follows in Sections 1.3 and 1.4, namely,
descriptive statistics that indicate measures of center of location in a set of data,
and those that measure variability.
Definition 1.1: Suppose that the observations in a sample are x1 , x2 , . . . , xn . The sample mean,
denoted by x̄, is
n
xi x1 + x 2 + · · · + x n
x̄ = = .
i=1
n n
There are other measures of central tendency that are discussed in detail in
future chapters. One important measure is the sample median. The purpose of
the sample median is to reflect the central tendency of the sample in such a way
that it is uninfluenced by extreme values or outliers.
Definition 1.2: Given that the observations in a sample are x1 , x2 , . . . , xn , arranged in increasing
order of magnitude, the sample median is
x(n+1)/2 , if n is odd,
x̃ = 1
2 (xn/2 + xn/2+1 ), if n is even.
As an example, suppose the data set is the following: 1.7, 2.2, 3.9, 3.11, and
14.7. The sample mean and median are, respectively,
x̄ = 5.12, x̃ = 3.9.
Clearly, the mean is influenced considerably by the presence of the extreme obser-
vation, 14.7, whereas the median places emphasis on the true “center” of the data
set. In the case of the two-sample data set of Example 1.2, the two measures of
central tendency for the individual samples are
x 0.565
0.25 0.30 0.35 0.40 0.45 0.50 0.55 0.60 0.65 0.70 0.75 0.80 0.85 0.90
Exercises 13
Exercises
20◦ C: 2.07 2.14 2.22 2.03 2.21 2.03 (b) Compute sample mean tensile strength for both
2.05 2.18 2.09 2.14 2.11 2.02 samples.
45◦ C: 2.52 2.15 2.49 2.03 2.37 2.05
1.99 2.42 2.08 2.42 2.29 2.01 (c) Does it appear as if curing temperature has an
influence on tensile strength, based on the plot?
Comment further.
(a) Show a dot plot of the data with both low and high
(d) Does anything else appear to be influenced by an
temperature tensile strength values.
increase in curing temperature? Explain.
Data set A: X X X X X X 0 X X 0 0 X X X 0 0 0 0 0 0 0 0
xX x0
Data set B: X X X X X X X X X X X 0 0 0 0 0 0 0 0 0 0 0
xX x0
1.4 Measures of Variability 15
n
(xi − x̄)2
s2 = .
i=1
n−1
It should be clear to the reader that the sample standard deviation is, in fact,
a measure of variability. Large variability in a data set produces relatively large
values of (x − x̄)2 and thus a large sample variance. The quantity n − 1 is often
called the degrees of freedom associated with the variance estimate. In this
simple example, the degrees of freedom depict the number of independent pieces
of information available for computing variability. For example, suppose that we
wish to compute the sample variance and standard deviation of the data set (5,
17, 6, 4). The sample average is x̄ = 8. The computation of the variance involves
7.07 7.00 7.10 6.97 7.00 7.03 7.01 7.01 6.98 7.08.
Exercises
1.7 Consider the drying time data for Exercise 1.1 1.10 For the data of Exercise 1.4 on page 13, com-
on page 13. Compute the sample variance and sample pute both the mean and the variance in “flexibility”
standard deviation. for both company A and company B. Does there ap-
pear to be a difference in flexibility between company
1.8 Compute the sample variance and standard devi- A and company B?
ation for the water absorbency data of Exercise 1.2 on
page 13. 1.11 Consider the data in Exercise 1.5 on page 13.
Compute the sample variance and the sample standard
1.9 Exercise 1.3 on page 13 showed tensile strength deviation for both control and treatment groups.
data for two samples, one in which specimens were ex-
posed to an aging process and one in which there was 1.12 For Exercise 1.6 on page 13, compute the sample
no aging of the specimens. standard deviation in tensile strength for the samples
(a) Calculate the sample variance as well as standard separately for the two temperatures. Does it appear as
deviation in tensile strength for both samples. if an increase in temperature influences the variability
(b) Does there appear to be any evidence that aging in tensile strength? Explain.
affects the variability in tensile strength? (See also
the plot for Exercise 1.3 on page 13.)