The t-test: are two means different?

Five people on a new drug had blood pressure 6 mmHg lower, on average, than five people on a placebo. Is that the drug, or did we just happen to pick people that way? A t-test answers with one number. All data on this page is made up to explain statistics. It is not a basis for any medical decision.

Short answer. A t-test divides the difference between means by "how much that difference wobbles by chance" (the standard error). The result is t. Then it asks how hard it would be to get a t that big by chance alone (the p-value). There are three kinds: one-sample (one group against a reference value), independent two-sample (two separate groups) and paired (the same people before and after).

Drag a dot left or right, or pick a point and type its value. The three sliders change the whole data set. "Mean difference" moves group B as a whole. "Standard deviation" stretches or squeezes both groups around their own means (the slider shows the square root of the average of the two variances). "People per group" places new points while keeping each group's mean and standard deviation. On top, vertical lines are means, faint bands are mean ± standard deviation, and the orange arrow is the mean difference. Below is the t distribution. The blue line is the current t, the orange area in both tails is the p-value, and the purple dashed lines are the two-sided 5% cutoffs. The numbers use Welch's method (section 8).

Definitions

The text below uses a blood pressure example. These are the textbook definitions. x̄₁ and x̄₂ are the sample means of the two groups (mean₁ and mean₂ in the text), s₁ and s₂ are the sample standard deviations (dividing by n − 1), and n₁ and n₂ are the sample sizes. The t distribution with ν degrees of freedom is written tν.

one-sample t statistic
The difference between the sample mean x̄ and a reference value μ₀, divided by the standard error s/√n. If the population is normal and its mean is μ₀, t follows tn−1.

t=x¯−μ0s/n

independent two-sample t statistic, Welch's method
The difference between the means of two independent samples, divided by a standard error that uses each group's own variance. If both populations are normal with the same mean, t approximately follows a t distribution with ν degrees of freedom (Welch's formula under degrees of freedom below).

t=x¯1−x¯2s12n1+s22n2

pooled variance, Student's t statistic
Assuming the two populations have the same variance, the pooled variance sp2 is the average of the two sample variances weighted by their degrees of freedom. If both populations are normal with the same variance and the same mean, the t below follows tn1+n2−2.

sp2=(n1−1)s12+(n2−1)s22n1+n2−2,t=x¯1−x¯2sp1n1+1n2

paired t statistic
For n pairs, take the difference dᵢ in each pair. The mean d̄ is divided by the standard error built from the sample standard deviation of the differences, sd. It is the one-sample t statistic of the differences with reference value 0. If the differences are normal with population mean 0, t follows tn−1.

t=d¯sd/n

degrees of freedom
The number ν that sets the shape of a t distribution. It is n − 1 for the one-sample and paired t (for paired data, n is the number of pairs) and n₁ + n₂ − 2 for Student's t. Welch's method approximates it with the formula below (the Welch–Satterthwaite formula), and it can be a decimal.

ν=(s12n1+s22n2)2(s12/n1)2n1−1+(s22/n2)2n2−1

1. t is signal ÷ noise

Even people on the same drug have different blood pressures. So the mean of a group depends on who you happened to pick. Even if the drug did nothing, the two group means would almost never come out exactly equal. A difference of 6 does not tell you on its own whether the drug did it.

So a t-test compares the difference (the signal) with "how big a difference chance alone tends to make" (the noise). The size of the noise is called the standard error, and the ratio of the two is t.

t=x¯1−x¯2s12n1+s22n2

x̄₁ and x̄₂ are the two group means (written mean₁ and mean₂ in the text below), s₁ and s₂ are the two standard deviations (the sample standard deviation, dividing by n − 1, see descriptive statistics), and n₁ and n₂ are the numbers of people. The √(…) part at the bottom is the standard error of the difference. Section 3 builds this shape step by step.

A t close to 0 means the difference is buried in the noise. A big t (positive or negative) means a difference that chance alone rarely produces. "How rarely" written as a probability is the p-value: if the two means were really equal, the chance of getting an |t| this big or bigger. In the curve under the experiment, the orange area in both tails is the p-value. If the p-value is below a cutoff chosen in advance (often 0.05), you drop the idea that the two means are equal. Hypothesis testing and p-values covers this way of thinking in detail.

The formula shows three ways to make t bigger. These are the three sliders.

What you changetWhy
Bigger mean differencegrows in proportion to the differencethe signal grows
Smaller spread inside the groups (standard deviation)grows as the standard deviation shrinksthe noise shrinks
More people ngrows with √nthe means wobble less, so the noise shrinks. To double t you need four times the people

