








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









Note. In the previous chapter, we presented various ways to display data and then casually described such things as the center and overall pattern. In this chapter, we make things more quantitative and give formal definitions of various nu- merical parameters of data.
Measuring Center: The Mean
Definition. If n numerical observations are denoted by x 1 , x 2 ,... , xn, their mean is
x = x^1 +^ x^2 + n^ · · ·^ +^ xn
or in more compact notation
x = n^1
∑^ n
i=
xi.
Example S.2.1. Mean Slaps. According to Michael Fleming’s The Three Stooges—An Il- lustrated History, we have the following slap count for the Three Stooges shorts from the 1937 production year.
Find the mean number of slaps per film for the 1937 produc- tion year.
Solution. We have n = 8 data points, so in the notation of the formula for the mean, we have: x 1 = 8 x 5 = 8 x 2 = 7 x 6 = 3 x 3 = 8 x 7 = 8 x 4 = 6 x 8 = 3.
So we get the mean of the data is
x = n^1 ∑^ n i=
xi = x^1 +^ x^2 + n^ · · ·^ +^ xn = 8 + 7 + 8 + 6 + 8 + 3 + 8 + 3 8 = 6. 375.
Comparing the Mean and the Median
Note. The mean and median of a roughly symmetric dis- tribution are close together. If the distribution is exactly symmetric, the mean and median are exactly the same. In a skewed distribution, the mean is usually farther out in the long talk than is the median.
Note. The median of a data set is not much influenced by very large or very small data values. It is said that the median is “resistant.” However, these extreme data values can have an influence on the mean.
Example. Exercise 2.4 page 41. Work as stated.
Measuring Spread: The Quartiles
Note. The mean and the median only give an idea of the central tendency of a set of data. Another important aspect of a data set is the spread of the data. One measure of the spread is the range.
Definition. The range of a data set is the difference between the largest and smallest observations.
Note. Other useful measures of the spread of a set of data are the quartiles. They are, informally, the median of the lower half of the data (called the first quartile and the median of the higher half of the data (called the third quartile).
Definition. The quartiles are calculated as:
Solution. First, we must arrange the data in order from smallest to largest: rank 1 2 3 4 5 6 7 8 9 10 11 12 13 Year 1937 1957 1942 1954 1938 1948 1945 1936 1941 1958 1939 1943 1952 slaps/film 6.4 6.4 7.6 8.5 8.9 9.9 10.2 10.5 10.6 11.4 11.6 12.2 13. rank 14 15 16 17 18 19 20 21 22 23 24 25 Year 1944 1940 1949 1955 1946 1953 1956 1950 1951 1935 1947 1934 slaps/film 13.7 14.0 14.4 14.8 15.6 16.0 17.8 19.6 21.1 23.1 31.9 33. More simply, we get: 6.4 6.4 7.6 8.5 8.9 9.9 10.2 10.5 10.6 11.4 11.6 12.
13.7 14.0 14.4 14.8 15.6 16.0 17.8 19.6 21.1 23.1 31.9 33. Since there are n = 25 (odd) data points, the median is the number in position (n + 1)/2 = ((25) + 1)/2 = 13. The data point in the 13th position is 13.6, so this is the median: M = 13.6. Since there are 12 (even) data points to the left of the median (in the ordered list), then we find the first quartile by averaging the center two numbers in the list of the first 12 data points. These are the values 9.9 and 10.2, so Q 1 =^9 .9 + 10 2.^2 = 10.05. Since there are 12 (even) data points to the right of the median (in the ordered list), then we find the third quartile by averaging the center two numbers in the list of the last 12 data points. These are the values 16. and 17.8, so Q 3 =^16 .0 + 17 2.^8 = 16.9.
The Five-Number Summary and Boxplots
Definition. The five-number summary of a distribution consists of the smallest observation, the first quartile, the me- dian, the third quartile, and the largest observation, written in order from smallest to largest. In symbols the five-number summary is:
Minimum Q 1 M Q 3 Maximum
Example S.2.4. Five-Numbered Stooges What is the five-number summary for the slaps per film data of Example S.2.3?
Solution. The minimum number in the data is 6.4 and the maximum is 33.5, so the five-number summary is:
Definition. A boxplot is a graph of the five-number sum- mary. It includes the properties:
Spotting Suspected Outliers
Definition. The interquartile range is the distance be- tween the first and third quartiles:
IQR = Q 3 − Q 1.
Note. The following is simply a “rule of thumb” for candi- date outliers: The 1. 5 × IQR Rule for Outliers. Call an observation a suspected outlier if it falls more than 1. 5 × IQR above the third quartile of below the first quartile.
Example S.2.6. Stooge Outliers. Does the slaps per film data of Example S.2.3 have any out- liers, according to the 1. 5 × IQR rule?
Measuring Spread: The Standard Deviation
Note. A much more common description of the spread of a set of data is the standard deviation and (quoting Moore) “its close relative, the variance.”
Definition. The variance s^2 of a set of observations is an average of the squares of the deviations of the observations from their mean. In symbols, the variance of n observations x 1 , x 2 ,... , xn is
s^2 = (x^1 −^ x)
(^2) + (x 2 − x) (^2) + · · · + (xn − x) 2 n − 1 or, more compactly,
s^2 = 1 n − 1
∑^ n
i=
(xi − x)^2.
The standard deviation s is the square root of the variance s^2 :
s =
n − 1
∑^ n
i=
(xi − x)^2.
(Some texts call these the “sample variance” and “sample standard deviation — versus the population variance and standard deviation.)
Note. Some properties of the standard deviation are:
Choosing Measures of Center and Spread
Note. The five-number summary is usually better than the mean and standard deviation for describing a skewed distribu- tion. Use x and s only for reasonably symmetric distributions that are free of outliers.
Organizing a Statistical Problem
Note. The “Four-Step Process” for organizing a statistical problem is:
State: What is the practical question, in the context of the real-world setting?
Formulate: What specific statistical operations does this problem call for?
Solve: Make the graphs and carry out the calculations needed for this problem.
Conclude: Give your practical conclusion in the setting of the real-world problem.
Example. Exercise 2.12 page 55.
rbg-12-13-