7.1 Data Analysis: Data Representations, Charts, Histograms, and Plots
Key Takeaways
- Data classification distinguishes between qualitative (categorical) and quantitative data, which is either discrete (counted, e.g., 5 students) or continuous (measured, e.g., 2.3 cm).
- A circle graph requires calculating sector angles using the formula: (Relative Frequency) × 360°, where the sum of all angles is exactly 360°.
- Histograms display continuous or grouped discrete data using adjacent bars, where the area of each bar is proportional to the frequency (Area = Width × Frequency Density).
- Box plots summarize data using the five-number summary (Min, Q1, Median, Q3, Max) and identifying outliers with the formula: Outlier < Q1 - 1.5×IQR or Outlier > Q3 + 1.5×IQR.
1. Categorical vs. Quantitative Data Representations
Data analysis begins with understanding the nature of the data you have collected. In statistics, data is broadly classified into two main types: categorical data (also known as qualitative data) and quantitative data (numerical data). Categorical data represents characteristics or categories, such as hair color, favorite subject, or blood type. Quantitative data, on the other hand, deals with numbers and things that can be measured objectively. Quantitative data can be further subdivided into discrete data (which can only take on certain distinct values, typically counted, like the number of students in a class) and continuous data (which can take on any value within a range, typically measured, like height, weight, or time).
When we have collected data, the next step is to display it in a way that makes it easy to understand, analyze, and interpret. The choice of graphical representation is crucial and depends heavily on whether the data is categorical or quantitative, as well as the specific story or pattern the data tells.
Comparison of Graphical Representations
| Graph Type | Data Type | Key Purpose / Feature | Formula or Calculation |
|---|---|---|---|
| Bar Graph | Categorical | Compares frequencies across distinct categories (bars do not touch). | Relative Frequency $= \frac{\text{Count}}{\text{Total}}$ |
| Histogram | Quantitative (Continuous) | Shows frequency distribution across contiguous equal bins (bars touch). | Area $= \text{Bin Width} \times \text{Frequency Density}$ |
| Box Plot | Quantitative | Visualizes five-number summary (Min, Q1, Median, Q3, Max) and outliers. | $\text{Outlier} < Q1 - 1.5 \times \text{IQR}$ or $> Q3 + 1.5 \times \text{IQR}$ |
| Scatter Plot | Bivariate Quantitative | Examines linear/non-linear association and trend lines ($y = mx + b$). | Correlation coefficient $r \in [-1, 1]$ |
| Circle Graph | Categorical | Displays proportional breakdown of a whole into sector angles. | $\text{Sector Angle} = \text{Relative Frequency} \times 360^\circ$ |
For categorical data, common representations include tally charts, frequency tables, bar graphs, and circle graphs (pie charts). A tally chart is often the first step in organizing raw data, using marks to record frequencies. This is then formalized into a frequency table. A bar graph uses rectangular bars to represent the frequency or relative frequency of each category. The bars have spaces between them to indicate that the categories are distinct. A double bar graph is useful when comparing two sets of categorical data side-by-side. A circle graph is ideal for showing how a whole is divided into proportional parts. To create a circle graph, you must calculate the sector angle for each category by finding its relative frequency (percentage of the total) and multiplying it by 360 degrees.
For quantitative data, the options are more varied. Dot plots (or line plots) are simple ways to show the frequency of discrete numerical data along a number line. They are excellent for small data sets and clearly show clusters, gaps, and outliers. Stem-and-leaf plots organize numerical data by place value, retaining the original data values while also providing a visual shape of the distribution similar to a histogram. A back-to-back stem-and-leaf plot allows for the direct comparison of two quantitative data sets.
When dealing with continuous data or large sets of discrete data, histograms are preferred. A histogram looks similar to a bar graph, but the bars are adjacent (touching) because the data is continuous. The data is grouped into intervals or "bins" of equal width. The height of the bar represents the frequency (or frequency density) of data values falling within that bin. The choice of bin width is important: too wide, and you lose detail; too narrow, and the overall shape becomes jagged and hard to interpret.
Box plots (or box-and-whisker plots) provide a visual summary of a data set based on its five-number summary: the minimum value, the first quartile (Q1), the median (Q2), the third quartile (Q3), and the maximum value. The "box" represents the middle 50% of the data (from Q1 to Q3), and the "whiskers" extend to the minimum and maximum values. Box plots are particularly useful for comparing multiple distributions and for identifying outliers. An outlier is generally defined using the 1.5*IQR rule: any value that falls more than 1.5 times the Interquartile Range (IQR = Q3 - Q1) below Q1 or above Q3 is considered an outlier. On a modified box plot, outliers are plotted as individual points, and the whiskers extend only to the highest and lowest values that are not outliers.
When we want to examine the relationship between two quantitative variables, we use a scatter plot. Each point on the scatter plot represents an (x, y) pair. Scatter plots help us identify the type of association or correlation between the variables: positive (as x increases, y increases), negative (as x increases, y decreases), or no association. We can also determine if the relationship appears linear or non-linear. If a linear association exists, we can draw a line of best fit (or trend line) that closely follows the pattern of the data, which can then be used to make predictions.
Teaching Scenario: Choosing the Appropriate Graph Type Imagine a scenario where students have collected data on the heights of all 8th graders in their school. A student might suggest using a bar graph, but this would be incorrect as height is continuous numerical data, not categorical. The appropriate choice would be a histogram to show the distribution of heights across different intervals, or a box plot to show the median, quartiles, and potential outliers. If the students wanted to compare the heights of 8th-grade boys versus 8th-grade girls, a back-to-back stem-and-leaf plot or parallel box plots would be excellent choices. Conversely, if they were showing the percentage of students who chose different electives, a circle graph or a bar graph would be most appropriate. Understanding these distinctions is critical for accurately communicating statistical information.
2. Advanced Analysis of Graphical Representations and Misconceptions
When constructing representations, the precision of scaling and labeling is paramount. A poorly scaled axis can dramatically misrepresent the data, creating visual biases that mislead the observer. For example, in a bar graph, if the y-axis does not start at zero, the differences in bar heights will appear exaggerated. This is a common tactic in misleading advertising and is a critical point of analysis for middle school students learning data literacy. Teachers must emphasize the importance of consistent intervals and comprehensive titles.
Let us look deeper into histograms. Unlike bar graphs, the horizontal axis of a histogram must represent a continuous scale, such as a number line. If we are measuring the time it takes students to complete a math test, we might use intervals of 5 minutes: [0, 5), [5, 10), [10, 15), and so on. Notice the use of bracket and parenthesis notation; this ensures that a data point exactly on the boundary, such as 5 minutes, is placed in only one specific bin (typically the higher one). The area of each bar is proportional to the frequency of data in that bin. In histograms with unequal bin widths (a more advanced topic), the height of the bar represents the frequency density, not just the frequency, ensuring the area remains proportional.
Moving on to scatter plots, we often deal with bivariate quantitative data. We are looking for the correlation coefficient, denoted as 'r', which measures the strength and direction of a linear relationship between two variables. The value of 'r' always falls between -1 and 1. A value of exactly 1 or -1 indicates a perfect linear relationship, meaning all points lie precisely on the line of best fit. A value of 0 indicates absolutely no linear relationship. When introducing this to middle schoolers, we typically focus on qualitative descriptions: "strong positive," "weak negative," or "no correlation." We must also emphasize the critical rule: correlation does not imply causation. Just because two variables move together does not mean one causes the other; a lurking variable might be influencing both.
In the context of box plots, comparing two populations becomes highly visual and mathematically sound. Suppose we have two box plots representing the test scores of Class A and Class B. We can immediately compare their medians (the lines inside the boxes). If Class A's median is higher than Class B's third quartile, we have strong visual evidence that Class A generally performed better. Furthermore, comparing the interquartile ranges (the lengths of the boxes) gives us a direct comparison of the variability within the middle 50% of each class. A longer box indicates greater variability.
Teaching Misconception Scenarios A frequent misconception arises when students confuse categorical and quantitative data when numbers are used as labels. For example, asking students for their zip code yields numbers, but these numbers are categorical; it makes no sense to calculate an "average zip code." Teachers must provide clear examples that challenge students to think about the meaning of the data, not just its format. Another common error is using a line graph for categorical data. Line graphs imply a continuous progression or connection between the data points, which is entirely inappropriate for distinct categories like favorite ice cream flavors. These misconceptions highlight the need for robust foundational instruction in data types before moving to graphical representations.
Which of the following graphical representations is most appropriate for displaying the distribution of continuous numerical data grouped into equal intervals?
A data set has a first quartile (Q1) of 45 and a third quartile (Q3) of 65. According to the 1.5*IQR rule, which of the following values would be considered an outlier?
In a circle graph representing the favorite sports of 200 students, the sector for 'Soccer' represents 60 students. What is the central angle for the 'Soccer' sector?
Which type of plot is best suited to determine if there is a linear relationship between a student's hours studied and their test score?