2. Work it out by hand

This is the starting state of the experiment above: systolic blood pressure (made-up values, mmHg) for 5 people in placebo group A and 5 people in drug group B.

A placeboB drug
Values131, 132, 133, 135, 139123, 127, 129, 130, 131
Mean670 ÷ 5 = 134640 ÷ 5 = 128
Distance to the mean−3, −2, −1, 1, 5−5, −1, 1, 2, 3
Squared distance9, 4, 1, 1, 25 (sum 40)25, 1, 1, 4, 9 (sum 40)
Variance s² (divide by n − 1 = 4)40 ÷ 4 = 1040 ÷ 4 = 10
  1. Signal: mean difference = 134 − 128 = 6
  2. Wobble of one mean, squared: s₁²/n₁ = 10 ÷ 5 = 2, s₂²/n₂ = 10 ÷ 5 = 2
  3. Noise (standard error of the difference): √(2 + 2) = √4 = 2
  4. t = 6 ÷ 2 = 3
  5. Degrees of freedom (section 4): with Welch's formula, (2 + 2)² ÷ (2² ÷ 4 + 2² ÷ 4) = 16 ÷ 2 = 8. The two groups have the same variance and size, so this equals n₁ + n₂ − 2 = 8.
  6. p-value: the area beyond ±3 under the t distribution with 8 degrees of freedom = 0.0171. If the two means were really equal, an |t| this big or bigger would come up less than 2 times in 100.
  7. 95% confidence interval: the two-sided 5% cutoff for 8 degrees of freedom is 2.306. 6 ± 2.306 × 2 = 6 ± 4.61, so 1.39 to 10.61 mmHg.
  8. Effect size (section 9): d = 6 ÷ √10 = 1.90.

The same work as formulas:

x¯1=6705=134,x¯2=6405=128,s12=s22=404=10

t=134−128105+105=64=62=3

ν=(2+2)2224+224=162=8

p=P(|T|≥3)=0.0171,T~t8

6±t0.025,8×2=6±2.306×2≈6±4.61=[1.39, 10.61]

d=610≈1.90

Try this. ① The starting state is the hand calculation above: t = 3.00, 8 degrees of freedom, p = 0.0171, confidence interval 1.39 to 10.61. ② Move the "Mean difference" slider to 12: t = 6.00, p = 0.0003. Twice the signal, twice the t. ③ From the start, lower "Standard deviation" to 1.6 and t = 5.93. Raise it to 6.3 and t = 1.51, p = 0.1705. ④ From the start, raise "People per group" to 20. The means and standard deviations stay the same, but t = 6.00 with 38 degrees of freedom. Four times the people gave twice the t. Lower n to 2 and t = 1.90, p = 0.1982. ⑤ "Wide spread" keeps the means and makes the spread three times bigger: t = 1.00, p = 0.3466, and the confidence interval −7.84 to 19.84 contains 0. ⑥ "No difference" takes 20 people from one single group (mean 130, standard deviation 8) and splits them in two. The mean difference is still 2.3 and t = 0.71. With no real difference, t is still not 0.

3. How the formula is built

Let's build t = (mean₁ − mean₂) ÷ √(s₁²/n₁ + s₂²/n₂) one step at a time, with the hand example data. Each time you press "Next", one piece is added to the formula on top (the orange piece is the new one), the picture changes by that much, and the reason appears below.

Written only as formulas, the steps above are:

x¯1−x¯2

SE(x¯)=sn

SE(x¯1−x¯2)2=s12n1+s22n2

SE(x¯1−x¯2)=s12n1+s22n2

t=x¯1−x¯2SE(x¯1−x¯2)

