liveBook · Manning

Chapter 2: Meet your data!

What you will learn in chapter 2 of Grokking Statistics

The chapter introduction distinguishes the data typically used for statistical analysis from unstructured data and explains how simplified one-variable examples relate to real-world tables.

After this chapter you will be able to

Section by section

Introduction

The chapter introduction distinguishes the data typically used for statistical analysis from unstructured data and explains how simplified one-variable examples relate to real-world tables.

Key terms: structured data, tabular data, unstructured data, perceptual models, single variable, multiple variables, columns

2.1 What is data?

Defines data as recorded measurements or observations and explains why understanding it matters before building statistical models.

Key terms: data, recorded measurements, observations, data foundation, statistical models

2.2 Family photo experiment

The family-photo thought experiment shows why data offers incomplete, potentially biased clues and why analysis should begin with a focused question while still examining how the data was produced.

Key terms: data, snapshots, the Instagram problem, objective, scientific method, data mining, spurious findings, context, biases, representative

2.3 Where does data come from?

The section identifies four common ways data is created and explains why its origin matters when judging whether it suits an analysis.

Key terms: sensors, software activity, manual human effort, synthetic data, calibration, sampling point, data source, third party, missing, updated

2.4 Samples and populations

Introduces the idea that observed data is often a sample of a larger population it is meant to represent.

Key terms: sample, population

2.5 What is a population?

Defines a population by its boundaries and explains why large or theoretical populations usually must be studied through samples.

Key terms: population, boundaries, census, sampling, theoretical, edge cases, sample

2.6 What is a sample?

Defines a sample as data used to infer something about a larger population, then shows why sample size, selection, context, and the definition of the population matter.

Key terms: sample, population, N, random, unbiased, representative, sample size, context, theoretical population, all possible road events

2.7 Sampling bias

This section explains how unrepresentative samples distort conclusions, using a student sleep study to show sources of sampling bias and ways to manage it.

Key terms: bias in data, sample, population, representative, unbiased sample, randomly select, self-selection bias, social media, sleep-tracking watches, bias

2.8 Numeric systems and data types

Introduces common data types and explains why recognizing what values represent matters when working with data.

Key terms: natural numbers, integers, unique identifiers, counts, labels, Booleans, nonnumeric types, dates, strings, categories

2.9 Natural numbers

This section introduces natural numbers as counting values and explains how the decimal system writes large numbers using columns of digits.

Key terms: natural numbers, whole numbers, discrete, decimal system, digits, column system, floating-point values

2.10 Integers

Defines integers and shows why negative whole numbers are useful for describing real quantities.

Key terms: integers, natural numbers, whole numbers, negative numbers, loss, sea level

2.11 Real numbers

This section introduces real numbers, distinguishes rational from irrational numbers, and explains why computer floating-point values are approximations.

Key terms: real numbers, floating-point decimal, integers, rational number, irrational numbers, ratio, floating-point value, floating-point precision errors, floating-point underflow, logarithmic addition

2.12 Mean, median, percentile, and mode

Introduces measures of central tendency and descriptive statistics as ways to summarize numerical data.

Key terms: measures of central tendency, mean, median, mode, discrete values, numerical variables, descriptive statistics, percentiles

2.13 Mean

This section explains how the mean represents the center of numerical data, how its notation differs for samples and populations, and how weights change each value’s influence.

Key terms: mean, average, central location, x-bar, μ, n, Σxᵢ, weighted mean, weighted average, weight

2.14 Median

Defines the median, shows how to find it for odd and even numbers of values, and explains why it can better represent a typical value when outliers skew the mean.

Key terms: median, ordered sequence, centermost values, mean, outlier, skewed

2.15 Percentile

Defines percentiles and quartiles, uses the interquartile range to describe the middle half of a dataset, and notes how quantiles relate to percentiles.

Key terms: percentile, median, quartiles, interquartile range, 25th percentile, 75th percentile, outliers, quantile, interpolation, numpy

2.16 Mode

This section defines the mode, shows how it identifies the most common booking-party size, and explains when data have no mode or are called bimodal.

Key terms: mode, categorical, discrete types of data, bimodal, multiple local maxima

2.17 Variance and standard deviation

The section explains why a central value alone can be misleading and introduces variance and standard deviation as measures of data spread.

Key terms: dispersion, mean, median, variance, standard deviation, squared differences

2.18 Variance

This section explains how variance measures spread, why sample variance uses n − 1, and how to calculate and interpret it in a temperature example.

Key terms: variance, mean, variability, sample variance, population variance, Bessel’s correction, n − 1, len(temps) - 1, var(), ddof=1

2.19 Standard deviation

This section defines standard deviation as the square root of variance, explains why it is easier to interpret, and notes how to calculate it for a sample and when outliers may make it less useful.

Key terms: standard deviation, variance, spread, variance(), standard_deviation(), numpy’s std(), ddof=1, sample, outliers, interquartile range

2.20 Real-world example with tornadoes

The section uses NOAA tornado data to show how distributions and grouped summaries can suggest a relationship between tornado width and severity while leaving room for uncertainty.

Key terms: NOAA, TOR_WIDTH, TOR_F_SCALE, EFU, histogram, bins, right skew, mean, median, interquartile range

2.21 Summary

Where this is used later

Concepts explained in this chapter

← Chapter 1: Why you should care about statistics Chapter 3: So you’re telling me there’s a chance! →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.