Tutorials › Introduction to Statistics › Conditions for a One-Sample T Test

Tests for Means · Tutorial 652 of 996

Conditions for a One-Sample T Test

Learn to check whether a one-sample t test for a mean is justified, and distinguish the assumptions for an exact reference distribution from those for an approximation.

Intermediate 10 min read

What You'll Learn

  • Identify how random sampling and random assignment relate to inference.
  • Check independence, including the 10% guideline for sampling without replacement.
  • State the population-shape condition for an exact one-sample t reference distribution.
  • Distinguish exact t inference from an approximate use of the t procedure.
  • Explain why calculating a t statistic does not establish that its conditions are met.

Why Conditions Matter

A one-sample t test uses a sample mean to assess a claim about a population mean. Its t statistic can be calculated from a sample mean, a sample standard deviation, and a hypothesized mean. But the calculation alone does not show that the reference t distribution is appropriate. That distribution depends on how the observations were obtained and on the population model.

Checking conditions is therefore part of the statistical argument, not a formality after the arithmetic. In particular, distinguish an exact t reference distribution from an approximate one. Sampling without replacement from a finite population can create dependence; the usual 10% guideline makes that dependence small enough to treat as negligible in many applications, but it does not make the observations exactly independent.

Definition: For a one-sample t test of a population mean, the principal conditions concern the data-generating process (random sampling or an appropriate random assignment), the independence of observations, and the shape of the population distribution. An exact t reference distribution requires independent observations from a normally distributed population. If independence or normality is only approximated, the resulting t reference is approximate, not exact.

What Random Selection or Assignment Supports

A probability-based method of selecting individuals from a population supports inference from the sample to that population. A simple random sample, for example, gives each possible sample of the specified size an equal chance of selection. The method should be described, not merely assumed from the fact that data were collected.

Random assignment answers a different question. In an experiment, randomly assigning units to a condition helps make the assigned groups comparable on average, supporting conclusions about the effect of the assigned condition under the study design. Random assignment is not the same as randomly sampling from a wider population: it does not by itself establish that the study participants represent that population.

For a one-sample mean analysis, identify the population mean the inference is intended to address and explain how the observations relate to it. If the data come from a convenience sample, for instance, the formula for a t statistic remains computable, but the usual probability-based justification for generalizing to a population is missing. Random selection also does not guarantee every other condition: observations can still be dependent, and the population need not be normal.

Independence and the 10% Guideline

The standard one-sample model treats the observations as independent and drawn from the same population. Independence means that knowing one observation does not change the probability distribution of another. It can be doubtful when the same person contributes several measurements, when people are sampled in related groups, or when one observation can influence another. A large sample size does not automatically resolve dependence caused by the design.

Sampling without replacement from a finite population creates dependence: once one unit has been selected, the composition of the remaining pool has changed. When the sample is a small fraction of a much larger population, that effect is often sufficiently small to use the independence model as an approximation. The common 10% guideline says that, for sampling without replacement, the sample size should be no more than 10% of the population size:

$$ n \leq 0.10N $$

Here \(n\) is the sample size and \(N\) is the finite population size. Satisfying this guideline does not turn dependent observations into exactly independent ones. It supports treating the dependence as negligible for an approximate analysis. When observations are sampled independently, rather than without replacement from a finite population, this particular correction is not needed; other sources of dependence still need consideration.

Worked Example: Random Sampling From a Finite Population

A quality team randomly selects 40 packages without replacement from a shipment of 800 packages. The measured fill amounts are intended to inform the mean fill amount in that shipment. Records indicate that fill amounts in the shipment follow an approximately normal distribution. How do the conditions look?

Random selection. The 40 packages are selected randomly from the defined shipment, so the sampling method supports inference about that shipment, subject to the other conditions.

Sampling fraction. The fraction selected is

$$ \frac{n}{N} = \frac{40}{800} = 0.05 = 5\%. $$

Since \(40 \leq 0.10(800)=80\), the sample is no more than 10% of the shipment. Selection without replacement still creates dependence, but the guideline supports treating that dependence as negligible for this analysis. It does not justify calling the observations exactly independent.

Population shape. The stated approximately normal shape supports using a t reference distribution as an approximation, alongside the approximate-independence argument. The conclusion is not that the t reference is exact: exactness would require independent observations from a normal population, which this without-replacement design does not provide.

Population Shape and the Exact t Result

For an exact one-sample t test, the model is that \(X_1,\ldots,X_n\) are independent observations from the same normal population, \(N(\mu,\sigma^2)\), with \(\sigma^2\) the population variance. The sample must have at least two observations so that \(s\) is defined. Under the null hypothesis, the population mean is \(\mu_0\). The test statistic is

$$ T = \frac{\bar{x}-\mu_0}{s/\sqrt{n}}. $$

Under that model and the null hypothesis, \(T\) has a t distribution with \(n-1\) degrees of freedom. The normal-population condition is what permits the exact result for samples of any size; a small sample does not make the condition less important.

The short justification shows why the assumptions matter. If the observations are independent and normal, the standardized sample mean \(Z=\sqrt{n}(\bar{x}-\mu_0)/\sigma\) has a standard normal distribution under the null. The sample variance also has a known distribution under this model: \((n-1)s^2/\sigma^2\) has a chi-square distribution with \(n-1\) degrees of freedom, and it is independent of \(Z\). Substituting these quantities into the statistic gives

