sst6e ppt ch03
Table of contents
- Numerically summarizing data
- Measures of central tendency
- Measures of dispersion
- Measures of central tendency and dispersion from grouped data
- Measures of position and outliers
- 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 (μ): This is computed using all individuals in a population and is considered a parameter. μ=N∑i=1Nxi where xi are the N observations from the population.
- Sample mean (xˉ): This is computed using data from a sample and is considered a statistic. xˉ=n∑i=1nxi where xi are the n 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: μ=1082+77+90+71+62+68+74+84+94+88=10790=79.0
- Sample mean (for a sample of size n=4: 62, 88, 77, 68): xˉ=462+88+77+68=4295=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:
- Arrange the data in ascending order.
- Determine the number of observations, n.
- If n is odd, the median is the data value in the middle position: (2n+1)th observation.
- If n is even, the median is the mean of the two middle observations: the (2n)th and (2n+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=277+82=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.

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 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=32.
3.3 Standard deviation
The standard deviation measures the typical deviation of data points from the mean.
- Population standard deviation (σ): σ=N∑i=1N(xi−μ)2 This is the conceptual formula. A computational formula is: σ=N∑i=1Nxi2−Nμ2
- Sample standard deviation (s): s=n−1∑i=1n(xi−xˉ)2 This is the conceptual formula. A computational formula is: s=n−1∑i=1nxi2−nxˉ2 Note: Division by n−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 (μ) is 79.0.
| Observation (xi) | Mean (μ) | Deviation (xi−μ) | Squared Deviation ((xi−μ)2) |
|---|---|---|---|
| 82 | 79 | 3 | 9 |
| 77 | 79 | -2 | 4 |
| 90 | 79 | 11 | 121 |
| 71 | 79 | -8 | 64 |
| 62 | 79 | -17 | 289 |
| 68 | 79 | -11 | 121 |
| 74 | 79 | -5 | 25 |
| 84 | 79 | 5 | 25 |
| 94 | 79 | 15 | 225 |
| 88 | 79 | 9 | 81 |
| Sum | — | **0 | 964** |
σ=10964=96.4≈9.8
3.5 Example: Computing a sample standard deviation
For the sample scores: 62, 88, 77, 68. The sample mean (xˉ) is 73.75.
| Observation (xi) | Mean (xˉ) | Deviation (xi−xˉ) | Squared Deviation ((xi−xˉ)2) |
|---|---|---|---|
| 62 | 73.75 | -11.75 | 138.0625 |
| 88 | 73.75 | 14.25 | 203.0625 |
| 77 | 73.75 | 3.25 | 10.5625 |
| 68 | 73.75 | -5.75 | 33.0625 |
| Sum | — | **0 | 384.75** |
s=4−1384.75=3384.75=128.25≈11.3
3.6 Variance
The variance is the square of the standard deviation.
- Population variance (σ2): σ2=N∑i=1N(xi−μ)2
- Sample variance (s2): s2=n−1∑i=1n(xi−xˉ)2
3.7 Example: Determining variance
- Population variance: If σ≈9.8 points, then σ2≈(9.8)2=96.04 points2.
- Sample variance: If s≈11.3 points, then s2≈(11.3)2=127.7 points2.
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 (μ±σ or xˉ±s).
- Approximately 95% of the data lie within 2 standard deviations of the mean (μ±2σ or xˉ±2s).
- Approximately 99.7% of the data lie within 3 standard deviations of the mean (μ±3σ or xˉ±3s).

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.7 and 100+3(16.1)=148.3.
- Between 67.8 and 132.2: Since 67.8 is 100−2(16.1) and 132.2 is 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−k21 of the observations lie within k standard deviations of the mean, where k>1.
- This means at least 1−k21 of the data lie between μ−kσ and μ+kσ (or xˉ−ks and 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=3): At least 1−321=1−91=98≈88.9% of scores lie between 100−3(16.1)=51.7 and 100+3(16.1)=148.3.
- Between 67.8 and 132.2 (k=2): At least 1−221=1−41=43=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=1nfi∑i=1nxifi where xi is the midpoint of the ith class and fi is the frequency of the ith class.
4.2 Example: Approximating the mean from a frequency distribution
For parking and camera violations with class midpoints and frequencies:
| Class Midpoint (xi) | Frequency (fi) | xifi |
|---|---|---|
| 62.5 | 1 | 62.5 |
| 87.5 | 3 | 262.5 |
| 112.5 | 7 | 787.5 |
| 137.5 | 10 | 1375.0 |
| 162.5 | 12 | 1950.0 |
| 187.5 | 9 | 1687.5 |
| 212.5 | 5 | 1062.5 |
| 237.5 | 3 | 712.5 |
| Sum | 50 | 7900.0 |
xˉ≈507900.0=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=1nwi∑i=1nwixi where wi is the weight of the ith observation xi.
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:
| Course | Grade (xi) | Credit Hours (wi) | wixi |
|---|---|---|---|
| Statistics | 4 | 4 | 16 |
| Sociology | 3 | 3 | 9 |
| Psychology | 4 | 3 | 12 |
| Computer Programming | 2 | 5 | 10 |
| Drama | 4 | 1 | 4 |
| Sum | — | 16 | 51 |
xˉw=1651=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 (σ): σ≈N∑i=1n(xi−μ)2fi An equivalent computational formula is: σ≈N∑i=1nxi2fi−Nμ2
- Sample standard deviation (s): s≈n−1∑i=1n(xi−xˉ)2fi An equivalent computational formula is: s≈n−1∑i=1nxi2fi−nxˉ2 where xi is the midpoint of the ith class, fi is the frequency of the ith class, n is the number of classes, N is the total number of observations, μ is the population mean, and 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 (xi) | Frequency (fi) | xˉ | xi−xˉ | (xi−xˉ)2 | (xi−xˉ)2fi | xi2fi |
|---|---|---|---|---|---|---|
| 62.5 | 1 | 158.0 | -95.5 | 9120.25 | 9120.25 | 3906.25 |
| 87.5 | 3 | 158.0 | -70.5 | 4970.25 | 14910.75 | 23437.50 |
| 112.5 | 7 | 158.0 | -45.5 | 2070.25 | 14491.75 | 88593.75 |
| 137.5 | 10 | 158.0 | -20.5 | 420.25 | 4202.50 | 189062.50 |
| 162.5 | 12 | 158.0 | 4.5 | 20.25 | 243.00 | 318906.25 |
| 187.5 | 9 | 158.0 | 29.5 | 870.25 | 7832.25 | 316406.25 |
| 212.5 | 5 | 158.0 | 54.5 | 2970.25 | 14851.25 | 225781.25 |
| 237.5 | 3 | 158.0 | 79.5 | 6320.25 | 18960.75 | 168593.75 |
| Sum | 50 | — | — | — | 84412.50 | 1346687.50 |
Using the sample standard deviation formula: s≈50−184412.50=4984412.50≈1722.70≈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=sx−xˉ
- Population z-score: z=σx−μ
📝 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=105.2876−790.5≈0.81
- Dodgers z-score: z=98.7804−750.2≈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 Pk, 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 (Q1): The 25th percentile, separating the bottom 25% of data from the top 75%.
- Second Quartile (Q2): The 50th percentile, equivalent to the median, separating the bottom 50% from the top 50%.
- Third Quartile (Q3): The 75th percentile, separating the bottom 75% of data from the top 25%.
To find quartiles:
- Arrange the data in ascending order.
- Determine the median (M or Q2).
- Divide the data into two halves: observations below the median and observations above the median.
- Q1 is the median of the bottom half.
- Q3 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 (Q2) is the average of the 9th and 10th observations: (\1657 + $1953) / 2 = $1805 USD.
- Q1 is the median of the first 9 observations: EUR 735.
- Q3 is the median of the last 9 observations: EUR 4668.
Interpretation: 25% of collision claims are ≤ EUR 735, 50% are ≤ EUR 1805, and 75% are ≤ 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−Q1
📝 Example For the collision claim data, Q1=€735 and Q3=€4668.
- IQR=€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:
- Determine Q1 and Q3.
- Compute the IQR (Q3−Q1).
- Calculate the fences:
- Lower Fence (LF) = Q1−1.5(IQR)
- Upper Fence (UF) = Q3+1.5(IQR)
- 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=€735 and Q3=€4668, and IQR=€3933:
- Lower Fence: LF=€735−1.5(€3933)=−€5164.5
- Upper Fence: UF=€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.
- Q1: The first quartile (25th percentile).
- Median (M or Q2): The second quartile (50th percentile).
- Q3: 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.
| Component | Description |
|---|---|
| Minimum | Smallest value in the data set |
| Q1 | 25th percentile |
| Median (M) | 50th percentile |
| Q3 | 75th percentile |
| Maximum | Largest 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
- Q1: 26.06
- Median (M): 30.95
- Q3: 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:
- Determine fences: Calculate the lower fence (Q1−1.5×IQR) and upper fence (Q3+1.5×IQR).
- Draw a number line: Ensure it accommodates the minimum and maximum values.
- Construct the box: Draw vertical lines at Q1, M, and Q3. Enclose these lines within a box.
- Draw whiskers: Extend a line from Q1 to the smallest data value greater than the lower fence. Extend a line from Q3 to the largest data value smaller than the upper fence.
- 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.06, M=30.95, Q3=37.24.
- IQR=37.24−26.06=11.18.
- Lower Fence = 26.06−1.5(11.18)=9.29.
- Upper Fence = 37.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.