sst6e ppt ch03

Table of contents

  1. Numerically summarizing data
  2. Measures of central tendency
  3. Measures of dispersion
  4. Measures of central tendency and dispersion from grouped data
  5. Measures of position and outliers
  6. The five-number summary and boxplots

1. Numerically summarizing data

1.1 Shape, center, and spread

  • Shape: This characteristic describes the overall form of the data distribution. It can be symmetric, skewed to the left, or skewed to the right.
  • Center: This refers to the typical or average value of the data. It is often described using measures like the mean, median, or mode.
  • Spread: This characteristic quantifies the variability or dispersion of the data. It indicates how spread out the data points are from the center.
  • Outliers: These are unusual data values that lie far from the rest of the data. They can significantly influence some statistical measures.

1.2 Characteristics of a distribution

Distributions of data can be characterized by three key features:

  • Shape: This describes the pattern of the data, such as whether it is symmetric or skewed.
  • Center: This represents the typical or average value of the data.
  • Spread: This indicates the variability or dispersion of the data points.

Unusual data values, known as outliers, are also important to consider when analyzing a distribution.

2. Measures of central tendency

Measures of central tendency provide a numerical description of the average or typical data value. The three most common measures are the mean, median, and mode.

2.1 The arithmetic mean

The arithmetic mean is calculated by summing all the values in a data set and dividing by the number of observations.

  • Population mean (μ\mu): This is computed using all individuals in a population and is considered a parameter. μ=∑i=1NxiN\mu = \frac{\sum_{i=1}^{N} x_i}{N} where xix_i are the NN observations from the population.
  • Sample mean (xˉ\bar{x}): This is computed using data from a sample and is considered a statistic. xˉ=∑i=1nxin\bar{x} = \frac{\sum_{i=1}^{n} x_i}{n} where xix_i are the nn observations from the sample.

The mean can be thought of as the center of gravity of a data set, where a histogram of the data would balance.

2.2 Example: Computing a population and sample mean

The following data represent the first exam scores of 10 students: 82, 77, 90, 71, 62, 68, 74, 84, 94, 88.

  • Population mean: μ=82+77+90+71+62+68+74+84+94+8810=79010=79.0\mu = \frac{82+77+90+71+62+68+74+84+94+88}{10} = \frac{790}{10} = 79.0
  • Sample mean (for a sample of size n=4: 62, 88, 77, 68): xˉ=62+88+77+684=2954=73.75\bar{x} = \frac{62+88+77+68}{4} = \frac{295}{4} = 73.75

2.3 The median

The median is the middle value in a data set when the data are arranged in ascending order.

  • Finding the median:
  1. Arrange the data in ascending order.
  2. Determine the number of observations, nn.
  3. If nn is odd, the median is the data value in the middle position: (n+12)th(\frac{n+1}{2})^{th} observation.
  4. If nn is even, the median is the mean of the two middle observations: the (n2)th(\frac{n}{2})^{th} and (n2+1)th(\frac{n}{2}+1)^{th} observations.

2.4 Example: Determining the median

Consider the following data sets:

  • Odd number of observations: 179, 201, 206, 208, 217, 222, 240, 257, 284. The median is 217.
  • Even number of observations: 62, 68, 71, 74, 77, 82, 84, 88, 90, 94. The median is the mean of 77 and 82: M=77+822=79.5M = \frac{77+82}{2} = 79.5.

2.5 Resistance of statistics

A resistant statistic is a measure that is not significantly affected by extreme values (outliers) in the data set.

  • Mean: The mean is not resistant to outliers. A single very large or very small value can substantially change the mean.
  • Median: The median is resistant to outliers. It is only affected by the order of the data, not the magnitude of extreme values.

2.6 Example: Comparing mean and median

For a sample of 12 cell phone call lengths, the mean was 7.5 minutes and the median was 3.5 minutes. A dot plot revealed one call of 30 minutes, which was an outlier.

The median of 3.5 minutes better describes the typical call length because the mean is heavily influenced by the single long call.

Histograms and box plots illustrating three types of data distribution: skewed right, symmetric, and skewed left.

