Analyze Phase

t-Tests: One-Sample, Two-Sample and Paired

A t-test is a hypothesis test that compares a mean with a target, or two means with each other, when the population standard deviation is unknown. The one-sample t-test checks a mean against a target, the two-sample t-test compares independent groups and the paired t-test compares two measurements on the same units.

Quick facts

Type
Parametric hypothesis tests for means (continuous Y)
Origin
W. S. Gosset, writing as "Student" (1908); Welch's unequal-variance version (1947)
Formulas
1-sample: t = (x̄ − μ₀) / (s / √n); paired: t = d̄ / (sd / √n)
Used when
Analyze phase, to verify whether an X (group, before/after) shifts the mean of the Y
Non-parametric alternatives
1-sample sign or Wilcoxon test; Mann-Whitney test
Reference
IASSC™ Green Belt Body of Knowledge §3.4.1
Exam relevance
Green Belt (Analyze phase); calculation and test-selection items
t-Tests: One-Sample, Two-Sample and PairedIs the Y continuous?: counts or yes/no outcomes need proportion or chi-square tests instead. One sample against a target?: use the one-sample t-test. Same units measured twice?: use the paired t-test on the differences. Two independent groups?: use the two-sample t-test. Similar variances?: pooled t if yes; Welch's unequal-variance t if not or unsure. Small n and far from normal?: switch to the non-parametric alternative1Is the Y continuous?2One sample against atarget?3Same units measured twice?4Two independent groups?5Similar variances?6Small n and far fromnormal?

At a glance

  1. Is the Y continuous? — counts or yes/no outcomes need proportion or chi-square tests instead
  2. One sample against a target? — use the one-sample t-test
  3. Same units measured twice? — use the paired t-test on the differences
  4. Two independent groups? — use the two-sample t-test
  5. Similar variances? — pooled t if yes; Welch's unequal-variance t if not or unsure
  6. Small n and far from normal? — switch to the non-parametric alternative

When do you use a t-test in DMAIC?

A t-test answers one question: is the difference between means larger than chance alone would explain? In the Analyze phase it turns a suspected cause into a verified one, or rules it out. In Improve and Control it confirms that a change really moved the mean.

There are three forms, chosen by the structure of the data:

  • One-sample t-test: one group against a fixed value, such as a service target or a contract figure.
  • Two-sample t-test: two independent groups, such as two depots, two shifts or two suppliers.
  • Paired t-test: the same units measured twice, such as the same staff before and after a new procedure, or the same items measured by two methods.

All three need a continuous Y. When the Y is a yes/no outcome, use a proportion test; when there are three or more groups, use one-way ANOVA rather than a string of t-tests, which inflates the overall risk of a false alarm.

The t-test is the standard tool for verifying an X that splits a continuous Y into one or two groups.

What are the hypotheses and the t statistic?

The null hypothesis is always "no difference": H₀: μ = μ₀ for one sample, H₀: μ₁ = μ₂ for two samples, H₀: μd = 0 for paired data. The alternative is two-sided (≠) unless the team has a directional question before seeing the data.

  • 1-sample: t = (x̄ − μ₀) / (s / √n), df = n − 1
  • Paired: t = d̄ / (sd / √n), df = n − 1 (d = the difference within each pair)
  • 2-sample pooled: t = (x̄₁ − x̄₂) / (sp × √(1/n₁ + 1/n₂)), df = n₁ + n₂ − 2
  • sp² = [(n₁ − 1)s₁² + (n₂ − 1)s₂²] / (n₁ + n₂ − 2)
  • 2-sample unequal variances (Welch): t = (x̄₁ − x̄₂) / √(s₁²/n₁ + s₂²/n₂), with Welch's approximate df

The pooled form assumes both groups share one variance and averages the two sample variances, weighted by their degrees of freedom. Welch's form keeps them apart and is the safer default when the variances or the sample sizes differ.

Every t statistic has the same shape: a difference divided by its standard error.

How do you calculate a t-test in practice?

