Check · Test yourselfPractice tests

Academy › Topic library › Going Deeper: The t, Chi-Square and F Distributions

Q-BOT ACADEMY · FREE VIDEO LESSON · 13 MIN

Going Deeper: The t, Chi-Square and F Distributions

Almost every test and interval you'll run compares a sample number to one of these curves. Is a mean off target? That's t. Did the spread grow? That's chi-square. Do two processes have different spreads? That's F, and F also runs a nova and regression. The curve is the yardstick. Use the wrong one, and a real problem looks like noise, or noise looks like a crisis.

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

In short

Degrees of freedom count the independent information, usually n minus one. T is the bell curve with heavier tails: use it for means when sigma is estimated. Chi-square is never negative and skewed right: use it for one variance, and look up both tails separately. F is a ratio of two variances with two degrees of freedom: larger on top, alpha over two for two-sided. And chi-square and F need normal data!

Check yourself

Marcus compares slats from two suppliers, sixteen each. Supplier one's s is point one two millimeters, and supplier two's is point oh eight. For fifteen and fifteen degrees of freedom, the two and a half percent upper F cutoff is two point eight six. Which is right? A: F is one point five, below two point eight six, fail to reject. B: F is two point two five, below two point eight six, fail to reject. C: F is point four four, below the cutoff, fail to reject. Or D: F is two point two five, above one, so the spreads differ.

Show the answer

The answer is B. Square first: point one two squared is point oh one four four, and point oh eight squared is point oh oh six four. Divide, larger on top: two point two five. That's below two point eight six, so we fail to reject. A forgot to square. C put the smaller variance on top. And D compared to one instead of the cutoff. Not every F above one is a difference! That's the t, chi-square and F distributions. Questions? Ask Q-Bot right here in the Academy. And one for the road: why does the t distribution never panic about outliers? It has heavy tails, and it planned for them!

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, Marcus's desk, Tuesday morning. Three tables are taped to the wall: t, chi-square and F. Dwayne squints at them. Three tables? I thought everything in statistics was the bell curve. Marcus grins. The bell curve is the parent! These three are its kids, and each one answers a different question. Pick the wrong one, and you make the wrong call.

Hey there, I'm Q-Bot. Welcome to the Q-Bot Academy. Today we're going deeper: the t, chi-square and F distributions! We'll see where each one comes from, what shape it has, how to read its table and its spreadsheet function, and work three Brindlewood examples. If distributions are new to you, start with the video on the normal curve and its cousins.

Why the math matters

Why does this math matter? Almost every test and interval you'll run compares a sample number to one of these curves. Is a mean off target? That's t. Did the spread grow? That's chi-square. Do two processes have different spreads? That's F, and F also runs a nova and regression. The curve is the yardstick. Use the wrong one, and a real problem looks like noise, or noise looks like a crisis.

Degrees of freedom and the family tree

First, one idea all three share: degrees of freedom. Say five slats have an average of nineteen point oh. Four of them can be anything, but once you know those four, the fifth is fixed. So the deviations from the sample average have five minus one, four degrees of freedom. That's why s divides by n minus one. Degrees of freedom tell the curve how much information you really have.

Here's the family tree. All three assume samples from a normal process, with independent readings. Chi-square comes from the sample variance: n minus one, times s squared, over sigma squared. T comes from an average measured in estimated standard errors. And F is a ratio of two sample variances. And as degrees of freedom grow, t turns into the normal curve.

The t distribution

Now, the t distribution. The statistic is t equals x bar minus mu, over s divided by the square root of n, with n minus one degrees of freedom. It looks like the bell curve, symmetric around zero, but with heavier tails, because s itself wobbles from sample to sample. With five degrees of freedom, its variance is about one point six seven instead of one.

Those heavy tails move the cutoffs. For ninety five percent, two-sided, z is one point nine six. T with four degrees of freedom is two point seven seven six. With nine, two point two six two. With twenty nine, two point oh four five. Get them from a t table, or the spreadsheet's two-tailed t inverse. Bad: use one point nine six with six readings. Good: use t with five degrees of freedom: two point five seven one. With five degrees of freedom, about eleven percent of t values land beyond one point nine six, not five!

Worked example 1: a new powder lot

Worked example one. A new powder lot arrives, and Priya measures six Harbor chair frames: three point one oh, three point one eight, two point nine eight, three point two two, three point oh five and three point one five mils. The target is three point oh. The average is three point one one three, and s is point oh eight eight five. The standard error is s over the square root of six: point oh three six one. So t is point one one three, over point oh three six one: about three point one four, with five degrees of freedom.

How unusual is three point one four? The cutoff for five degrees of freedom is two point five seven one, and three point one four is past it. The spreadsheet's two-tailed t distribution gives a p-value of about point oh two six. If the lot truly averaged three point oh, a t this far out would happen less than three percent of the time. So we reject that: the new lot runs thick. The trap: score it on the z curve, and the p-value shrinks to about point oh oh two. More than ten times too confident! Ellen calls the powder supplier.

The chi-square distribution

Next, chi-square. The statistic is n minus one, times s squared, over sigma squared, with n minus one degrees of freedom. It's a sum of squared standardized deviations, so it can never be negative. It's skewed to the right, its mean equals its degrees of freedom, and its variance is twice that. With many degrees of freedom, it looks almost normal.