p=P(|T|≥|t|),T~tν

  1. Signal: mean₁ − mean₂. 134 − 128 = 6. That number alone does not tell you if it is big or small. You need a yardstick.
  2. How much one mean wobbles: s ÷ √n. A single value is spread around the mean by about the standard deviation s (3.16 here), but the mean of 5 people wobbles only about 3.16 ÷ √5 = 1.41. When you average several values, their wobbles partly cancel. Samples and sampling distributions explains why it is √n.
  3. How much the difference wobbles: add the variances s₁²/n₁ + s₂²/n₂. If the two groups are different people (independent), the two means wobble separately. Then the wobble of their difference is what you get by adding the variances (wobble squared), not the standard deviations. 2 + 2 = 4. In the picture, the area of each square is a variance. This page does not prove why independent variances add.
  4. Square root: √(s₁²/n₁ + s₂²/n₂). This undoes the squaring and brings the unit back to mmHg. √4 = 2. This is the standard error of the difference (the noise). It is smaller than simply adding the two standard errors, 1.41 + 1.41 = 2.83, because it is rare for both groups to wobble far in the same unlucky direction at once.
  5. Signal ÷ noise: t = (mean₁ − mean₂) ÷ √(…). 6 ÷ 2 = 3. The difference is 3 standard errors away from 0. The unit cancels out in the division, so t has no unit.
  6. Compare with the t distribution. We do not know the true spread σ, so we used s from the sample instead. s wobbles too, so we compare t with the t distribution, which has thicker tails than the normal distribution (section 4). The area beyond ±3 is 0.0171 under the t distribution with 8 degrees of freedom, but 0.0027 under the normal distribution. Using the normal distribution would make p about six times too small.

