Summarizing Data Numerically: Quartiles, IQR, and Boxplots
Quartiles and the Five-Number Summary
First Quartile (): The 25th percentile of the data values.
Third Quartile (): The 75th percentile of the data values.
Median (): The middle observation (50th percentile) that breaks the data into two equal halves.
Five-Number Summary: Consists of the smallest observation, , , , and the largest observation.
Calculation Example (Study Hours): For the data 2, 3, 4, 4, 5, 6, 7, 10, 17, 28:
Measures of Spread: Range vs. IQR
Interquartile Range (IQR): Calculated as . It measures the spread of the middle 50% of observations and is resistant to outliers.
Range: Calculated as . It is highly sensitive to outliers.
Statistical Comparison: In the study hours example, the range is (suggesting high spread/outliers) while the is only (suggesting the middle 50% has a small spread).
Outlier Detection and Fences
Fences: Used to identify outliers mathematically:
Outlier Definition: Any observation that lies outside the fences (either less than the left fence or greater than the right fence).
Example (Novels Read): For data 0, 0, 2, 2, 2, 3, 4, 5, 5, 6, 12 where :
The observation 12 is an outlier because 12 > 9.5.
Boxplot Interpretation
Structure: A boxplot consists of four parts: the left whisker, left part of the box, right part of the box, and right whisker. Each part represents approximately 25% of the observations.
Determining Skewness (Unimodal Distributions):
Skewed Left: The left whisker is significantly longer than the right whisker, and the left part of the box is at least as long as the right part.
Skewed Right: The right whisker is significantly longer than the left whisker, and the right part of the box is at least as long as the left part.
Outliers in Plots: Indicated by dots beyond the whiskers. Whiskers extend only to the farthest data points that are still within the fences.
Questions & Discussion
Question Regarding Range Comparison: A student notes that the youngest and oldest ages for both Major League Baseball (MLB) and National Football League (NFL) players are 19 and 45, respectively. Since the range for both is , the student concludes the spread of ages is the same. Is this accurate?
Response: No. Comparing only the extremes (range) provides an incomplete picture. Comparing medians (Baseball: , Football: ) and quartiles shows that baseball players tend to be older. Additionally, comparing the length of the individual components of the boxplots Reveals that baseball players' ages are more spread out overall than football players' ages, excluding outliers.