2.7 The mode

The mode is the most frequent observation in a data set.

  • A data set can have:
  • No mode: If no observation occurs more than once.
  • One mode: Unimodal distribution.
  • Two modes: Bimodal distribution.
  • More than two modes: Multimodal distribution (usually not reported as it's not representative).

2.8 Example: Finding the mode

  • O-ring failures: In a data set of O-ring failures, the mode was 0, as it occurred most frequently (17 times).
  • Exam scores: For the exam scores 82, 77, 90, 71, 62, 68, 74, 84, 94, 88, there is no mode because each score appears only once.
  • Qualitative data (injury location): If "back" injuries occurred 12 times, "leg" 8 times, and "arm" 5 times, the mode is "back".

3. Measures of dispersion

Measures of dispersion quantify the spread or variability of data. They describe how spread out the data points are from the center.

3.1 The range

The range is the difference between the largest and smallest data values in a set.

  • Formula: R=Largest data value−Smallest data valueR = \text{Largest data value} - \text{Smallest data value}

3.2 Example: Computing the range

For exam scores with a highest score of 94 and a lowest score of 62, the range is R=94−62=32R = 94 - 62 = 32.

3.3 Standard deviation

The standard deviation measures the typical deviation of data points from the mean.

  • Population standard deviation (σ\sigma): σ=∑i=1N(xi−μ)2N\sigma = \sqrt{\frac{\sum_{i=1}^{N} (x_i - \mu)^2}{N}} This is the conceptual formula. A computational formula is: σ=∑i=1Nxi2−Nμ2N\sigma = \sqrt{\frac{\sum_{i=1}^{N} x_i^2 - N\mu^2}{N}}
  • Sample standard deviation (ss): s=∑i=1n(xi−xˉ)2n−1s = \sqrt{\frac{\sum_{i=1}^{n} (x_i - \bar{x})^2}{n-1}} This is the conceptual formula. A computational formula is: s=∑i=1nxi2−nxˉ2n−1s = \sqrt{\frac{\sum_{i=1}^{n} x_i^2 - n\bar{x}^2}{n-1}} Note: Division by n−1n-1 (degrees of freedom) provides an unbiased estimate of the population variance.

3.4 Example: Computing a population standard deviation

For the exam scores (population): 82, 77, 90, 71, 62, 68, 74, 84, 94, 88. The population mean (μ\mu) is 79.0.

Observation (xix_i)Mean (μ\mu)Deviation (xi−μx_i - \mu)Squared Deviation ((xi−μ)2(x_i - \mu)^2)
827939
7779-24
907911121
7179-864
6279-17289
6879-11121
7479-525
8479525
947915225
8879981
Sum—**0964**

σ=96410=96.4≈9.8\sigma = \sqrt{\frac{964}{10}} = \sqrt{96.4} \approx 9.8

3.5 Example: Computing a sample standard deviation

For the sample scores: 62, 88, 77, 68. The sample mean (xˉ\bar{x}) is 73.75.

Observation (xix_i)Mean (xˉ\bar{x})Deviation (xi−xˉx_i - \bar{x})Squared Deviation ((xi−xˉ)2(x_i - \bar{x})^2)
6273.75-11.75138.0625
8873.7514.25203.0625
7773.753.2510.5625
6873.75-5.7533.0625
Sum—**0384.75**

s=384.754−1=384.753=128.25≈11.3s = \sqrt{\frac{384.75}{4-1}} = \sqrt{\frac{384.75}{3}} = \sqrt{128.25} \approx 11.3

3.6 Variance

The variance is the square of the standard deviation.

  • Population variance (σ2\sigma^2): σ2=∑i=1N(xi−μ)2N\sigma^2 = \frac{\sum_{i=1}^{N} (x_i - \mu)^2}{N}
  • Sample variance (s2s^2): s2=∑i=1n(xi−xˉ)2n−1s^2 = \frac{\sum_{i=1}^{n} (x_i - \bar{x})^2}{n-1}

3.7 Example: Determining variance

  • Population variance: If σ≈9.8\sigma \approx 9.8 points, then σ2≈(9.8)2=96.04\sigma^2 \approx (9.8)^2 = 96.04 points2^2.
  • Sample variance: If s≈11.3s \approx 11.3 points, then s2≈(11.3)2=127.7s^2 \approx (11.3)^2 = 127.7 points2^2.

3.8 The Empirical Rule

The Empirical Rule applies to distributions that are roughly bell-shaped.

  • Approximately 68% of the data lie within 1 standard deviation of the mean (μ±σ\mu \pm \sigma or xˉ±s\bar{x} \pm s).
  • Approximately 95% of the data lie within 2 standard deviations of the mean (μ±2σ\mu \pm 2\sigma or xˉ±2s\bar{x} \pm 2s).
  • Approximately 99.7% of the data lie within 3 standard deviations of the mean (μ±3σ\mu \pm 3\sigma or xˉ±3s\bar{x} \pm 3s).

A normal distribution curve illustrating the empirical rule, showing percentages of data within standard deviations from the mean.

3.9 Example: Using the Empirical Rule

For University A's IQ scores (mean = 100, standard deviation = 16.1):

  • Within 3 standard deviations: Approximately 99.7% of scores are between 100−3(16.1)=51.7100 - 3(16.1) = 51.7 and 100+3(16.1)=148.3100 + 3(16.1) = 148.3.
  • Between 67.8 and 132.2: Since 67.8 is 100−2(16.1)100 - 2(16.1) and 132.2 is 100+2(16.1)100 + 2(16.1), approximately 95% of scores lie within this range. The actual percentage is 96%.
  • Above 132.2: Approximately 2.5% of scores are above 132.2.

3.10 Chebyshev's Inequality

Chebyshev's Inequality applies to any data set, regardless of its shape.

  • At least 1−1k21 - \frac{1}{k^2} of the observations lie within kk standard deviations of the mean, where k>1k > 1.
  • This means at least 1−1k21 - \frac{1}{k^2} of the data lie between μ−kσ\mu - k\sigma and μ+kσ\mu + k\sigma (or xˉ−ks\bar{x} - ks and xˉ+ks\bar{x} + ks).

3.11 Example: Using Chebyshev's Inequality

For University A's IQ scores (mean = 100, standard deviation = 16.1):

  • Within 3 standard deviations (k=3k=3): At least 1−132=1−19=89≈88.9%1 - \frac{1}{3^2} = 1 - \frac{1}{9} = \frac{8}{9} \approx 88.9\% of scores lie between 100−3(16.1)=51.7100 - 3(16.1) = 51.7 and 100+3(16.1)=148.3100 + 3(16.1) = 148.3.
  • Between 67.8 and 132.2 (k=2k=2): At least 1−122=1−14=34=75%1 - \frac{1}{2^2} = 1 - \frac{1}{4} = \frac{3}{4} = 75\% of scores lie between 67.8 and 132.2. The actual percentage is 96%.

Chebyshev's Inequality provides a more conservative estimate than the Empirical Rule.

4. Measures of central tendency and dispersion from grouped data

When data are presented in frequency distributions (grouped data), we can approximate measures of central tendency and dispersion.

4.1 Approximating the mean from grouped data

The mean of a variable from grouped data can be approximated using class midpoints and frequencies.

  • Formula: xˉ≈∑i=1nxifi∑i=1nfi\bar{x} \approx \frac{\sum_{i=1}^{n} x_i f_i}{\sum_{i=1}^{n} f_i} where xix_i is the midpoint of the ithi^{th} class and fif_i is the frequency of the ithi^{th} class.

4.2 Example: Approximating the mean from a frequency distribution

For parking and camera violations with class midpoints and frequencies:

Class Midpoint (xix_i)Frequency (fif_i)xifix_i f_i
62.5162.5
87.53262.5
112.57787.5
137.5101375.0
162.5121950.0
187.591687.5
212.551062.5
237.53712.5
Sum507900.0

xˉ≈7900.050=158.0\bar{x} \approx \frac{7900.0}{50} = 158.0 The approximate mean fine is USD 158.00.

4.3 The weighted mean

The weighted mean is used when observations have different levels of importance or frequency, represented by weights.

  • Formula: xˉw=∑i=1nwixi∑i=1nwi\bar{x}_w = \frac{\sum_{i=1}^{n} w_i x_i}{\sum_{i=1}^{n} w_i} where wiw_i is the weight of the ithi^{th} observation xix_i.

4.4 Example: Computing the weighted mean (Grade-Point Average)

Marissa's grades and credit hours:

  • Statistics: A (4 hours)
  • Sociology: B (3 hours)
  • Psychology: A (3 hours)
  • Computer Programming: C (5 hours)
  • Drama: A (1 hour)

Assuming A=4, B=3, C=2:

CourseGrade (xix_i)Credit Hours (wiw_i)wixiw_i x_i
Statistics4416
Sociology339
Psychology4312
Computer Programming2510
Drama414
Sum—1651

xˉw=5116=3.1875\bar{x}_w = \frac{51}{16} = 3.1875 Marissa's grade-point average is 3.19.

4.5 Approximating the standard deviation from grouped data

The standard deviation of a variable from grouped data can be approximated using class midpoints, frequencies, and the mean.

  • Population standard deviation (σ\sigma): σ≈∑i=1n(xi−μ)2fiN\sigma \approx \sqrt{\frac{\sum_{i=1}^{n} (x_i - \mu)^2 f_i}{N}} An equivalent computational formula is: σ≈∑i=1nxi2fi−Nμ2N\sigma \approx \sqrt{\frac{\sum_{i=1}^{n} x_i^2 f_i - N\mu^2}{N}}
  • Sample standard deviation (ss): s≈∑i=1n(xi−xˉ)2fin−1s \approx \sqrt{\frac{\sum_{i=1}^{n} (x_i - \bar{x})^2 f_i}{n-1}} An equivalent computational formula is: s≈∑i=1nxi2fi−nxˉ2n−1s \approx \sqrt{\frac{\sum_{i=1}^{n} x_i^2 f_i - n\bar{x}^2}{n-1}} where xix_i is the midpoint of the ithi^{th} class, fif_i is the frequency of the ithi^{th} class, nn is the number of classes, NN is the total number of observations, μ\mu is the population mean, and xˉ\bar{x} is the sample mean.

4.6 Example: Approximating the standard deviation from a frequency distribution

For the parking and camera violations data:

Class Midpoint (xix_i)Frequency (fif_i)xˉ\bar{x}xi−xˉx_i - \bar{x}(xi−xˉ)2(x_i - \bar{x})^2(xi−xˉ)2fi(x_i - \bar{x})^2 f_ixi2fix_i^2 f_i
62.51158.0-95.59120.259120.253906.25
87.53158.0-70.54970.2514910.7523437.50
112.57158.0-45.52070.2514491.7588593.75
137.510158.0-20.5420.254202.50189062.50
162.512158.04.520.25243.00318906.25
187.59158.029.5870.257832.25316406.25
212.55158.054.52970.2514851.25225781.25
237.53158.079.56320.2518960.75168593.75
Sum50———84412.501346687.50

Using the sample standard deviation formula: s≈84412.5050−1=84412.5049≈1722.70≈41.51s \approx \sqrt{\frac{84412.50}{50-1}} = \sqrt{\frac{84412.50}{49}} \approx \sqrt{1722.70} \approx 41.51 The approximate sample standard deviation of the fine is USD 41.51.

5. Measures of position and outliers

5.1 Z-scores

The z-score quantifies how many standard deviations a data value is from the mean. It is calculated by subtracting the mean from the data value and then dividing by the standard deviation.

This score is unitless and has a mean of 0 and a standard deviation of 1.

  • Sample z-score: z=x−xˉsz = \frac{x - \bar{x}}{s}
  • Population z-score: z=x−μσz = \frac{x - \mu}{\sigma}

📝 Example The Boston Red Sox scored 876 runs with a league mean of 790.5 runs and a standard deviation of 105.2 runs. The Los Angeles Dodgers scored 804 runs with a league mean of 750.2 runs and a standard deviation of 98.7 runs.

  • Red Sox z-score: z=876−790.5105.2≈0.81z = \frac{876 - 790.5}{105.2} \approx 0.81
  • Dodgers z-score: z=804−750.298.7≈0.55z = \frac{804 - 750.2}{98.7} \approx 0.55

The Red Sox had a relatively better run-producing season, as their z-score of 0.81 is higher than the Dodgers' z-score of 0.55.

5.2 Percentiles

The kth percentile, denoted PkP_k, is a value where k percent of the observations in a dataset are less than or equal to that value.

📝 Example Jennifer's SAT Mathematics score of 600 is in the 74th percentile. This means that 74% of SAT Mathematics scores are 600 or lower, and 26% of scores are higher.

5.3 Quartiles

Quartiles divide a dataset into four equal parts.

  • First Quartile (Q1Q_1): The 25th percentile, separating the bottom 25% of data from the top 75%.
  • Second Quartile (Q2Q_2): The 50th percentile, equivalent to the median, separating the bottom 50% from the top 50%.
  • Third Quartile (Q3Q_3): The 75th percentile, separating the bottom 75% of data from the top 25%.

To find quartiles:

  1. Arrange the data in ascending order.
  2. Determine the median (MM or Q2Q_2).
  3. Divide the data into two halves: observations below the median and observations above the median.
  4. Q1Q_1 is the median of the bottom half.
  5. Q3Q_3 is the median of the top half.

📝 Example For collision coverage claims data with 18 observations, the data in ascending order are: EUR 180, EUR 189, EUR 370, EUR 618, EUR 735, EUR 802, EUR 1185, EUR 1414, EUR 1657, EUR 1953, EUR 2332, EUR 2336, EUR 3461, EUR 4668, EUR 6751, EUR 9908, EUR 10,034, EUR 21,147.

  • The median (Q2Q_2) is the average of the 9th and 10th observations: (\1657 + $1953) / 2 = $1805 USD.
  • Q1Q_1 is the median of the first 9 observations: EUR 735.
  • Q3Q_3 is the median of the last 9 observations: EUR 4668.

Interpretation: 25% of collision claims are ≤\le EUR 735, 50% are ≤\le EUR 1805, and 75% are ≤\le EUR 4668.

5.4 Interquartile Range (IQR)

The interquartile range (IQR) represents the spread of the middle 50% of the data. It is calculated as the difference between the third and first quartiles.

  • Formula: IQR=Q3−Q1IQR = Q_3 - Q_1

📝 Example For the collision claim data, Q1=€735Q_1 = €735 and Q3=€4668Q_3 = €4668.

  • IQR=€4668−€735=€3933IQR = €4668 - €735 = €3933.

Interpretation: The middle 50% of collision claims range over EUR 3933. The IQR is a resistant measure of dispersion, meaning it is less affected by extreme values compared to the range or standard deviation, making it suitable for skewed data.

5.5 Checking for outliers

Outliers are extreme observations in a dataset that can arise from chance, measurement errors, data entry mistakes, or sampling errors.

To check for outliers using quartiles:

  1. Determine Q1Q_1 and Q3Q_3.
  2. Compute the IQR (Q3−Q1Q_3 - Q_1).
  3. Calculate the fences:
  • Lower Fence (LF) = Q1−1.5(IQR)Q_1 - 1.5(IQR)
  • Upper Fence (UF) = Q3+1.5(IQR)Q_3 + 1.5(IQR)
  1. Any data value less than the lower fence or greater than the upper fence is considered an outlier.

📝 Example Using the collision coverage claims data where Q1=€735Q_1 = €735 and Q3=€4668Q_3 = €4668, and IQR=€3933IQR = €3933:

  • Lower Fence: LF=€735−1.5(€3933)=−€5164.5LF = €735 - 1.5(€3933) = -€5164.5
  • Upper Fence: UF=€4668+1.5(€3933)=€10,567.5UF = €4668 + 1.5(€3933) = €10,567.5

The claim of EUR 21,147 is an outlier because it is greater than the upper fence of EUR 10,567.5. There are no observations below the lower fence.

6. The five-number summary and boxplots

6.1 The five-number summary

The five-number summary provides a concise overview of a dataset's distribution. It includes:

  • Minimum: The smallest data value.
  • Q1Q_1: The first quartile (25th percentile).
  • Median (MM or Q2Q_2): The second quartile (50th percentile).
  • Q3Q_3: The third quartile (75th percentile).
  • Maximum: The largest data value.

This summary is a key component of exploratory data analysis, helping to understand the data's center, spread, and potential skewness.

ComponentDescription
MinimumSmallest value in the data set
Q1Q_125th percentile
Median (MM)50th percentile
Q3Q_375th percentile
MaximumLargest value in the data set

📝 Example For a dataset of 5-kilometer race finishing times (in minutes) for men aged 60-64: 19.95, 23.25, 23.32, 25.55, 25.83, 26.28, 28.58, 28.72, 30.18, 30.35, 30.95, 32.13, 33.23, 33.53, 36.68, 37.05, 37.43, 41.42, 42.47, 49.17, 54.63.

  • Minimum: 19.95
  • Q1Q_1: 26.06
  • Median (MM): 30.95
  • Q3Q_3: 37.24
  • Maximum: 54.63

The five-number summary is 19.95, 26.06, 30.95, 37.24, 54.63.

6.2 Drawing and interpreting boxplots

A boxplot (or box-and-whisker plot) is a graphical representation of the five-number summary. It visually displays the distribution, center, spread, and skewness of a dataset, and highlights potential outliers.

Steps to draw a boxplot:

  1. Determine fences: Calculate the lower fence (Q1−1.5×IQRQ_1 - 1.5 \times IQR) and upper fence (Q3+1.5×IQRQ_3 + 1.5 \times IQR).
  2. Draw a number line: Ensure it accommodates the minimum and maximum values.
  3. Construct the box: Draw vertical lines at Q1Q_1, MM, and Q3Q_3. Enclose these lines within a box.
  4. Draw whiskers: Extend a line from Q1Q_1 to the smallest data value greater than the lower fence. Extend a line from Q3Q_3 to the largest data value smaller than the upper fence.
  5. Mark outliers: Data values below the lower fence or above the upper fence are marked with an asterisk (*).

Interpreting a boxplot:

  • Symmetry: If the median is centered within the box and the whiskers are of similar length, the distribution is likely symmetric.
  • Skewness:
  • A longer right whisker and the median to the left of the box indicate right skewness.
  • A longer left whisker and the median to the right of the box indicate left skewness.
  • Spread: The length of the box (IQR) indicates the spread of the middle 50% of the data. The lengths of the whiskers indicate the spread of the remaining data within the fences.
  • Outliers: Points marked with asterisks are potential outliers.

📝 Example Constructing a boxplot for the 5-kilometer race finishing times:

  • Q1=26.06Q_1 = 26.06, M=30.95M = 30.95, Q3=37.24Q_3 = 37.24.
  • IQR=37.24−26.06=11.18IQR = 37.24 - 26.06 = 11.18.
  • Lower Fence = 26.06−1.5(11.18)=9.2926.06 - 1.5(11.18) = 9.29.
  • Upper Fence = 37.24+1.5(11.18)=54.0137.24 + 1.5(11.18) = 54.01.

The smallest value greater than 9.29 is 19.95. The largest value smaller than 54.01 is 49.17.

The value 54.63 is an outlier as it exceeds the upper fence. The boxplot shows a right-skewed distribution because the right whisker is longer and the median is left of center in the box.

6.3 Comparing distributions using boxplots

Side-by-side boxplots are effective for comparing the distributions of two or more datasets. They allow for visual comparison of centers (medians), spreads (IQRs, whisker lengths), shapes (skewness), and the presence of outliers across different groups.

📝 Example Comparing red blood cell mass in space-flown rats versus a control group:

Side-by-side boxplots reveal that the median red blood cell mass for the flight group (approximately 7.7 ml) is lower than for the control group (approximately 8.6 ml). This suggests space flight may have reduced red blood cell mass.

The spread, measured by the IQR, appears similar for both groups.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also