Three service teams each tested one suspected cause (two-sided, α = 0.05; critical values from the formula sheet's t table, column 0.025; t rounded half-up to two decimals):

CaseDataCalculationDecision
Kestrel Retail refund time vs. a 5.0-day targetn = 16, x̄ = 5.9, s = 1.6 dayst = 0.9 / (1.6 / 4) = 0.9 / 0.40 = 2.25; df = 15, critical 2.131Reject H₀
Larchfield Logistics loading time, two depotsn = 12 each; 42.0 (s 5.0) vs 37.5 (s 6.0) minsp² = (11 × 25 + 11 × 36) / 22 = 30.5; SE = 5.52 × √(2/12) = 2.25; t = 4.5 / 2.25 = 2.00; df = 22, critical 2.074Do not reject H₀
Harbourside Council, 10 caseworkers before and after a new intake formd̄ = 1.8 min, sd = 2.0 mint = 1.8 / (2.0 / √10) = 1.8 / 0.632 = 2.85; df = 9, critical 2.262Reject H₀

With equal sample sizes, as at Larchfield, the pooled and Welch statistics are identical (t = 2.00); only the degrees of freedom differ (22 vs about 21.3).

Worked through in this order (standard error, t, degrees of freedom, critical value), every t-test takes a few lines of arithmetic.

What are the assumptions of a t-test?

t-tests are popular because they are simple and fairly robust. They still rest on four conditions:

  1. Independent observations. Each value is a separate unit, not repeated readings of the same unit (except the pairing that the paired test models on purpose).
  2. Roughly normal data, or a large enough sample. For small samples, check a normal probability plot; for the paired test, check the differences. With larger samples, often quoted as about 30 per group as a rule of thumb, the central limit theorem makes the mean close to normal.
  3. A stable process. A mean that drifts during data collection has no single value to compare.
  4. Similar variances, for the pooled two-sample test only. Check with an F-test or Levene's test. When in doubt, use Welch's version, which does not need this assumption.

When the data are small and clearly skewed, or contain outliers that are real values, use the non-parametric alternative: the one-sample sign or Wilcoxon test, or the Mann-Whitney test for two groups.

Checking the assumptions takes minutes and protects every conclusion drawn from a t-test.

How do you read a t-test result?

There are three equivalent ways to read the same test at the same α:

  • Critical value. Reject H₀ when |t| exceeds t(α/2, df) for a two-sided test, or t(α, df) for a one-sided test. At Kestrel Retail, 2.25 > 2.131.
  • p-value. Reject H₀ when p < α. Kestrel's p-value is about 0.040; Larchfield's is about 0.058, just above 0.05.
  • Confidence interval. Reject H₀ when the interval excludes the hypothesized value. Kestrel's 95% interval is 5.9 ± 2.131 × 0.40, or 5.05 to 6.75 days (rounded to two decimals), which excludes the 5.0-day target.

The interval is often the most useful output, because it shows the size of the effect. Larchfield's result does not prove that the depots are equal: with 12 loads each, a 4.5-minute gap could not be separated from noise. A larger sample, sized for the difference that matters, may settle it. Equally, a significant result is not automatically important: compare the difference with what matters to the customer or the business.

Report a t-test with the difference, the interval and the p-value, never with "significant" alone.

What are the common mistakes with t-tests?

  • Dividing by s instead of s / √n. The test is about the mean, whose spread is the standard error. At Kestrel Retail, 0.9 / 1.6 gives 0.56 instead of 2.25.
  • Using √(n − 1) instead of √n in the standard error. The n − 1 belongs to the degrees of freedom and to the formula for s, not to the standard error.
  • Running a two-sample test on paired data. Treating Harbourside's before and after times as independent groups lets the caseworker-to-caseworker variation swamp the effect. Pair whenever the same units appear twice.
  • Reading the wrong column of the t table. For a two-sided test at α = 0.05, read the 0.025 column; the 0.05 column is for one-sided tests.
  • Choosing the direction after seeing the data. A one-sided test is legitimate only when the direction was set in advance.
  • Running many t-tests for several groups. Use one-way ANOVA instead.
  • Treating "do not reject" as proof of no difference. It may only mean the sample was too small.

Most t-test errors come from the wrong standard error or the wrong form of the test, so write both down before calculating.

Two-sample t-test vs. paired t-test: what is the difference?

Two-sample t-testPaired t-test
Data structureTwo independent groups of unitsThe same units measured twice, or matched pairs
What is analyzedThe two group meansThe differences within each pair
Standard error√(s₁²/n₁ + s₂²/n₂), or pooledsd / √n, from the differences
Degrees of freedomn₁ + n₂ − 2 (pooled) or Welch's approximationn − 1, where n is the number of pairs
Typical exampleTwo depots, two shifts, two suppliersThe same staff before and after a change

The paired t-test removes the unit-to-unit variation that a two-sample t-test leaves in the error term, so it detects smaller effects when the data really are paired. Using the wrong one is a design error, not a matter of taste.

Exam focus

t-tests are IASSC™ section 3.4.1, in Green Belt scope only. Expect to choose between the one-sample, two-sample and paired forms from a short scenario, to compute t from a mean, s and n, and to compare it with a critical value or read a p-value. The usual traps are dividing by s instead of s / √n, using a two-sample test on paired data and reading the one-tailed column for a two-sided test. Practise in the Analyze phase drill.

Practise this DMAIC phase →

FAQ

When should I use a paired t-test instead of a two-sample t-test?

Use the paired t-test when each value in one sample is linked to one value in the other: the same people, items or locations measured before and after a change, or by two methods. The test works on the differences, which removes the variation between units and makes the comparison more sensitive.

What is the difference between a pooled and a Welch t-test?

The pooled two-sample t-test assumes both groups have the same variance and combines them into one estimate, with n₁ + n₂ − 2 degrees of freedom. Welch's t-test keeps the two variances separate and adjusts the degrees of freedom. Welch's version is safer when the variances or sample sizes differ, and gives the same t when the sample sizes are equal.

Can I use a t-test if my data are not normal?

Often, yes. The t-test is fairly robust, and with larger samples the central limit theorem makes the sample mean close to normal. With small, clearly skewed samples or influential outliers, use a non-parametric alternative such as the Wilcoxon, sign or Mann-Whitney test, or transform the data first.

Why use t instead of z to test a mean?

The z test assumes the population standard deviation is known. In practice it is estimated from the sample, which adds uncertainty, so the t distribution, with heavier tails, is used. As the sample grows, t approaches z: the t table's infinity row equals the z critical values.

What does a p-value of 0.058 mean in a t-test?

It means that, if the true means were equal, a difference at least as large as the one observed would occur about 5.8% of the time by chance. At α = 0.05 the team does not reject H₀, but that is not proof of equality: the sample may be too small to detect a difference that matters.

Sources

Last reviewed

Six Sigma is a registered trademark of Motorola Trademark Holdings, LLC. IASSC™, International Association for Six Sigma Certification™, IASSC Certified Green Belt™ and IASSC Certified Yellow Belt™ are trademarks of the International Association for Six Sigma Certification. ASQ® and its certification names belong to ASQ. Other names may be trademarks of their respective owners. This guide is independent and is not affiliated with, endorsed by or sponsored by IASSC™, PeopleCert, ASQ® or any certifying body. Its practice questions are original and are not taken from any exam.