Because it isn't symmetric, the two cutoffs aren't mirror images. For nine degrees of freedom, the middle ninety five percent runs from two point seven oh to nineteen point oh two three. The right-tail five percent cutoff is sixteen point nine one nine. Tables list right-tail areas; in a spreadsheet, it's the right-tail chi-square inverse. Bad: take the upper cutoff and flip its sign for the lower one. Good: look up both tails separately. Chi-square also runs goodness-of-fit and contingency tables, which have their own video.

Worked example 2: slat spread after a blade change

Worked example two. Slat mill two has run a standard deviation of about point one millimeters since Lou's feed-roller fix. Then the blade is changed, and Priya measures ten slats: s is point one four. Did the spread grow? That's a one-sided question. Chi-square is nine, times point one four squared, over point one squared: nine times point oh one nine six, over point oh one, equals seventeen point six four.

Seventeen point six four is past the right-tail cutoff of sixteen point nine one nine, and the right-tailed chi-square distribution gives a p-value of about point oh four. That's evidence the spread grew after the blade change. Lou finds the new blade seated a hair off and reseats it. One warning: this test leans hard on normal data, so check a normal probability plot first. With doubts, use a test that doesn't need normality, like Levene's test.

The F distribution

Now, the F distribution. The statistic is one sample variance over another: s one squared over s two squared. It has two degrees of freedom: the numerator's, n one minus one, then the denominator's, n two minus one. Order matters! F is never negative, skewed right, and centers near one when the two true variances are equal. It's also the engine of a nova and regression.

F tables print one page per alpha: numerator degrees of freedom across the top, denominator down the side. For nine and nine, the five percent upper cutoff is three point one seven nine, and the two and a half percent cutoff is four point oh two six. In a spreadsheet, it's the right-tail F inverse. The lower cutoff is one over the upper one with the degrees of freedom swapped: one over four point oh two six, about point two four eight. The easy way: put the larger variance on top, and compare to the upper cutoff at alpha over two.

Worked example 3: two shifts

Worked example three. Rosa asks: does second shift coat less evenly? Marcus measures ten frames from each shift. First shift's s is point oh nine mils, and second shift's is point one five. Larger on top: F is point one five squared, over point oh nine squared, about two point seven eight, with nine and nine degrees of freedom. Two-sided at alpha point oh five, the cutoff is four point oh two six. Two point seven eight is below it, with a p-value of about point one four: fail to reject. With only ten each, a standard deviation two thirds bigger still isn't shown!

So Marcus measures twenty five frames from each shift, with both control charts stable. The standard deviations come out the same. Now there are twenty four and twenty four degrees of freedom, and the cutoff drops to two point two six nine. F of two point seven eight is past it, with a p-value of about point oh one five. Now the difference is shown! Small samples only catch big differences in spread.

How they connect

Here's how the three connect, a great check on your table reading. Square the z cutoff, one point nine six, and you get three point eight four: the five percent chi-square cutoff with one degree of freedom. Square the t cutoff with nine degrees of freedom, two point two six two, and you get five point one two: the five percent F cutoff with one and nine.

Reading the result

So how do you read the result and decide? First, name the question: a mean, one spread, or two spreads. That picks the curve. Second, count the degrees of freedom. Third, decide one tail or two, and set alpha before you look. Then compare the statistic to the cutoff, or the p-value to alpha. Past the cutoff: the data show a difference. Inside: fail to reject, which isn't proof of no difference. And a p-value is the chance of data this extreme if the null were true, not the chance the null is true.

Common mistakes

Common mistakes. One: wrong degrees of freedom, n instead of n minus one, or F's two swapped. Two: the wrong tail column, like a one-tailed t for a two-sided question, or alpha instead of alpha over two for a two-sided F. Three: flipping chi-square's upper cutoff to get the lower one. Four: smaller variance on top, then comparing to the upper cutoff. Five: forgetting to square standard deviations before dividing.

And misreadings. A chi-square or F result on skewed data can be the shape talking, not the spread, because these two are far less forgiving of non-normal data than t is. A big F from an unstable process means nothing: special causes first. And a significant difference isn't automatically a big one, so check the actual standard deviations against the spec.

Recap

Let's recap. Degrees of freedom count the independent information, usually n minus one. T is the bell curve with heavier tails: use it for means when sigma is estimated. Chi-square is never negative and skewed right: use it for one variance, and look up both tails separately. F is a ratio of two variances with two degrees of freedom: larger on top, alpha over two for two-sided. And chi-square and F need normal data!

Check yourself

Now, check yourself. Marcus compares slats from two suppliers, sixteen each. Supplier one's s is point one two millimeters, and supplier two's is point oh eight. For fifteen and fifteen degrees of freedom, the two and a half percent upper F cutoff is two point eight six. Which is right? A: F is one point five, below two point eight six, fail to reject. B: F is two point two five, below two point eight six, fail to reject. C: F is point four four, below the cutoff, fail to reject. Or D: F is two point two five, above one, so the spreads differ. Pause the video if you want to think about it.

The answer is B. Square first: point one two squared is point oh one four four, and point oh eight squared is point oh oh six four. Divide, larger on top: two point two five. That's below two point eight six, so we fail to reject. A forgot to square. C put the smaller variance on top. And D compared to one instead of the cutoff. Not every F above one is a difference!

That's the t, chi-square and F distributions. Questions? Ask Q-Bot right here in the Academy. And one for the road: why does the t distribution never panic about outliers? It has heavy tails, and it planned for them!

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.