$$ T = \frac{\sqrt{n}(\bar{x}-\mu_0)/\sigma} {\sqrt{\left((n-1)s^2/\sigma^2\right)/(n-1)}} = \frac{Z}{\sqrt{W/(n-1)}}, \qquad W=\frac{(n-1)s^2}{\sigma^2}. $$

A standard normal variable divided by the square root of an independent chi-square variable divided by its degrees of freedom has a t distribution. Thus the exact t result follows from the independent normal model; it is not a consequence of the statistic’s algebra alone.

In some settings, a t procedure is used as an approximation when the observations are independent or nearly independent and the sample mean is approximately normal. This is not the exact result above. The quality of that approximation depends on the data-generating distribution and sample size, so there is no universal sample-size cutoff that guarantees it. In particular, a small sample with substantial skewness or an extreme observation may not be well described by the exact normal model, and one should not claim exactness just because software reports a t statistic.

Worked Example: Independent Observations From a Normal Population

Suppose a hypothetical instrument produces 10 independent readings from a normal population. The sample mean is 51.2 units, the sample standard deviation is 4.0 units, and the test concerns \(H_0:\mu=50\) units. Check the conditions and identify the reference distribution under the null.

Data-generating model. The readings are specified to be independent observations from a normal population. This provides both the independence and population-shape conditions for an exact one-sample t reference distribution.

Degrees of freedom. With \(n=10\),

$$ df=n-1=10-1=9. $$

The standard error used in the statistic is

$$ SE=\frac{s}{\sqrt{n}} =\frac{4.0\text{ units}}{\sqrt{10}} \approx 1.265\text{ units}. $$

The observed statistic is

$$ t=\frac{\bar{x}-\mu_0}{s/\sqrt{n}} =\frac{51.2-50}{4.0/\sqrt{10}} \approx 0.949. $$

Under \(H_0\), this statistic is compared with a t distribution with 9 degrees of freedom. This calculation illustrates the conditions and reference model; it does not, by itself, give a conclusion about the hypothesis.

Putting the Conditions Together

A conditions check should connect each claim to the study design or the population model. It is useful to separate whether the data support the intended inference from whether the t reference distribution is exact.

1
State the target.
Identify the population mean and the population to which the conclusion is intended to apply.
2
Describe the selection or assignment.
Say whether units were randomly sampled or randomly assigned, and explain what that mechanism supports. Do not treat the two mechanisms as interchangeable.
3
Assess independence.
Consider repeated measurements, grouping, or other dependence. For sampling without replacement, check whether \(n \leq 0.10N\); if this guideline is used, describe independence as approximate.
4
State the population-shape basis.
For an exact t reference, the model requires independent observations from a normal population. If normality or independence is only approximate, call the t reference approximate.

Worked Example: A Small Convenience Sample With an Extreme Value

A clinic informally asks seven volunteers how many minutes they waited for an appointment. The hypothetical responses are 1, 2, 2, 3, 3, 4, and 20 minutes. The clinic wants to use these responses to test a claim about the mean wait for all patients. What do the conditions indicate?

Selection. The volunteers were not randomly selected from all clinic patients. Therefore, the sampling method does not provide a probability-based reason to generalize their mean to all patients.

Summary calculations. The sample mean is

$$ \bar{x}=\frac{1+2+2+3+3+4+20}{7} =\frac{35}{7}=5\text{ minutes}. $$

The squared deviations from 5 sum to \(16+9+9+4+4+1+225=268\), so

$$ s=\sqrt{\frac{268}{7-1}} =\sqrt{44.667} \approx 6.683\text{ minutes}, \qquad SE=\frac{s}{\sqrt{7}}\approx 2.526\text{ minutes}. $$

These computations are possible, but they do not repair the selection problem. The small sample and the 20-minute response also make the normal-population condition implausible as an exact model for these data. Consequently, a one-sample t statistic could be calculated, but these conditions do not justify an exact t test for the mean wait of all clinic patients.

Why the Distinction Matters

Conditions determine what a test result can reasonably mean. A small p-value from an exact t reference distribution is meaningful only if that reference distribution is justified by the model. If the data are dependent, nonrandomly selected, or inconsistent with the normal model, the calculation may not provide the claimed inference.

Keep the language of the conclusion aligned with the condition check. A random sample can support generalization to its sampling population, but not automatically to other populations. Random assignment can support a causal comparison under its design, but does not establish population representativeness. An approximately independent sample supports an approximate analysis, not an exact one.

Common Mistake

Wrong reasoning: “The sample is less than 10% of the population, so the observations are independent and the t distribution is exact.”

Correction: For sampling without replacement, the 10% guideline says the dependence is often small enough to ignore for an approximate analysis. It does not remove the dependence. An exact t reference requires genuinely independent observations from a normal population. Describe the design accurately and label the inference exact or approximate accordingly.

Likewise, finding a numerical t statistic does not demonstrate that the conditions hold. Check the sampling or assignment mechanism, independence, and population shape before interpreting the result.

Check Your Understanding

For each situation, decide what the condition check supports and explain whether an exact t reference is justified.

  1. A simple random sample of 30 people is drawn without replacement from a population of 500. Calculate the sampling fraction and state what the 10% guideline does and does not establish.
  2. What population model and independence condition are required for an exact one-sample t reference distribution?
  3. A study randomly assigns volunteers to one of two conditions. Explain why this does not, by itself, show that the volunteers are a random sample of the broader population.
  4. Why does a sample size below 10% of a finite population not make observations sampled without replacement exactly independent?
  5. A t statistic has been computed from a small convenience sample with a highly skewed distribution. Why is the arithmetic alone insufficient to justify a one-sample t test?