By the end of this lesson, you should be able to
- Calculate a one-sample t interval and statistic.
- Explain the degrees of freedom in a t procedure.
- Evaluate independence and distribution assumptions.
The textbook’s normal-confidence-interval example gives us the population standard deviation. That is convenient and, outside a classroom exercise, rather suspicious.
In actual studies, the population does not generally hand us its unknown parameter, , with a helpful label. We estimate it from the sample. That extra uncertainty is why the t distribution matters.
Replace unknown sigma with sample information
For a sample of observations with mean and sample standard deviation , the estimated standard error of the mean is
To test a hypothesized population mean , use
For independent observations from a normal population, this statistic follows a Student t distribution with degrees of freedom when the null is true. Compared with the standard normal distribution, the t distribution has heavier tails, especially when is small. As the degrees of freedom increase, it approaches the normal.
A numerical example
Five synthetic readings are 2, 4, 6, 8, and 10. Their mean is 6. Their sample standard deviation is .
The estimated standard error is . Testing yields
with four degrees of freedom.
A two-sided 95% confidence interval is
Using , the interval is , approximately [2.07, 9.93]. It is wide because five observations cannot tell us very precisely where the population mean lies.
Why the design still matters
With small samples, the exact t reference distribution depends on the normal-population model. Outliers, extreme skew, dependence, and selection bias can make the nominal procedure inappropriate.
A larger sample can make a t procedure more robust to moderate nonnormality under appropriate conditions, but it does not turn a systematically biased sample into a representative one.
Reproduce it in R
x <- c(2, 4, 6, 8, 10)
t.test(x, mu = 4)
Read the estimate, interval, test statistic, degrees of freedom, and p-value as parts of one inferential argument. None is a replacement for the question you started with.
Check your understanding
- Why is the t critical value at larger than the corresponding normal critical value?
- How many degrees of freedom does a one-sample t test have with 20 observations?
- Does a t test repair nonresponse bias?
Worked responses
-
The population spread must be estimated from a small sample, adding uncertainty represented by heavier tails.
-
Nineteen.
-
No. An inferential formula does not correct a defective sample-selection mechanism.
Reference: R documentation for t.test.
Why the reference distribution has heavier tails
For independent normal observations, is standard normal. The scaled sample variance has a chi-square distribution with degrees of freedom and is independent of . Their ratio is the t statistic. A small denominator can produce unusually large ratios, accounting for the heavier tails. The independence and exact distribution claims here depend on the normal-population model; they are not consequences of merely computing a sample standard deviation.
The degrees-of-freedom count also has an algebraic explanation. Once the sample mean has been estimated, the centered deviations sum to zero. Specifying of them determines the last. That constraint explains the variance denominator, while the normal model supplies the exact distributional theorem.
A two-sided test and its matching confidence interval invert the same inequality. Reject at level when . Rearranging gives exactly the parameter values outside . Thus zero inclusion and a two-sided test decision agree only when the procedures, assumptions, and confidence levels actually match.
Additional practice with solutions
- A synthetic sample has , mean , and standard deviation . Find the standard error and statistic for .
- With , calculate a 95% interval.
- Would this interval establish that every individual measurement lies in its range?
- Explain why repeated readings on one instrument may not give sixteen independent observations.
Worked additional solutions
- and , with 15 degrees of freedom.
- , approximately . The value 38 lies inside, so the matching two-sided 5% test does not reject it.
- No. The interval concerns the population mean, not individual spread or prediction.
- Serial correlation or shared calibration error can connect readings. Their information content then differs from independent sampling; increasing the reading count alone does not remove shared error.
Keep your place
Mark this lesson complete after you've read it, attempted its exercises, and explained its central idea in your own words.
Progress is not saved unless you choose to mark the lesson complete.
Saved only in this browser's local storage. No required account, server transmission, or analytics. You can reset your saved progress on the course page. Clearing browser data also clears the record.