Histograms: construction and interpretation
Understanding Histograms: Construction and Interpretation
Histograms are graphical displays used to represent the distribution of a quantitative variable. Unlike bar charts which display categorical data, histograms group numerical data into bins (intervals) and show the frequency or relative frequency of observations falling into each bin. They are a fundamental tool in exploratory data analysis (EDA) for understanding the shape, center, and spread of a dataset.
Constructing a Histogram
The construction of a histogram involves several key steps:
- Determine the Range: Find the minimum and maximum values of the dataset to understand the spread of the data.
- Choose Bin Width: This is a crucial step. The bin width (or class interval) determines the number of bins. Too few bins can obscure important features of the distribution, while too many can make the histogram look jagged and hide the overall pattern. There's no single 'correct' number, but common guidelines exist (e.g., Sturges' formula, although often subjective judgment is preferred). All bins must have the same width.
- Create Bins: Define the boundaries for each bin. For example, if the data ranges from 0 to 100 and you choose a bin width of 10, your bins might be [0, 10), [10, 20), ..., [90, 100]. Ensure bins are mutually exclusive and collectively exhaustive.
- Tally Frequencies: Count how many data points fall into each bin. These are the frequencies. For relative frequency histograms, divide each frequency by the total number of observations to get the relative frequency (proportions or percentages).
- Draw the Bars: Plot the bins on the horizontal (x) axis and the frequencies (or relative frequencies) on the vertical (y) axis. The bars should touch each other to emphasize the continuous nature of the data, unlike bar charts for categorical data. The height of each bar represents the frequency or relative frequency of data within that bin.
Interpreting a Histogram (CUSS and BS)
When interpreting a histogram, we look for key features to describe the distribution of the quantitative variable. A common mnemonic for this is CUSS (or CUSS and BS, including outliers):
- Center: Describe the approximate middle of the distribution. This could be the median (the point where roughly half the data lies on either side) or the mean (the balancing point).
- Unusual Features: Look for any gaps in the data or potential outliers. Outliers are data points that fall far outside the overall pattern of the distribution. Gaps indicate ranges where no data values occur.
- Shape: Describe the overall form of the distribution.
- Symmetric: The left and right sides of the histogram are approximate mirror images. Examples include bell-shaped (normal) distributions.
- Skewed: The distribution is not symmetric. If the 'tail' (the longer side) extends to the right, it's skewed right (positively skewed). If the tail extends to the left, it's skewed left (negatively skewed).
- Modality: Describes the number of peaks (modes). A distribution with one peak is unimodal. Two peaks make it bimodal. More than two peaks make it multimodal. A relatively flat distribution with no clear peaks is uniform.
- Spread: Describe the variability of the data. This indicates how spread out the data points are. Examples include range (max - min) or noting if data is tightly clustered or widely dispersed.
For example, a histogram of test scores might be skewed left, indicating most students scored high, with a few low outliers. A histogram of heights might be symmetric and unimodal. A histogram of commute times in a city might be bimodal, reflecting different commuting patterns (e.g., short local commutes vs. longer commutes from suburbs).
Practice questions
What is the primary difference between a histogram and a bar chart?
A histogram shows a long tail extending to the right. How would you describe the shape of this distribution?
When constructing a histogram, what effect does choosing a very wide bin width typically have on the appearance of the distribution?
What does it mean for a distribution displayed in a histogram to be 'bimodal'?
Related topics
Free AP4U account — unlimited practice, AI grader, and progress tracking.
Canonical: https://apforu.com/ap/statistics/unit-1-exploring-one-variable-data/histograms-construction-and-interpretation