Docsity

Numerical Summaries for Data: Measuring Center and Spread, Study notes of Statistics

Toggle sidebar
bg1
Stat 528 (Autumn 2008) – Elly Kaizar
Numerical summaries for data
(Describing distributions with numbers)
Reading: Section 1.2
•Measures of the center
–the mean, median, mode, trimmed mean
–What do we use – the mean or the median?
•Quartiles
–A five number summary
–Boxplots
–Outliers
•Measures of spread/variability
–Standard deviation, variance, IQR and range
•Numerical Summaries in MINITAB
•Changing the units of measurement
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download Numerical Summaries for Data: Measuring Center and Spread and more Study notes Statistics in PDF only on Docsity!

Stat 528 (Autumn 2008) – Elly Kaizar Numerical summaries for data (Describing distributions with numbers)

Reading: Section 1.

  • Measures of the center
    • the mean, median, mode, trimmed mean
    • What do we use – the mean or the median?
  • Quartiles
    • A five number summary
    • Boxplots
    • Outliers
  • Measures of spread/variability
    • Standard deviation, variance, IQR and range
  • Numerical Summaries in MINITAB
  • Changing the units of measurement

The sheep weights revisited

  • Here is the dataset of the weights (in pounds) of 23 sheep. 180 160 157 185 159 165 168 165 175 186 155 169 168 170 173 181 189 179 182 177 157 169 166
  • Here is the stemplot Stem-and-leaf of sheep N = 23 Leaf Unit = 1.

4 15 5779 5 16 0 (7) 16 5568899 11 17 03 9 17 579 6 18 012 3 18 569

  • Can you summarize the features of this dataset?

The median

  • The median, M , is the “exact midpoint” of the data.
    1. Sort the data in increasing order. 2a. If the number of data points, n, is odd, the median M is the center value of the sorted data. i.e., the n+1 2 th largest value. OR 2b. If n is even, the median M is the average of the two center values. i.e., the average of the n 2 th and n+1 2 th largest values.
  • For the sheep dataset the sorted weights are 155 157 157 159 160 165 165 166 168 168 169 169 170 173 175 177 179 180 181 182 185 186 189

The order statistics

  • Suppose we have n data values x 1 , x 2 ,... , xn.
  • Define the order statistics, x(1), x(2),... , x(n) as the data sorted from smallest to largest: x(1) = smallest value; x(2) = 2nd smallest value; ... x(n) = largest value.
  • Ex: What is x(1) and x(3) for the sheep weight data?

What do we use, the mean or the median?

symmetric distributions mean = median left skewed distributions mean < median right skewed distributions mean > median

  • Outliers (values that lie outside the main body of the data) can affect the mean too.
  • The median is more robust or resistant for measuring the center of a distribution. - If distribution is symmetric without outliers use the mean. - If distribution is skewed or contains outliers, use the me- dian instead.
  • Example: Applet

Mean vs. Median: Example

Adult American Weight

weight in pounds

Density

0 100 200 300 400 500

0.010 meanmedian

Source: NHANES 2005−

A five number summary

  • The five number summary is a simple description of the data. Minimum Q 1 M Q 3 Maximum
  • For sheep weights the five number summary is Minimum Q 1 M Q 3 Maximum
  • The box-plot illustrates this summary graphically.

Some example boxplots

^

egg found in nest of

Outliers example

The amount of aluminum contamination (ppm) in plastic of a certain type was determined for a sample of 23 plastic specimens. The data is sorted:

30 60 63 70 79 87 90 101 115 118 119 119 120 125 140 145 182 183 191 222 244 291 511

Construct a boxplot that shows outliers and comment on the features.

500 400 300 200 100 aluminium contamination (ppm) 0

Measures of Spread

  • The range of the observations is range = largest value − smallest value.
  • The interquartile range is IQR = Q 3 − Q 1 (the range of the middle 50% of the sorted data).
  • Variance
  • Standard Deviation

The standard deviation

  • The standard deviation, s, of a set of observations is the square root of the variance, i.e.,

s =

s^2 =

√∑n i=1(xi^ −^ x¯)^2 n − 1.

  • Has the same units as the observations.
  • s = 0 corresponds to no spread.
  • As s increases above 0, observations spread out further about the mean.
  • s (and s^2 ) are sensitive to outliers and skewness.

Calculating numerical summaries in MINITAB

To summarize our sheep dataset

  • Select Stat → Basic Statistics → Display Descrip- tive Statistics.
  • A dialog box now appears.
  • In variable you select the variable you want to summarize. Either - type the variable number (e.g. C1) into the box, OR - in the right hand panel click on C1 sheep and choose Select.
  • To produce the summaries click OK in the dialog. (You can also produce plots of the data by clicking on Graphs).

What summaries do we use?

  • The mean is a good measure of the center of symmetric distributions. - For skewed distributions or distributions with outliers, better to use the median.
  • The standard deviation is a good measure of the spread or variability of symmetric distributions. - For skewed distributions or distributions with outliers, better to use the range or IQR.

Changing units of measurement – transformations

  • When we collect data, what is the effect of changing the units of measurement? - Is the distribution affected? - Do the measures of center and spread change?
  • Example: Suppose we measure the weight of Americans. How are the summaries of the data altered by our choice of the units of measurement? e.g., Pounds vs. Kilograms?