Check · Test yourselfPractice tests

Academy › Topic library › Going Deeper: Sample Size, Power and Practical Significance

Q-BOT ACADEMY · FREE VIDEO LESSON · 12 MIN

Going Deeper: Sample Size, Power and Practical Significance

Every test can be wrong in two ways. Too little data, and you miss real problems, like Marcus did. Too much data, and you chase differences too small to matter, and spend money measuring them. Sample size is where you decide, before you collect a single number, which mistakes you can live with.

12:23 · Q-Bot · narrated, with worked example and a check-yourself question

In short

Alpha is the false alarm risk, beta is the miss risk, and power is one minus beta. Power grows with delta and n, and shrinks with sigma and a stricter alpha. For a mean: n equals z alpha over two plus z beta, times sigma over delta, squared, rounded up. Proportions need far bigger samples. And significant isn't the same as important: always report the size of the difference!

Check yourself

Marcus wants to detect a thirty pound change in weld pull strength. Sigma is about forty pounds, alpha is point oh five two-sided, and he wants eighty percent power. How many welds? A: fourteen. B: four. C: eleven. Or D: you can't say until you've run the test.

Show the answer

The answer is A, fourteen. One point nine six plus point eight four is two point eight oh. Times forty over thirty, that's three point seven four. Squared, thirteen point nine five, rounded up to fourteen welds. Since sigma is only estimated, t-based software would say about sixteen. B forgot to square. C used the one-sided z value, one point six four five. And D gets it backwards: you plan the sample size before the test. That's sample size, power and practical significance. Questions? Ask Q-Bot right here in the Academy. And one for the road: why did the tiny sample never get invited to the party? It just didn't have the power to show up!

Where this topic is taught

This lesson is part of every free Academy course whose Body of Knowledge covers it. Each course puts it in context, with exercises and checks.

Full lesson transcript

The narration from the video, by chapter. Brindlewood Outdoor Furniture and its people are a fictional company used in every Q-Bot Academy lesson.

Intro

Brindlewood, a Friday afternoon. Marcus is frustrated. Two weeks ago, Lou adjusted the coating line's powder guns, and Marcus wanted to know if the average thickness had moved. Priya measured five frames, the test said fail to reject, and everyone moved on. Then Hannah's complaints about thin coating went up. The shift was real. The test just never had a fair chance to see it!

Hey there, I'm Q-Bot. Welcome to the Q-Bot Academy. Today we're going deeper: sample size, power and practical significance! We'll cover the two kinds of error, what power is and what drives it, the sample size formulas for a mean and for two proportions, and how to tell a significant result from one that actually matters. If hypothesis testing is new to you, start with the hypothesis testing video.

Why the math matters

Why does the math matter? Every test can be wrong in two ways. Too little data, and you miss real problems, like Marcus did. Too much data, and you chase differences too small to matter, and spend money measuring them. Sample size is where you decide, before you collect a single number, which mistakes you can live with.

The two kinds of error

First, the two errors. A type one error is a false alarm: you reject the null when nothing really changed. Its chance is alpha, which you pick, usually point oh five. A type two error is a miss: you fail to reject when something really did change. Its chance is called beta. Power is one minus beta: the chance the test catches a real change of a given size. At Brindlewood, a false alarm means Lou tears down a good powder gun. A miss means thin coating ships to customers.

What drives power

Power isn't one number. It depends on four things. The size of the change you care about, called delta: bigger changes are easier to see. The spread, sigma: more noise hides more. The sample size, n: more data, more power. And alpha: a stricter alpha means less power. The key ratio is delta over sigma, the size of the change measured in standard deviations. Bad: plan a study without saying how big a change matters. Good: name delta first, then pick n.

The power formula

Here's the power formula for a two-sided z test on a mean. Take delta, times the square root of n, divided by sigma. Subtract the cutoff, one point nine six. Power is the area of the normal curve below that number. In a spreadsheet, that's the standard normal distribution function. The other tail adds a tiny bit, usually small enough to ignore.

Worked example 1: five frames

Worked example one. What power did Marcus's five frames really have? The coating line's sigma is known: point one two mils. The shift he cared about was point one mils. Delta times root five, over sigma: point one times two point two three six, over point one two, is one point eight six three. Subtract one point nine six, and you get minus point oh nine seven. The normal curve below that is about forty six percent. So the test had less than a coin flip's chance of catching a real point one mil shift!

Look at the power curve. With five frames, about forty six percent. Ten frames, seventy five percent. Sixteen frames, about ninety one percent. Twenty five, almost ninety nine. Each step costs a few more measurements, and buys a lot more confidence that a fail to reject means something. Fail to reject from a weak test tells you almost nothing.

Sample size for a mean

Now flip it around. Instead of asking what power you have, choose the power you want and solve for n. For a mean, with known sigma: n equals the quantity z alpha over two, plus z beta, times sigma over delta, all squared. Z alpha over two is one point nine six, for alpha point oh five, two-sided. Z beta is point eight four for eighty percent power, or one point two eight for ninety percent. Always round n up. These formulas assume a stable process, independent measurements and roughly normal data.

Worked example 1: how many frames?

Back to the coating line. Marcus wants a ninety percent chance of catching a point one mil shift. One point nine six plus one point two eight two is three point two four two. Times sigma over delta, point one two over point one, which is one point two: three point eight nine. Squared: fifteen point one three. Round up: sixteen frames! If sigma weren't known, and you'd run a t test, software that uses the t distribution says eighteen. The formula is a close first answer, and software fine-tunes it.

