A visual essay on statistics, from batting averages to confidence intervals
Previously: It's Just Counting — a visual essay on probability
What if every statistical claim you've ever seen — every poll result, every clinical trial, every batting average — was really just one operation, applied more and more carefully?
Let me set up the question that will carry us through this entire page.
You flip a coin 100 times and count the heads. You get 62. Not 50, like you might expect from a fair coin. Sixty-two.
Is the coin rigged? Or did you just get a little lucky?
This is the question of statistics. You have data — 100 flips, 62 heads. You have a summary of that data — 62%. And you need to decide: does this number reflect something real about the coin, or is it the kind of fluctuation that happens all the time with perfectly fair coins?
The probability essay gave us tools for counting outcomes. This essay gives us tools for interpreting what we counted.
And here is the promise I want to make: by the end of this page, you will have answered that question using an operation you have known since elementary school.
Averaging.
Let's start with the coin. Click the button below, and you will flip 100 coins. Watch the count of heads. Then do it again. And again.
Sometimes you will get 55 heads. Sometimes 47. Sometimes 62. The question that should nag at you: when should you be suspicious?
Flip 100 coins repeatedly. The strip chart accumulates your results — watch the cluster form around 50.
That coin gave you a number — 62 heads out of 100. Before we can figure out what that number means, we need to understand what a summary number is. What does it actually mean to "average" something?
You have a hundred numbers. Quick — what's the story?
This is the fundamental problem of statistics. You've collected data — maybe test scores, maybe incomes, maybe the number of heads in each batch of coin flips — and you need to compress it into something you can think about. A hundred numbers is too many to hold in your head. You need a summary.
The most natural summary is the one you have been computing since you were ten years old: add them up, divide by how many there are. The average. The mean.
But I want to show you that the mean is not just a computational recipe. It is something much more physical than that.
Imagine a beam — a long, rigid plank balanced on a fulcrum, like a seesaw. Now imagine placing weights along this beam, one weight for each data point, positioned at the value of that data point. Where would you have to place the fulcrum for the beam to balance?
That position is the mean.
This is not a metaphor. This is literally what the mean computes. If your data points are 2, 3, 5, 5, and 10, the mean is 5 — and if you placed weights at those positions on a number line and tried to balance the beam, the fulcrum would need to sit at exactly 5. Shift any weight and the balance point shifts with it — predictably, proportionally.
Before showing you the beam, look at the data points on the number line below. Where do you think the average falls? Click to place your guess. Then the beam will appear, and you can see if you were right.
Where do you think the average falls? Click on the number line to place your guess.
Here is what makes the center-of-gravity picture so revealing. Drag one of the data points far to the right — to 20, say. Watch the fulcrum chase it. A single extreme value pulls the mean toward it, because the mean has to account for every data point, proportionally.
This is worth sitting with. The mean is not the "most common" value. It is not the "typical" value. It is the balance point — and a single extreme data point can drag it far from where most of the data sits. If someone tells you the "average income" in a room, and one person in that room is a billionaire, the average tells you almost nothing about anyone else's paycheck. The mean is vulnerable to outliers in a way that our intuition about "average" often is not.
The formula, when you are ready for it, just writes down what the beam already told you:
$$\bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i$$
Add them up, divide by how many there are. The $\Sigma$ symbol is a compact way of writing "add up all the $x_i$ values." The bar over the $x$ is the standard notation for the mean. But the formula adds nothing that the beam did not already show you.
Now here is something that deserves its own moment. Remember the coin flip — 62 heads out of 100?
Each flip is either a 1 (heads) or a 0 (tails). Picture those hundred values in a row:
$$1, 0, 1, 1, 0, 1, 0, 0, 1, 1, \ldots$$
The average of those hundred 0s and 1s is $62/100 = 0.62$. The same balance-beam logic applies: the 1s pull the fulcrum up, the 0s pull it down, and the balance point is the proportion.
A proportion is a mean. The fraction of heads is the average of the individual outcomes. This is the bridge between the probability essay and this one: "favorable over total" is the same operation as "the mean of a list of zeros and ones."
Hold onto that idea. It will unlock everything in the second half of this essay.
So the mean tells you the center. But here is a question the mean cannot answer: two classes both average 75% on an exam. Are they the same?
Here are two classrooms, each with five students.
Class A test scores: 73, 74, 75, 76, 77.
Class B test scores: 50, 60, 75, 90, 100.
The mean of Class A? 75. The mean of Class B? Also 75. Identical summaries. But you would not describe these classes the same way. Class A is clustered tight — everyone scored within 2 points of the average. Class B is all over the map.
Before I show you the math, look at the two datasets in the visualization below. Which one has higher variance — that is, which one's data points disagree more with their average? Make your guess, then we will measure it.
Both classes average 75. Which has higher variance?
Drag any data point and watch the squared-deviation areas respond. The variance is the average of those areas.
The mean tells you the center. It says nothing about the spread. We need a second number — one that captures how much the data points disagree with their own summary.
Here is a natural first attempt. For each data point, measure how far it is from the mean. Then average those distances. Simple, right?
There is a problem. Some data points are above the mean (positive deviation) and some are below it (negative deviation). If you average the raw deviations, the positives and negatives cancel perfectly. Every time. The average deviation from the mean is always exactly zero.
This is not a coincidence — it is a consequence of what the mean is. The mean is the balance point, and balance means the forces in both directions are equal. The deviations must cancel.
So we need a trick: square each deviation before averaging. Squaring makes every deviation positive (a negative squared is positive), and it does something else that is important — it penalizes large deviations much more than small ones. A deviation of 2 contributes $4$ to the total. A deviation of 10 contributes $100$. The outliers dominate.
The average of these squared deviations has a name: the variance.
$$\sigma^2 = \frac{1}{n}\sum_{i=1}^{n}(x_i - \bar{x})^2$$
Read it as a sentence: for each data point, compute how far it is from the mean, square that distance, then average all the squared distances. It is an average. The variance is an average.
For Class A (scores 73-77), the variance is 2. For Class B (scores 50-100), the variance is 340. Same mean, wildly different stories.
There is one nuisance with variance: because we squared the deviations, the units are squared too. If your data is in "points," the variance is in "points squared," which is hard to interpret. So we take the square root to get back to the original units. That gives us the standard deviation:
$$\sigma = \sqrt{\frac{1}{n}\sum_{i=1}^{n}(x_i - \bar{x})^2}$$
Class A's standard deviation is about 1.4 points. Class B's is about 18.4 points. Now the number tells you something intuitive: in Class A, a typical student deviates from the average by about 1.4 points. In Class B, by about 18.4 points.
Let me show you this. In the visualization below, each data point has a vertical bar extending from it to the mean. That bar represents the deviation. The area of the square built on that bar represents the squared deviation. The variance is the average of those square areas.
Drag a point far from the mean and watch its square balloon. This is why variance is so sensitive to outliers — you are not just measuring the distance, you are measuring the area of the square built on that distance. A point twice as far away contributes four times as much to the variance.
What about the coin? Each flip is 0 or 1, with mean 0.62 (from our data). The squared deviation for a head is $(1 - 0.62)^2 = 0.1444$, and for a tail it is $(0 - 0.62)^2 = 0.3844$. Averaging those across 100 flips gives a variance of about 0.236, and a standard deviation of about 0.49. Even measuring the spread of coin flips is an averaging operation.
So the mean is an average of the data. The variance is an average of the squared deviations from the mean. Even our way of measuring spread is, at its core, an averaging operation.
Mean and standard deviation together give you two coordinates — the center and the spread. They are like longitude and latitude: they tell you where you are and how far things wander. But they don't tell you the shape of the landscape. For that, you need a picture.
Here is a question about shape.
A teacher gives an exam. The class average is 72, the standard deviation is 12. Sounds like a normal class, right? But which of these three scenarios fits?
Scenario A: Most students scored near 72, tapering off symmetrically in both directions. The classic bell curve.
Scenario B: Half the class aced the exam, and the other half bombed it. A two-humped camel — peaks at 55 and 90, valley in the middle. The average, 72, is in the valley between the peaks — a score almost nobody got.
Scenario C: Most students scored in the 60s and 70s, but a handful scored over 95, pulling the average up. A right-skewed distribution.
All three scenarios could have the same mean and standard deviation. But they tell completely different stories about the class. To see those stories, you need to look at the shape of the data. You need a picture.
A histogram gives you that picture. It works like this: divide the number line into equal-width bins (say, 0-10, 10-20, 20-30, and so on). Count how many data points fall into each bin. Stack them up.
The height of each bar tells you the count — or, if you divide by the total, the proportion of data in that range. And notice what that proportion is: the count in a bin divided by the total count. This is "favorable over total" from the probability essay, making a quiet return. Each bar in a histogram is a probability in disguise.
But there is a choice hiding in the histogram that is more consequential than it looks: the bin width.
Make the bins too narrow, and the histogram becomes a jittery mess — a forest of spikes that reveals noise, not pattern. Make the bins too wide, and everything washes out into a single blob. The shape of your data is somewhere in between.
Try it. In the visualization below, you can generate samples from different source distributions and adjust the bin width. Watch how the same data tells different stories depending on how you bin it.
Choose a distribution, adjust the bin width, and change the sample size. For skewed data, guess where the mean falls before it is revealed.
Most people expect the mean to sit at the peak — the most common value. But for skewed data, the mean gets dragged toward the tail. The long right tail pulls the mean to the right of the peak. The peak (mode) is the most common value. The mean is the balance point. They are not the same thing.
Here is the deeper observation. As you increase the sample size — going from 100 to 1,000 to 10,000 data points — the histogram stabilizes. The jitter smooths out. A recognizable shape emerges and holds steady. The histogram is converging to something — the underlying distribution that generated the data.
This is where data and probability merge. A histogram of past data starts to look like a probability distribution of future data. The bars that were "counts" become "likelihoods." The data you have becomes a window into the process that produced it.
And here is where the coin returns. If you repeated your 100-flip experiment many times and made a histogram of the proportion of heads each time, what shape would that histogram have? Would it look like the source data — two spikes at 0 and 1? Would it look uniform? Or would it look like something else entirely?
You have seen that individual data can take any shape — uniform, skewed, bimodal. The histogram reveals whatever shape is there. Now I want to ask a question that, when I first encountered the answer, genuinely changed how I think about data.
It is the question that separates descriptive statistics — summarizing what you have — from inferential statistics — reasoning about what you don't have.
You have been looking at histograms of individual data points. But what happens when you look at a histogram of averages? Not individual values, but the means of random samples?
You already planted the seed a moment ago with the coin. If you repeated the 100-flip experiment many times and histogrammed the proportion of heads, what shape would you see? The individual flips are 0 or 1 — nothing bell-shaped about them. So what shape should their average have?
The answer is something you would not guess. And once you see it, you cannot unsee it.
This section contains the most important idea on this page. Maybe the most important idea in all of statistics.
Here is the setup. Take a distribution — any distribution. It could be uniform, like rolling a die. It could be wildly skewed, like income. It could be bimodal, like the two-humped exam scores from the last section. It does not matter. Pick the ugliest, most non-bell-shaped distribution you can imagine.
Now draw a random sample of, say, 30 values from that distribution and compute their average. Write down that average. Draw another sample of 30, compute the average. Write it down. Do this thousands of times, and make a histogram of all those averages.
What shape do you think that histogram will have?
Pause and actually think about this.
If you drew many random samples of 30 from this distribution and averaged each, what shape would the histogram of averages have?
If you guessed "bell curve," you are right — but the fact that you are right is astonishing.
The original data can follow any distribution. Uniform, exponential, bimodal, custom. It does not matter. When you average a random sample and repeat, the averages always cluster into a bell curve. Always. Regardless of the shape you started with.
This is the Central Limit Theorem, and it is the reason the bell curve appears everywhere in science. Not because nature loves bell curves. Not because individual measurements are bell-shaped. But because so much of science is about averages — average treatment effects, average poll responses, average measurements — and averages make bell curves. The bell curve is not an assumption. It is a consequence of averaging.
Let me say that again because it is the conceptual hinge of the entire essay.
Individual human heights do happen to be roughly bell-shaped. But the CLT is not about individual heights. It is about what happens when you take the average height of a random sample. That average follows a bell curve, even if the individual measurements do not. And that fact is what makes confidence intervals, standard errors, and significance tests possible.
Watch this happen. Choose a source distribution in the visualization — something aggressively non-bell-shaped, like the exponential or the bimodal. Set the sample size to 30. Now click "Draw 1000 samples." Each sample generates an average. The histogram of those averages fills in, and there it is: a bell curve. Symmetric, centered at the population mean, smooth.
Now try a smaller sample size — 5, say. The bell shape is rougher, especially for very non-bell-shaped sources. Increase to 50, then 100. The bell gets tighter and more perfect. The CLT is an asymptotic result — it gets better with larger samples — but even for moderate samples, the approximation is remarkably good.
There are two things the CLT tells you about the bell curve of averages:
Where it sits: The bell is centered at the true population mean $\mu$. The averages cluster around the right answer.
How wide it is: The bell's spread is $\sigma / \sqrt{n}$, where $\sigma$ is the standard deviation of the individual data and $n$ is the sample size. Bigger samples make a narrower bell. This is because averaging more values cancels out more of the individual noise.
In the notation we will use going forward ($\bar{X}$ is the sample average, $\mu$ is the true population mean, $\sigma$ is the standard deviation of the individual data, and $n$ is the sample size):
$$\bar{X} \sim N\!\left(\mu,\; \frac{\sigma^2}{n}\right)$$
This says: the sample mean $\bar{X}$ is approximately normally distributed, centered at $\mu$, with variance $\sigma^2 / n$.
Remember the coin flip from the introduction? You flipped 100 times and got 62 heads. The "data" is 100 zeros and ones. The mean of that data is 0.62. If the coin were fair, the true population mean would be $\mu = 0.50$. The CLT tells you that the distribution of sample means (from 100 flips of a fair coin) is a bell curve centered at 0.50. Your result, 0.62, sits somewhere out on the tail of that bell. Is it far enough out to be suspicious? To answer that, we need to know exactly how wide the bell is.
That is the question of the next section.
You survey 50 people and find an average satisfaction rating of 7.2 out of 10. Your colleague surveys 500 people and gets 6.8. Whose number should you trust more?
Everyone's gut says the same thing: trust the bigger sample. And that gut is right. But how much more trustworthy is it? Twice as trustworthy, because the sample is ten times bigger? That cannot be right — "twice as trustworthy" and "ten times bigger" are different scales. The relationship between sample size and trustworthiness is not as simple as it looks.
The quantity that answers this question is the standard error of the mean, and it drops straight out of the Central Limit Theorem.
Recall what the CLT told us: if you draw many samples of size $n$ and compute their means, those means form a bell curve centered at the true population mean $\mu$, with a standard deviation of $\sigma / \sqrt{n}$.
That number $\sigma / \sqrt{n}$ — the standard deviation of the bell curve of averages — is the standard error. It tells you how much sample averages bounce around from sample to sample.
Before I give you the formula, I want you to make a prediction.
Right now, suppose you have a sample of 25 observations, and the standard error is 2.0. How large a sample would you need to cut the standard error to 1.0 — half its current value?
Your sample size is 25 (SE = 2.0). How large a sample to cut the standard error to 1.0?
Drag the sample size slider and draw samples. Watch the cloud of sample means tighten — but with diminishing returns.
The answer is 100. Four times the sample size, half the standard error. $\sqrt{100} = 10$, which is twice $\sqrt{25} = 5$. To cut the uncertainty in half again (to 0.5), you would need 400 observations. Precision is expensive. Each halving of uncertainty costs a quadrupling of data.
Now the formula that explains why:
$$SE = \frac{\sigma}{\sqrt{n}}$$
Look at the denominator: $\sqrt{n}$, not $n$. This is the $\sqrt{n}$ law, and it governs the economics of every scientific study, every opinion poll, and every clinical trial. It explains why national polls survey about 1,000 people, not 100 and not 10,000 — 1,000 is the sweet spot where you get good precision without enormous cost. Going from 1,000 to 4,000 would only halve the error. The diminishing returns are built into the mathematics.
Here is the deeper point. The standard error is not a property of your data. It is a property of your procedure. It answers: "If I ran this study again with fresh data, how different would my average be?" Your data stays the same. The standard error tells you about the variability of the method, not the variability of the data.
Let's reconnect with the coin. You flipped 100 times, got 62 heads, so $\bar{x} = 0.62$. The standard deviation of a single coin flip (0 or 1 with equal probability) is 0.5. The standard error of the sample proportion is:
$$SE = \frac{0.5}{\sqrt{100}} = \frac{0.5}{10} = 0.05$$
Your sample average of 0.62 is about $0.12 / 0.05 = 2.4$ standard errors above the expected value of 0.50. Is that a lot? We are almost ready to answer that question precisely. But first, we need to build one more idea: the confidence interval.
Here's a number you have seen a hundred times: "The average American eats 23 pounds of pizza per year, give or take 3 pounds."
That "give or take" is doing a lot of work. What does it actually mean? Is 3 pounds the maximum possible error? The expected error? Some kind of reasonable range? And what exactly does "reasonable" mean?
This is the question that confidence intervals answer. And like everything else on this page, the answer is built from averaging.
Here is the construction. We know, from the CLT, that the sample mean $\bar{x}$ comes from a bell curve centered at the true population mean $\mu$, with a spread of $SE = s / \sqrt{n}$. We know, from the properties of the bell curve, that about 95% of the area under the curve lies within roughly 2 standard errors of the center.
So if we draw a sample, compute $\bar{x}$, and build an interval of $\bar{x} \pm 2 \times SE$, that interval will contain the true mean $\mu$ about 95% of the time.
$$\text{95\% CI:}\quad \bar{x} \pm 1.96 \times \frac{s}{\sqrt{n}}$$
That is a 95% confidence interval. And the word "confidence" does not mean what most people think it means.
A 95% confidence interval does not mean "there is a 95% probability the true mean is inside this interval." That sounds like it should be right, but it is subtly and importantly wrong. The true mean $\mu$ is a fixed number — it is either inside the interval or it is not. There is no probability about it.
What 95% confidence means is this: if you repeated the entire procedure — draw a new sample, compute a new mean, build a new interval — and did this 100 times, about 95 of those intervals would contain the true mean, and about 5 would miss it.
Before I show you why this matters, I want you to predict what this looks like in practice.
In the visualization below, I am going to generate 100 samples from a population with a known (but hidden) true mean. For each sample, I will compute a 95% confidence interval and draw it as a horizontal bar. Then I will reveal the true mean as a vertical line.
Here is the question: of those 100 intervals, how many do you think will contain the true mean?
Take a moment. Enter your guess.
I'll build a 95% confidence interval for each of 100 random samples. How many will contain the true mean?
Each horizontal bar is one confidence interval. Red bars missed the true mean. Adjust the confidence level and sample size to see how they affect coverage and width.
Count the red bars — those are the intervals that missed the true mean. There should be roughly 5 of them. Not exactly 5 every time — randomness is at play — but on average, about 5 out of 100.
Now look at one of those red bars. Before it was computed, was the probability it would contain the true mean 95%? Yes — every interval had a 95% chance of capturing the truth, by construction. But after it was computed, does this particular interval contain the true mean? No. The probability is not 95% — it is 0%. The true mean is simply not in there.
This is the key to the whole concept. Before you compute the interval, there is a 95% chance it will contain the truth. After you compute it, the truth is either in there or it is not. The 95% describes the reliability of the factory, not the quality of any one product. You cannot look at a single interval and say "the true mean has a 95% chance of being here." You can only say "the method that produced this interval gets it right 95% of the time."
The intervals that hit are not "better" than the ones that missed. They were all constructed by the same method. The misses are the expected cost of the 95% guarantee — you get 5% of intervals wrong in exchange for having a usable, computable range.
Three things control the width of a confidence interval:
1. The data's variability ($s$). More variable data means wider intervals. If the data is noisy, the mean is harder to pin down.
2. The sample size ($n$). Larger samples mean narrower intervals — by the $\sqrt{n}$ law from the last section. Quadruple your sample to halve the width.
3. The confidence level. A 99% confidence interval is wider than a 95% interval, which is wider than a 90% interval. More confidence requires casting a wider net. You can have precision or confidence, but cranking up one comes at the cost of the other.
These three levers are intuitive once you see them. Noisy data? Wider range. Bigger sample? Narrower range. More confidence? Wider range.
Let's check in on the coin. You got 62 heads out of 100 flips. The sample proportion is $\hat{p} = 0.62$. Since we do not know the true population proportion, we estimate the standard error from the data. For a proportion, this means using $\hat{p}$ in place of $p$:
$$SE = \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}} = \sqrt{\frac{0.62 \times 0.38}{100}} \approx 0.049$$
The 95% confidence interval is:
$$0.62 \pm 1.96 \times 0.049 \approx 0.62 \pm 0.096$$
That gives you roughly [0.52, 0.72]. Notice that 0.50 — the value for a fair coin — falls outside this interval. Your data is telling you: if we use a method that is right 95% of the time, the fair-coin value of 0.50 is not in the plausible range.
That sounds like evidence against a fair coin. But how strong is that evidence? For a sharper answer — not a range of plausible values, but a yes-or-no verdict — we need one more idea. And it takes us right back to where we started.
We began this essay with a question: you flipped a coin 100 times and got 62 heads. Is the coin unfair?
We now have every tool we need to answer this precisely. And the answer, like everything else, comes from thinking carefully about an average.
Here is the logic, laid out step by step.
Step 1: State the boring assumption. Assume the coin is fair. This is the null hypothesis — the claim that nothing interesting is going on. Under this assumption, the true proportion of heads is $\mu_0 = 0.50$.
Step 2: Ask how surprising your data is, under that assumption. If the coin is fair, the CLT says the sample proportion (from 100 flips) follows a bell curve centered at 0.50. Under the null hypothesis, we use the hypothesized value $p_0 = 0.50$ to compute the standard error — because we are asking what the world looks like if the null is true:
$$SE = \sqrt{\frac{p_0(1 - p_0)}{n}} = \sqrt{\frac{0.50 \times 0.50}{100}} = 0.05$$
Your observed proportion, 0.62, is 0.12 above the center. In units of standard error:
$$z = \frac{\bar{x} - \mu_0}{SE} = \frac{0.62 - 0.50}{0.05} = 2.4$$
This number — 2.4 — is the test statistic. It says: your average is 2.4 standard errors away from where you would expect it under the null hypothesis.
Step 3: Translate that into a probability. Under the null hypothesis, the test statistic follows a standard bell curve (mean 0, standard deviation 1). The probability of landing 2.4 or more standard errors from the center (in either direction) is about 0.016.
That number — 0.016 — is the p-value.
But before I explain what the p-value means, I want you to wrestle with the original question yourself.
You flipped 100 times, got 62 heads. Is this enough evidence the coin is unfair?
Slide the observed heads count and switch sample sizes. Watch the same proportion become more or less significant as the bell curve tightens.
Do you think 62 heads out of 100 is enough evidence to conclude the coin is unfair? Not "is it possible the coin is fair?" — of course it is possible. The question is: is it plausible?
The p-value answers this precisely. A p-value of 0.016 means: if the coin were fair, the probability of getting a result at least as extreme as 62 heads (or 38 heads — equally extreme in the other direction) is 1.6%.
That is a small number. Under the conventional threshold of 5%, we would call this result statistically significant. The data is hard to explain if the coin is fair, so we have evidence against the null hypothesis.
But notice what the p-value is not.
It is not the probability that the coin is fair. It is the probability of the data (or more extreme data), assuming the coin is fair. This is conditional probability from the first essay — $P(\text{data} \mid \text{fair coin})$, not $P(\text{fair coin} \mid \text{data})$. Confusing these two is the base rate fallacy from the Bayes section, wearing a lab coat.
Remember the medical test from the probability essay? A test that is 99% accurate still gives mostly false positives when the disease is rare — because $P(\text{positive test} \mid \text{disease})$ is not the same as $P(\text{disease} \mid \text{positive test})$. The p-value is the same trap. $P(\text{data this extreme} \mid \text{null is true})$ is not the same as $P(\text{null is true} \mid \text{data this extreme})$. Confusing them is the same mistake, in a new setting. This is the single most consequential misunderstanding in all of applied statistics.
There is one more fact that is essential, and the visualization makes it vivid.
The same proportion of heads — say, 62% — can be significant or insignificant depending on the sample size.
With $n = 20$ flips, getting 13 heads (65%) is unremarkable. The standard error is $0.5/\sqrt{20} \approx 0.112$, and $z = 0.15/0.112 \approx 1.34$. The p-value is about 0.18. Nothing to write home about.
With $n = 100$ flips, 62% gives $z = 2.4$ and $p = 0.016$. Now it is significant.
With $n = 1{,}000$ flips, 62% heads gives $z = 0.12/0.0158 \approx 7.6$. The p-value is astronomically small — less than one in a billion. The evidence is overwhelming.
Why? Because the standard error shrinks with $\sqrt{n}$. With more data, the bell curve of "what fair-coin results look like" gets narrower. Your observed 62% stays in the same place, but the bell curve tightens around 50%, and 62% ends up further and further out in the tail. The same departure from expectation becomes more and more implausible as data accumulates.
This is the final instance of the recurring theme: sample size matters because it controls the standard error, which is the standard deviation of an average. Larger samples mean more precise averages, which means smaller departures from expectation become detectable. The entire machinery is about averaging.
You flipped a coin 100 times and got 62 heads. At the beginning of this essay, all you had was a gut feeling. Now you have a precise language for that feeling.
The sample mean is 0.62. The standard error is 0.05. The confidence interval excludes 0.50. The p-value is 0.016.
But here is what I want you to notice about every single one of those numbers.
The mean (Section 1): The average of your 100 flips — a list of zeros and ones — is 0.62. That proportion is a mean. The most familiar operation in mathematics, applied to the simplest possible data.
The variance (Section 2): The standard deviation of a single coin flip is 0.5 (for a fair coin). This measures how much each individual flip deviates from the average. And the variance itself is computed by — averaging the squared deviations.
The histogram (Section 3): If you repeated the 100-flip experiment many times and plotted the proportions, you would see a shape emerge. The histogram is a picture of proportions — each bar is a count divided by a total, which is an average of indicator variables.
The Central Limit Theorem (Section 4): That shape is a bell curve. Not because coin flips are bell-shaped (they are not — each flip is 0 or 1, nothing in between). But because averages of many values cluster into bell curves. This is the deepest fact in statistics, and it is a fact about averaging.
The standard error (Section 5): The bell curve of averages has a width of $\sigma / \sqrt{n} = 0.05$. This is how much the average bounces around from experiment to experiment. It is the standard deviation of an average.
The confidence interval (Section 6): $0.62 \pm 1.96 \times 0.05$ gives roughly [0.52, 0.72]. This interval is centered on an average, and sized by the standard error of that average. 0.50 falls outside — the fair-coin hypothesis is outside the 95% range.
The significance test (Section 7): $(0.62 - 0.50) / 0.05 = 2.4$. That's the distance between your observed average and the hypothesized average, measured in units of the standard error. The p-value is 0.016. The pattern is real — or at least, it would be very hard to explain by chance.
Every single step was an averaging operation.
But here is the thing I want you to take away. These are not magic incantations. They are not formulas to memorize for an exam. They are just different ways of saying: "I averaged my data, and I used the properties of averages to ask whether my average could plausibly have come from a fair coin."
You did not need new mathematical machinery. You needed one old operation — averaging — and the patience to ask what averaging can and cannot tell you.
There is something else worth saying. We have treated the mathematics as if data simply arrives — as if someone hands you 100 coin flips and you analyze them. In practice, the hardest part of statistics is not the analysis. It is the data collection. Who did you sample? Were they representative? Did your measurement method introduce bias? Did you decide to stop collecting data because the results looked promising? These questions — about experimental design, sampling, and researcher degrees of freedom — are where real-world statistical reasoning lives, and they are just as important as anything on this page. The math gives you tools. The hard part is knowing when those tools apply.
But the tools themselves? They are just averaging. Carefully, precisely, thoughtfully — but just averaging.
The next time someone shows you a statistic — a poll result, a batting average, a clinical trial outcome, a confidence interval around the effectiveness of a vaccine — you do not need to treat it as a black box. You know exactly what is inside. An average. A measure of how much that average wobbles. And a question: is the wobble small enough that the pattern is real?
That is all statistics is. And now you know how to ask.