
Applied Biostatistics: Summarizing Data
Link to Preface and Frontmatter
Link to Part 1 - Intro to R
This is Part 2 - Summarizing data
Link to Part 3 - Uncertainty and null hypothesis significance testing.
Link to Part 4 - Common linear models.
Link to Part 5 - Thinking harder about stats.
Link to Part 6 - Advanced material.
PART 2: Summarizing data
It is somewhat weird to start with summarizing data without also describing uncertainty because, in the real world, data summaries should always be accompanied by some estimate of uncertainty. However, biting off both of these challenges at once is too much, so for now, as we move forward in summarizing data, remember that this is just the beginning and is inadequate on its own.
Even though we aren’t tackling uncertainty yet, summarizing data on its own is already incredibly useful. Understanding and interpreting summaries helps us find patterns, spot errors, and build towards deeper statistical analysis.
Why summarize data?
Summarizing data serves several purposes:
- Condensing large datasets: Raw data often contains thousands of observations—summaries make the patterns manageable.
- Identifying trends and variability: Are the values clustered? Is there a lot of spread?
- Detecting errors: Unexpected values often signal data entry issues or outliers.
- Comparing groups: Does one group tend to have larger values than another?
- Laying the foundation for modeling: Before building models, we need a clear picture of the data’s structure.

In this section, we’ll not only learn how to compute summaries but also how to think about them in a meaningful way. That means:
Get everyone up to speed with standard data summaries: Chapter Five introduces univariate summaries of shape, central tendency (mean, median, mode), and variability (sum of squares, standard deviation, and variance), and more! Chapter 6 summarizes associations between variables (including conditional means, conditional proportions, covariance and correlation). Students will also get a sense of the difference between parametric and non-parametric summaries. For each summary, we aim to (1) build intuition, (2) provide the mathematical nuts and bolts, and (3) show you how to find it in R. In Chapter 7, we build from these simple summaries to linear models that allow us to predict the value of a response variable from a (combination) of explanatory variable(s). Later in the book we will dig much more deeply into linear models.
Introduce multivariate summaries and dimension reduction techniques: Summarizing data in one or two dimensions is relatively straightforward. However, nowadays, it is pretty standard to collect high-dimensional data, and we want to be able to work with such complex data. We introduce a few techniques to tackle this real-world challenge.
Further your data visualization and interpretation skills: Visual summaries of data are perhaps the most valuable summaries because, when done well, they tell a clear and honest story of the data. We introduced ggplot previously, but that was the minimum to get up and running. In this section, we work harder on interpreting the most common data visualizations and on building more sophisticated and polished visual presentations of data.