See how the levers work. Want to catch a change twice as big, point two mils? You need only a quarter of the data: about four frames. Cut sigma in half, and the same thing happens. Drop from ninety percent power to eighty, and sixteen becomes twelve. Loosen alpha to point one, and it's thirteen. Because n depends on delta over sigma squared, small changes cost a lot of data!

Sample size for two proportions

Counting data needs much more. For two proportions, the formula is: n per group equals the quantity z alpha over two, times the square root of two p bar times one minus p bar, plus z beta, times the square root of p one times one minus p one, plus p two times one minus p two. All of that squared, divided by the difference, p one minus p two, squared. P bar is the average of the two rates.

Worked example 2: planning the rocking test

Worked example two. Dwayne's rocking check found one point four percent rockers on second shift and point six percent on first. Suppose he wants to plan a fair test of a fix that should bring second shift down to point six percent, with eighty percent power. P bar is one percent. The first piece is one point nine six times the square root of two times point oh one times point nine nine: point two seven five eight. The second is point eight four times the square root of point oh one nine seven seven: point one one eight three. Add them, point three nine four one, square it, and divide by point oh oh eight squared.

That's about two thousand four hundred and twenty eight chairs per shift! At about nine hundred chairs a shift each week, that's nearly three weeks of checks. And the fifteen hundred per shift Dwayne used before? It had only about sixty percent power. He was a little lucky to see the difference. Rare defects need big samples. That's why counting good and bad is the expensive way to learn.

Practical significance

Now the other side: practical significance. Statistical significance answers, is it real? Practical significance answers, does it matter? A huge sample can make a tiny, harmless difference significant. So decide what size of change matters before you collect the data, using the specification, the cost, or the customer. That's your delta, and it's the same number you used to pick n.

Worked example 3: the laser gauge

Worked example three. Slat mill two has an inline laser gauge that logs every slat. Ten thousand slats average nineteen point oh oh four millimeters against a target of nineteen point oh. Sigma is point one. The standard error is point one over a hundred: point oh oh one. Z equals point oh oh four over point oh oh one: four. The p-value is about point oh oh oh oh six. Highly significant!

But is it important? The shift is four thousandths of a millimeter, against a tolerance of plus or minus half a millimeter. That's less than one percent of the half-tolerance, and only four hundredths of a standard deviation. Not worth touching the mill. Remember the new welding wire? Fifty pounds of force stronger, a p-value of point oh oh oh five, and Rosa still kept the old wire, because the welds were already well above the twelve hundred pound minimum. Real, and not worth the cost.

Report the size, not just the p-value

So with every result, report the size. Give the difference with a confidence interval: for the slats, point oh oh two to point oh oh six millimeters. Or give the effect size, the difference over sigma, here point oh four. A confidence interval shows both questions at once: whether zero is inside it, and whether anything inside it would matter.

In a spreadsheet and in software

In a spreadsheet, the standard normal inverse gives the z values: one point nine six for alpha point oh five two-sided, point eight four for eighty percent power, and one point two eight for ninety percent. The standard normal distribution function turns a z into power. For t tests, analysis of variance and proportions, statistical software has power and sample size tools that use the exact distributions. Use the formula to check that the software's answer is in the right neighborhood.

Reading the result

So how do you read the result and decide? Before the study, name delta, alpha and the power you want, and pick n. After it: a reject from a well-planned test, with a difference bigger than delta, means act. A reject with a tiny difference means it's real but may not be worth fixing. A fail to reject from a test with good power means any change is probably smaller than delta. A fail to reject from a weak test means you don't know yet.

Common mistakes

Common mistakes. One: picking n by habit, like five, without checking power. Two: forgetting to square, which gives a sample far too small. Three: using a one-sided z value for a two-sided test. Four: reading fail to reject as no change, from a test that never had the power to see one. Five: celebrating a tiny p-value from a huge sample without asking how big the difference is. And six: computing power after the fact from the observed difference. Plan power before you collect the data.

Recap

Let's recap. Alpha is the false alarm risk, beta is the miss risk, and power is one minus beta. Power grows with delta and n, and shrinks with sigma and a stricter alpha. For a mean: n equals z alpha over two plus z beta, times sigma over delta, squared, rounded up. Proportions need far bigger samples. And significant isn't the same as important: always report the size of the difference!

Check yourself

Now, check yourself. Marcus wants to detect a thirty pound change in weld pull strength. Sigma is about forty pounds, alpha is point oh five two-sided, and he wants eighty percent power. How many welds? A: fourteen. B: four. C: eleven. Or D: you can't say until you've run the test. Pause the video if you want to think about it.

The answer is A, fourteen. One point nine six plus point eight four is two point eight oh. Times forty over thirty, that's three point seven four. Squared, thirteen point nine five, rounded up to fourteen welds. Since sigma is only estimated, t-based software would say about sixteen. B forgot to square. C used the one-sided z value, one point six four five. And D gets it backwards: you plan the sample size before the test.

That's sample size, power and practical significance. Questions? Ask Q-Bot right here in the Academy. And one for the road: why did the tiny sample never get invited to the party? It just didn't have the power to show up!

Independent study material; not affiliated with or endorsed by ASQ. Body of Knowledge codes identify where the topic appears in each certification's published outline.