The method that treats the two spreads as equal (Student's t-test) does not use s₁² and s₂² separately. It uses one variance that pools both (section 8). When the two groups have the same number of people, both methods give the same t, and only the degrees of freedom can differ.

4. The t distribution and degrees of freedom

Look again at the last step of section 3. To get the standard error we did not know the true spread σ (the standard deviation of the whole population), so we used s, measured from the sample. But s also changes from sample to sample. With few people, s sometimes comes out small by chance, and then t comes out bigger than it should. So when the values are bell-shaped and the two means are equal, t follows a distribution with thicker tails, where big values come up more often than under the normal distribution (for Welch's method, approximately). This is the t distribution.

Its shape is set by one number, the degrees of freedom: "how many independent pieces of information are left for estimating the spread". You have n values, but you used them once to compute the mean. The distances to the mean always add up to 0, so once you know n − 1 of them, the last one is fixed. That is why one group has n − 1, and two groups with a pooled variance have n₁ + n₂ − 2. Welch's method estimates the degrees of freedom from the two variances and sizes, so it can be a decimal like 4.1. With more degrees of freedom, s gets closer to σ and the t distribution hugs the normal distribution.

Change the degrees of freedom with the slider or the number box. The black curve is the t distribution and the gray dashed curve is the normal distribution. The orange areas in both tails are 5% of the t distribution (2.5% each), and the orange lines are their edges (the cutoff t*). If a cutoff falls outside the picture, it is written at the edge with an arrow. The purple dashed lines at ±1.96 are the 5% cutoffs of the normal distribution.

Try this. ① At the starting 3 degrees of freedom, the two-sided 5% cutoff is 3.182, and the chance of a value beyond ±1.96 is 14.5%. Under the normal distribution that would be 5%. ② With 1 degree of freedom the cutoff is 12.706, outside the picture. The chance beyond ±1.96 is 30.0%, and beyond ±3 it is 20.48%. ③ Raise the degrees of freedom to 8 (the hand example), 30 and 100. The cutoff shrinks to 2.306, 2.042 and 1.984, moving toward 1.960, and the curve settles onto the dashed normal curve. Even at 100, the chance beyond ±3 is 0.34%, a little more than the normal distribution's 0.27%.

Degrees of freedom12581030100∞ (normal)
Two-sided 5% cutoff t*12.7064.3032.5712.3062.2282.0421.9841.960

These numbers are not copied from a printed table. The experiment on this page computes them. It gets areas under the t distribution from the regularized incomplete beta function (the continued fraction in DLMF §8.17). Compared with Python's scipy.stats.t, the relative difference is below 10⁻¹¹. The t distribution became widely known through a 1908 paper in Biometrika, "The Probable Error of a Mean", which William Sealy Gosset published under the name "Student". That is why it is also called Student's t distribution.

5. Reading p-values, one-sided and two-sided tests

A two-sided test asks whether there is a difference in either direction. It adds up both tails of the curve. This is the usual choice. A one-sided test is only for when you fixed the direction, such as "the drug group is lower", before looking at the data. It looks at one tail, so if the direction is right, p is half the two-sided value. For the hand example that is half of 0.0171, or 0.0085. Picking the direction after seeing the data quietly turns a "5% cutoff" into 10%.

p-values are often misread.

Wrong readingRight reading
p = 0.017, so there is a 1.7% chance the two means are equalp is the chance of a t this big or bigger, computed assuming the two means are equal. It is not the chance that this assumption is true
p = 0.35, so there is no differenceYou only failed to find one. With few people or a wide spread you can miss a difference that is really there (type I and II errors and power). A wide confidence interval that contains 0 is closer to "we don't know"
The smaller p is, the bigger the differenceWith many people, even a tiny difference gives a small p. Look at the size of the difference separately, with the effect size and confidence interval (section 9)
p < 0.05, so the result mattersIt only means "hard to explain by chance alone". Whether the difference is big enough to be useful is a judgment for that field
There is a 95% chance the true value is inside the 95% confidence interval 1.39 to 10.61It means that if you build intervals this way many times, about 95 in 100 of them cover the true value. Any single interval either covers it or does not (confidence intervals)

6. The three t-tests: which one when

KindQuestionExample (made up)tDegrees of freedom
One-sampleIs the mean of one group different from a fixed reference value?Is the mean pH of 12 cell culture samples different from 7.4?(mean − reference) ÷ (s ÷ √n)n − 1
Independent two-sampleAre the means of two groups of different people different?Blood pressure in a drug group and a placebo group (sections 1 to 3)(mean₁ − mean₂) ÷ √(s₁²/n₁ + s₂²/n₂)Welch's formula (can be a decimal). The equal-variance method uses n₁ + n₂ − 2
PairedAre two values measured on the same person (or a matched pair) different?Blood pressure of the same 10 people before and after a drug (section 7)Take the difference d for each pair, then a one-sample t: mean(d) ÷ (s_d ÷ √n)number of pairs − 1

Choosing is simple. If you measured the same people twice or measured matched pairs, use paired. If the groups are different people, use independent two-sample. If you compare against one reference value, use one-sample. A paired t-test is really "a one-sample t-test on the differences, with reference value 0".

7. The paired t-test: the same people before and after

We measured the blood pressure of the same 10 people before and after a drug (made-up values). Their baseline blood pressure varies a lot, from 122 to 160. If you treat "before" and "after" as two groups, all of that person-to-person variation becomes noise, and the average change of 5 gets buried. Subtract within each person and the baseline cancels out, leaving only the change. The changes are steady, from −2 to −8.

Drag dots up and down, or pick a person and type numbers. On the left, each person's before and after are joined by a line, and the side bars show each group's mean ± standard deviation. On the right are the differences (after − before): the orange line is their mean and the faint band is ± standard deviation. "Shuffle the pairs" mixes the "after" values among the people, as if the record of who is who were lost. The shuffle uses a fixed seed, so after "Original pairs" it shuffles in the same order again.

Try this. ① At the start, the two-group test misses the difference with t = −0.93, p = 0.3665, but the paired test gives t = −8.66, p < 0.0001. Both see the same mean difference of −5.0. What differs is the noise: the standard error is 5.40 as two groups and 0.58 as pairs. ② Press "Shuffle the pairs" once and the paired test drops to t = −0.80, p = 0.4437, because the standard deviation of the differences grew from 1.83 to 19.74. The two-group test does not change, because it never looked at the pairs. ③ With the original pairs, drag just one person's "after" value up. The differences stop being steady, and the paired t shrinks fast.

A paired test only works if the pairs are matched correctly. Also, a before and after comparison alone cannot tell whether the change came from the drug, from time passing, or from the tendency of people who measured high the first time to measure less high the next time (regression to the mean). That is why studies add a control group that does not get the drug and assign people at random (randomization and control groups). Designs that measure the same people many times are covered in repeated measures and crossover designs.

8. Assumptions, and what happens when they break

For the p-value of a t-test to be right, a few things are needed.

AssumptionMeaningWhen it breaks
IndependenceOne person's value does not affect another's. No person is counted twiceYou think you have more information than you do, so p tends to come out too small. Use a paired test for matched data
Roughly bell-shapedNo heavy skew and no outliers in each group. With many people, the mean gets close to bell-shaped by the central limit theorem, so this matters less (normal distribution)With few people and skewed values, the p-value is hard to trust. A single outlier can swing the result
SpreadWelch's method allows the two groups to have different spreads. The equal-variance method (Student's) assumes they are the sameWhen both the spreads and the group sizes differ, the equal-variance p-value can be badly wrong (experiment below)
Standard errortDegrees of freedomTwo-sided p
Welch
Equal variances (Student)

Choose data with the buttons on top. The picture works like the first experiment, and the purple dashed lines are medians (the middle value when you line the values up by size). The table shows the same data computed with the two methods. The second line below is a "no real difference" simulation: it draws two bell-shaped groups 2,000 times, with the same sizes and standard deviations as the current data but equal means, and counts how often p < 0.05 comes out. With no real difference, this should be close to 5%. More than that means the method finds differences that are not there too often. With 2,000 draws, a wobble of about 1 percentage point either way is just chance. "Skewed data" is the number of days until recovery (made up).

Try this. ① With the "Hand example" both methods agree (t = 3.00, 8 degrees of freedom, p = 0.0171), because the two groups have the same size and variance. ② "Outlier" changes A's fifth value from 139 to 180. The mean difference grows from 6.0 to 14.2, yet t falls from 3.00 to 1.48 and Welch's p becomes 0.2094. One outlier raised A's standard deviation from 3.16 to 21.18, so the noise grew even more than the signal. The median stays at 133.0. Set the slider back to 139 and you get the hand example. At 220, t = 1.27. ③ "Skewed data" has 10 people per group and a long right tail. The medians are very different, 3.5 days and 8.5 days, but a few big values in the tail pull the means and standard deviations, giving t = −1.39, p = 0.1847. ④ In "Unequal spread", group A has the wider spread and also fewer people (5 against 15). The equal-variance method says "different" with t = 2.49, p = 0.0227, while Welch gives t = 1.46, 4.1 degrees of freedom, p = 0.2154. In the no-difference simulation, p < 0.05 came out 5.5% of the time with Welch and 25.4% with the equal-variance method. Something that should happen 5% of the time happened about once in four.

The equal-variance method pools the two variances into one.

pooled variance sp2=(n1−1)s12+(n2−1)s22n1+n2−2

t=x¯1−x¯2sp1n1+1n2,with n1+n2−2 degrees of freedom

In ④, the bigger group B (small spread) dominates the pooled variance. So the wide spread of the small group A barely enters the noise, the standard error comes out too small (4.07 instead of Welch's 6.93), and t is inflated. Welch's method uses each group's own variance and estimates the degrees of freedom with the formula below, which lowers them accordingly.

degrees of freedom=(s12n1+s22n2)2(s12/n1)2n1−1+(s22/n2)2n2−1

When the spreads really are equal, the two methods give almost the same result. So a common recommendation is to skip testing whether the spreads are equal and use Welch from the start (Ruxton 2006 and Delacre and others 2017, see sources). It is not a rule everyone follows, and habits differ between fields and textbooks. Tools also have different defaults. R's t.test uses Welch by default, while Python scipy's ttest_ind uses the equal-variance method by default, so you pass equal_var=False to get Welch.

For outliers and skewed data, people use tests that compare ranks instead of values (Mann–Whitney U, Wilcoxon), or, for positive data skewed to the right, take the logarithm first and then run a t-test. See nonparametric tests. Simply deleting an outlier is not the answer. First check whether it was a measuring mistake, and if you leave it out, report that you did and why.

9. Reporting results: effect size and confidence interval

Do not report just a p-value. Also report how big the difference is (the effect size) and how precise that estimate is (the confidence interval).

Cohen's d is the mean difference divided by the pooled standard deviation: "how many standard deviations apart are the two means".

d=x¯1−x¯2sp

For the hand example, d = 6 ÷ √10 = 1.90. The equal-variance t and d are linked by t = d × √(n₁n₂ ÷ (n₁ + n₂)): 1.90 × √(25 ÷ 10) ≈ 3.00. With more people t grows, but d stays the same. In the first experiment, raising n to 20 still gives d = 1.90. So use d for "how different" and t and p for "can chance explain it". Whether a d is big or small depends on the field, so compare it with other studies in the same field.

A confidence interval is an estimate of "the difference is probably around this range". The hand example's 1.39 to 10.61 does not contain 0. With the same Welch method, that is the same statement as two-sided p < 0.05. It also shows the difference could be as small as 1.4 mmHg or as big as 10.6. With 5 people per group, the range is wide.

An example sentence for the made-up result: "Systolic blood pressure in the drug group was on average 6.0 mmHg lower than in the placebo group (5 per group, 95% confidence interval 1.4 to 10.6, Welch t = 3.00, 8 degrees of freedom, two-sided p = 0.017, d = 1.90)."

10. Three or more groups

If you compare three drugs (A, B, C) by running a t-test for every pair (A–B, A–C, B–C), you become more likely to get p < 0.05 somewhere by chance, even with no real difference. Each test has a 5% chance, but if you treat the three as independent, the chance that at least one of them hits is 1 − 0.95³ ≈ 14.3%. So you first ask "is any mean different?" once with analysis of variance (ANOVA), then find which pairs differ with multiple comparison methods that adjust the cutoff. With exactly two groups, the F of an analysis of variance equals the square of the equal-variance t.

11. Key properties

PropertyIn plain words
t has no unitIt is a mean difference (mmHg) divided by a standard error (mmHg), so the unit cancels. Write the data in another unit and t and p stay the same
t grows with √nSame difference and spread with four times the people gives twice the t. The effect size d stays the same
Fewer degrees of freedom, bigger cutoff2.306 at 8, 2.042 at 30, 1.960 at ∞. With few people you need a bigger t to call it a difference
A paired design cancels person-to-person variationThe same change produces much less noise when the pairs are matched. Lose the pairs and you lose that power
With equal group sizes, Welch and Student give the same tOnly the degrees of freedom differ. The results split apart when both group sizes and spreads differ

Where it is used

# Python (scipy). The numbers are this page's made-up data
from scipy import stats
a = [131, 132, 133, 135, 139]           # A placebo
b = [123, 127, 129, 130, 131]           # B drug
stats.ttest_ind(a, b, equal_var=False)  # Welch: t = 3.0, p ≈ 0.0171
stats.ttest_ind(a, b)                   # default is the equal-variance method (equal_var=True)
before = [128, 152, 141, 135, 160, 122, 147, 138, 155, 131]
after = [125, 145, 137, 129, 155, 120, 139, 133, 151, 125]
stats.ttest_rel(after, before)          # paired: t ≈ −8.66, p ≈ 0.0000117
stats.ttest_1samp(a, 130)               # one-sample: compare with the reference value 130
# R: t.test(a, b) uses Welch by default, t.test(after, before, paired = TRUE) is paired

Frequently asked questions

When do I use a t-test?

When you compare two means of measured numbers (blood pressure, height, cell counts), or compare one mean with a fixed reference value. Two separate groups of people: the independent two-sample test. The same people measured twice: the paired test. One group against a reference value: the one-sample test. For three or more groups use analysis of variance, and for proportions such as yes or no use a chi-square test.

If p is below 0.05, is the difference certain?

No. The p-value is the chance of getting a t this big or bigger if the two means were really equal. It is not the chance that a difference exists, and it is not the size of the difference. To judge how big the difference is, look at the effect size and the confidence interval as well.

Should I use Welch's t-test or Student's t-test?

A common recommendation is to use Welch unless you are sure the two groups have the same spread. When the spreads really are equal the two give almost the same result, and when the spreads and the group sizes both differ, the p-value from Student's method can be badly wrong. In R, t.test uses Welch by default. In scipy, ttest_ind needs equal_var=False to use Welch.

How many people do I need for a t-test?

There is no fixed number. With fewer people you rely more on the values being roughly bell-shaped, and you are more likely to miss a difference that is really there. The number of people you need is worked out in advance from the size of the difference you want to find and the spread (sample size calculation).

With three groups, can I just run three t-tests?

Then you are more likely to get p < 0.05 somewhere by chance, even with no real difference. With three tests it is about 14% if you treat them as independent. First ask once with analysis of variance, then find which pairs differ with a multiple comparison method that adjusts the cutoff.

Words

Plain words used hereTextbook term
signal ÷ noiset statistic
noise, how much a mean (or difference) wobbles by chancestandard error (SE)
the idea that the two means are equalnull hypothesis (H₀)
chance of a t this big by luck alonep-value
cutoff chosen in advance (0.05)significance level (α)
cutoff, edgecritical value, t*
pieces of information left for estimating the spreaddegrees of freedom (df, ν)
one group against a reference valueone-sample t-test
two separate groupsindependent two-sample t-test
same people before and after, matched pairspaired t-test, paired samples
method that allows different spreadsWelch's t-test. The degrees of freedom formula is Welch–Satterthwaite
method that treats the spreads as equalStudent's t-test, pooled variance
the two groups have the same spreadequal variances, homogeneity of variance
both directions / one directiontwo-sided (two-tailed) / one-sided (one-tailed) test
effect size dCohen's d, standardized mean difference
estimated range of the differenceconfidence interval
middle value when lined up by sizemedian
tests that compare ranksnonparametric tests: Mann–Whitney U, Wilcoxon
finding a difference that is not theretype I error, false positive
people who measured high the first time measure less high the next timeregression to the mean

Sources

← Type I and type II errors, and statistical powerAnalysis of variance (ANOVA) →