The Importance of Visualization
Slides can be accessed with the following link:
https://mluu921.github.io/cshs-fall-lecture-descriptive-statistics
Also available as a PDF on Onedrive
Summarize - reduce many observations into a few numbers or pictures a person can actually hold in their head
Detect anomalies - outliers, data entry errors, and missingness patterns
Check assumptions - most inferential methods (e.g. t-tests, linear regression) assume something about the shape of the data
Communicate - Table 1 of nearly every clinical paper is descriptive statistics
| dataset | n | mean_x | sd_x | mean_y | sd_y |
|---|---|---|---|---|---|
| A | 142 | 54.3 | 16.8 | 47.8 | 26.9 |
| B | 142 | 54.3 | 16.8 | 47.8 | 26.9 |
| C | 142 | 54.3 | 16.8 | 47.8 | 26.9 |
| D | 142 | 54.3 | 16.8 | 47.8 | 26.9 |
It appears the counts (n), mean (x), mean (y), and sd (x) and sd (y) are identical for ALL four datasets!
The original “Datasaurus” or “dino” was created by Alberto Cairo in the following blog post1
He was then later popularized by the paper published by Justin Matejka and George Fitzmaurice, titled ‘Same Stats, Different Graphs: Generating Datasets with Varied Appearance and Identical Statistics through Simulated Annealing’2, where they simulated 12 additional datasets in addition to the original “Datasaurus” with nearly identical simple statistics
The datasaurus dozen is a modern take on the classical “Anscombe’s Quartet”1
Comprised of four datasets that have nearly identical simple summary measures, yet have very different distributions and appear vastly different when plotted
| dataset | n | mean_x | sd_x | mean_y | sd_y |
|---|---|---|---|---|---|
| I | 11.00 | 9.00 | 3.32 | 7.50 | 2.03 |
| II | 11.00 | 9.00 | 3.32 | 7.50 | 2.03 |
| III | 11.00 | 9.00 | 3.32 | 7.50 | 2.03 |
| IV | 11.00 | 9.00 | 3.32 | 7.50 | 2.03 |
Useful for small to moderate sized data
Allows us to visualize the spread and distribution of a single continuous or discrete variable
The X axis is the variable of interest and each dot represents a single observation
Easy to identify the mode
Highlights clusters, gaps, and outliers
Intuitive and easy to understand
Useful for all sized data (small and large)
Allows us to visualize the spread and distribution of continuous variables
Each bar represents a ‘bin’ or a defined interval of values
Although not as common, the width of the bins does NOT have to be equal!
The y axis or the height of the bar represents the count of the number of values that fall into each bin
The y axis is also commonly normalized to ‘relative’ frequencies to show the proportion of cases or density that falls into each bin.
“A distribution is simply a collection of data, or scores, on a variable. Usually, these scores are arranged in order from smallest to largest and then they can be presented graphically.”1
Used to visualize a continuous variable over an ordered sequence - typically time
Points are connected in order, revealing trends and patterns of change that a scatter plot alone would obscure
Common in clinical research for tracking biomarkers, tumor burden, or patient-reported outcomes over follow-up
Multiple lines allow direct comparison between groups (e.g. treatment arms)
Biostatistics Shared Resource | Cedars-Sinai