Lecture 10 Inference from Small Samples
1. Introduction to Student's t distribution and its properties
This section introduces the Student's t distribution, its historical origins, its relationship to the standard normal distribution, and the critical role of degrees of freedom in defining its shape.
1.1 Historical Development and Definition
The Student's t distribution was derived by W. S. Gosset in 1908, who published his work under the pseudonym "Student." It is a probability distribution that arises in the context of estimating a population mean when the sample size is small and the population standard deviation is unknown. The statistic associated with this distribution is commonly denoted as t.
The t statistic is defined as: t=s/nxˉ−μ where:
- xˉ is the sample mean.
- μ is the population mean.
- s is the sample standard deviation.
- n is the sample size.
Both xˉ and s are considered random variables, contributing to the nature of the t distribution.
1.2 Properties and Comparison with the Standard Normal Distribution
The Student's t distribution shares similarities with the standard normal (z) distribution but possesses distinct characteristics, particularly concerning its tails and dependence on sample size.
1.2.1 Shape and Tails
- Similarity to z: The t-distribution is conceptually similar to the standard normal distribution, which has a mean of 0 and a variance of 1.
- Heavier Tails: A key difference is that the t-distribution exhibits "heavier tails" compared to the z-distribution. This means that extreme values are more likely to occur in the t-distribution than in the standard normal distribution. This phenomenon arises because the t statistic incorporates two random quantities (xˉ and s), whereas the z statistic typically involves only the sample mean (xˉ) when the population standard deviation (σ) is known.
- Approximation to Normal Distribution: As the sample size (n) becomes large, the t-distribution increasingly approximates the standard normal distribution. This is because as n increases, the sample standard deviation (s) becomes a more reliable estimate of the population standard deviation (σ).
Note: The concept of "heavier tails" implies that the probability density function (PDF) of the t-distribution assigns more probability mass to values far from the mean than the PDF of the standard normal distribution.
1.3 The Role of Degrees of Freedom
The shape of the t-distribution is not fixed but is determined by a parameter known as the degrees of freedom (df).
-
Definition of Degrees of Freedom: For the sample variance s2, the degrees of freedom are calculated as n−1, where n is the sample size. The formula for sample variance is: s2=n−1∑i=1n(xi−xˉ)2 The term n−1 arises because when calculating the sample variance, one degree of freedom is "lost" due to the constraint that the sum of deviations from the sample mean must be zero (∑i=1n(xi−xˉ)=0).
-
Impact on Distribution Shape: The number of degrees of freedom directly influences the spread and tail heaviness of the t-distribution.
- Lower df: With fewer degrees of freedom (i.e., smaller sample sizes), the t-distribution has fatter tails and is more spread out.
- Higher df: As the degrees of freedom increase, the t-distribution becomes narrower and its tails become lighter, converging towards the standard normal distribution.
Example: For a sample of size n=10, the degrees of freedom are df=10−1=9. This specific value of df dictates the precise shape of the t-distribution used for inference.
1.3.1 Finding Critical Values
Critical values of the t-distribution are determined by both the degrees of freedom and the desired significance level (or tail probability).
Example 10.2: Find a value of t such that only 1% of all values of t will be smaller, for a sample of size n=10 from a normal distribution.
Solution: The degrees of freedom are df=n−1=10−1=9. We are looking for a t-value with an area of 0.01 to its left. Due to the symmetry of the t-distribution around 0, this value is the negative of the t-value that has 0.01 area to its right. Using a t-table or statistical software for df=9 and a tail probability of 0.01, we find the critical value to be approximately −2.821. Thus, t0.01=−2.821 8.
1.4 Assumptions for Using the Student's t Distribution
To make reliable inferences using critical values from the Student's t distribution, certain assumptions about the sample and population must be met:
- Random Sampling: The sample must be randomly selected from the population.
- Normality of Population: The population from which the sample is drawn must be normally distributed.
Important: The validity of inferences drawn using the t-distribution hinges on these assumptions. If the population is not normally distributed and the sample size is small, the t-distribution may not be an appropriate tool. However, the t-distribution is robust to moderate violations of the normality assumption, especially as the sample size increases, due to the Central Limit Theorem's influence.
1.5 Student's t Distribution vs. Standard Normal Distribution (z) in Practice
The choice between using the t-distribution and the standard normal (z) distribution for inference depends on sample size, population distribution, and knowledge of the population standard deviation.
| Scenario | Population Distribution | Sample Size (n) | Population Std. Dev. (σ) | Relevant Statistic | Distribution Used |
|---|---|---|---|---|---|
| Small sample, unknown σ | Normal | <30 | Unknown | t=s/nxˉ−μ | t-distribution with n−1 degrees of freedom |
| Small sample, known σ | Normal | <30 | Known | z=σ/nxˉ−μ | Standard normal distribution (z) |
| Large sample, unknown σ | Unknown | ≥30 | Unknown | z≈s/nxˉ−μ | Standard normal distribution (z) (due to CLT) |
| Large sample, known σ | Normal | ≥30 | Known | z=σ/nxˉ−μ | Standard normal distribution (z) |
| Any sample size, known σ | Normal | Any | Known | z=σ/nxˉ−μ | Standard normal distribution (z) |
Tip: When the sample size is small (n<30) and the population standard deviation (σ) is unknown, the t-distribution is the appropriate choice for inference about the population mean, provided the population itself is approximately normally distributed. For larger sample sizes (n≥30), the Central Limit Theorem allows us to use the z-distribution even if σ is unknown and estimated by s, as s becomes a good approximation of σ.
2. Small-sample inferences for a single population mean
This section details the methodology for conducting hypothesis tests and constructing confidence intervals for a population mean (μ) when dealing with small sample sizes (n<30).
2.1 Hypothesis testing for a single population mean with small samples
When the population standard deviation (σ) is unknown and the sample size is small (n<30), inference about the population mean μ is typically performed using the Student's t-distribution.
2.1.1 Assumptions for small-sample hypothesis testing
A critical assumption for small-sample hypothesis testing concerning a population mean is that the sample is randomly selected from a normally distributed population.
2.1.2 Steps for a small-sample hypothesis test
The process for conducting a small-sample hypothesis test for μ involves the following steps:
- Null Hypothesis (H0): State the null hypothesis in the form H0:μ=μ0, where μ0 is the hypothesized population mean.
- Alternative Hypothesis (Ha): State the alternative hypothesis. This can be one-tailed or two-tailed 12:
- One-tailed: Ha:μ>μ0 or Ha:μ<μ0.
- Two-tailed: Ha:μ=μ0.
- Test Statistic: Calculate the test statistic using the formula:
t=s/nxˉ−μ0
where:
- xˉ is the sample mean.
- μ0 is the hypothesized population mean.
- s is the sample standard deviation.
- n is the sample size. The test statistic follows a t-distribution with n−1 degrees of freedom.
- Rejection Region: Determine the rejection region based on the alternative hypothesis and the chosen significance level (α) 13.
- One-tailed (upper tail): Reject H0 if t>tα.
- One-tailed (lower tail): Reject H0 if t<−tα.
- Two-tailed: Reject H0 if t>tα/2 or t<−tα/2. The critical values (tα and tα/2) are found using the t-distribution table, which is based on n−1 degrees of freedom.
Tip: The p-value approach can also be used. The p-value is the probability of observing a test statistic as extreme as, or more extreme than, the one calculated, assuming the null hypothesis is true. Reject H0 if the p-value is less than α 23.
2.1.3 Example: Testing diamond weight
A new process for producing synthetic diamonds is profitable only if the average weight is greater than 0.5 karat. A sample of six diamonds yielded weights of.46,.61,.52,.48,.57, and.54 karat. Using a 5% significance level, do these measurements provide sufficient evidence that the average weight exceeds 0.5 karat? Assume the diamond weights follow a normal distribution 17.
- Hypotheses:
- H0:μ=0.5
- Ha:μ>0.5
- Sample Statistics:
- Sample size, n=6
- Sample mean, xˉ=0.53 karat
- Sample standard deviation, s=0.0559 karat
- Test Statistic: t=0.0559/60.53−0.5≈1.32 The degrees of freedom are df=n−1=6−1=5 18 19.
- Rejection Region: For a one-tailed test with α=0.05 and df=5, the critical value t0.05 is 2.015 We reject H0 if t>2.01521.
- Conclusion: The calculated test statistic (t=1.32) does not fall in the rejection region (1.32≯2.015). Therefore, we fail to reject H0. There is not sufficient evidence to indicate that the mean diamond weight exceeds 0.5 karat 22.
2.1.4 Example: Testing paint coverage
A paint manufacturer claims that a gallon covers 400 square feet. A sample of 10 gallons yielded actual coverages (in square feet): 310, 311, 412, 368, 447, 376, 303, 410, 365, 350. Do these data indicate that the average coverage differs from 400 square feet? Find the p-value. Assume coverage follows a normal distribution 24 25.
- Hypotheses:
- H0:μ=400
- Ha:μ=400
- Sample Statistics:
- Sample size, n=10
- Sample mean, xˉ=364.2 square feet
- Sample standard deviation, s=45.75 square feet
- Test Statistic: t=45.75/10364.2−400≈−2.45 The degrees of freedom are df=n−1=10−1=9 26.
- P-value: For a two-tailed test, the p-value is P(t≤−2.45)+P(t≥2.45). Using a t-distribution table with df=9, the value t=2.45 falls between t0.025=2.262 and t0.010=2.821. Thus, the right-tail area P(t≥2.45) is between 0.01 and 0.025. The p-value is therefore between 2×0.01=0.02 and 2×0.025=0.05 27 28.
- Conclusion: If α=0.05, H0 is rejected because the p-value is less than 0.05. There is sufficient evidence to indicate that the average coverage differs from 400 square feet.
2.2 Small-sample confidence intervals for a single population mean
A confidence interval provides a range of plausible values for the population mean μ when the sample size is small and the population standard deviation σ is unknown.
2.2.1 Construction of a small-sample confidence interval
The formula for a (1−α)100% confidence interval for μ when σ is unknown and the population is normally distributed is:
xˉ±tα/2(ns)
where:
- xˉ is the sample mean.
- s is the sample standard deviation.
- n is the sample size.
- tα/2 is the critical value from the t-distribution with n−1 degrees of freedom, corresponding to an upper-tail probability of α/2. The term s/n is the estimated standard error of the mean 16.
Important: The critical value tα/2 is found using the t-distribution table with n−1 degrees of freedom 14.
2.2.2 Example: Confidence interval for paint coverage
Using the data from Example 10.4 (paint coverage), find a 95% confidence interval for the true average coverage of the paint 29.
- Sample Statistics:
- Sample size, n=10
- Sample mean, xˉ=364.2 square feet
- Sample standard deviation, s=45.75 square feet
- Confidence Level: 95%, so α=0.05.
- Critical Value: For a 95% confidence interval with n=10 (df=9), tα/2=t0.025=2.262 20.
- Confidence Interval Calculation: 364.2±2.262(1045.75) 364.2±2.262(14.47) 364.2±32.77 The interval is (364.2−32.77,364.2+32.77), which is (331.43,396.97) square feet.
Note: The text states the interval is 330.6 to 399.8, which is slightly different. This might be due to rounding in the intermediate steps or a slightly different value used for s. Assuming the provided example solution's calculation:
The average area covered by 1 gallon of this paint lies in the interval 330.6 to 399.8 square feet.
Increasing the sample size generally leads to a more precise interval estimate (a shorter interval) 30.
3. Small-sample inferences for the difference between two population means (independent samples)
This section details statistical methods for comparing the means of two independent populations when working with small sample sizes, assuming equal population variances, and covers hypothesis testing and confidence interval construction.
3.1 Assumptions for small-sample inferences
For small-sample inferences regarding the difference between two population means from independent samples, the following assumptions are critical:
- Normality: The populations from which the samples are drawn are normally distributed.
- Independence: The samples are randomly and independently selected.
- Equal Variances: The variances of the two populations, denoted as σ12 and σ22, are equal.
3.2 Hypothesis testing for the difference between two means
When comparing two independent population means, μ1 and μ2, with small samples and assuming equal variances, a t-test is employed.
3.2.1 Null and alternative hypotheses
The general form of the hypotheses is:
- Null Hypothesis (H0): (μ1−μ2)=D0
- D0 represents a specific hypothesized difference between the population means. Commonly, D0=0 is used to test for equality of means.
- Alternative Hypothesis (Ha): This can be one-tailed or two-tailed.
- One-tailed test: Ha:(μ1−μ2)>D0 or Ha:(μ1−μ2)<D0.
- Two-tailed test: Ha:(μ1−μ2)=D0 35.
3.2.2 Test statistic
The test statistic used is a t-statistic, calculated as follows 36: t=sp2(n11+n21)(xˉ1−xˉ2)−D0 where:
- xˉ1 and xˉ2 are the sample means for the two independent samples.
- D0 is the hypothesized difference between population means specified in the null hypothesis.
- n1 and n2 are the sizes of the two independent samples.
- sp2 is the pooled estimate of the common population variance, calculated as:
sp2=n1+n2−2(n1−1)s12+(n2−1)s22
- s12 and s22 are the sample variances for the two independent samples.
The pooled variance, sp2, serves as an unbiased estimator of the common population variance σ2 under the assumption of equal variances. The test statistic follows a Student’s t-distribution with n1+n2−2 degrees of freedom (df) 33 34.
3.2.3 Rejection region and decision
The decision to reject or fail to reject the null hypothesis depends on the calculated test statistic and a predetermined significance level (α).
-
Critical values: Critical values for the t-distribution, denoted as tα for one-tailed tests and tα/2 for two-tailed tests, are obtained from t-tables using the degrees of freedom (n1+n2−2) 38.
-
Rejection criteria:
- One-tailed test: Reject H0 if t>tα (for Ha:(μ1−μ2)>D0) or if t<−tα (for Ha:(μ1−μ2)<D0).
- Two-tailed test: Reject H0 if t>tα/2 or t<−tα/2.
- P-value approach: Reject H0 if the calculated p-value is less than α 37.
Example: In Example 10.5, the calculated t-statistic was 1.65. With α=0.05 and 16 degrees of freedom, the critical value t0.05 for a one-tailed test is 1.746. Since 1.65<1.746, the null hypothesis is not rejected.
3.3 Confidence interval for the difference between two means
A confidence interval provides a range of plausible values for the true difference between two population means, μ1−μ2, based on sample data.
3.3.1 Formula for the confidence interval
A small-sample (1−α)100% confidence interval for (μ1−μ2) for independent samples with equal variances is constructed as follows: (xˉ1−xˉ2)±tα/2sp2(n11+n21) where:
- (xˉ1−xˉ2) is the difference between the sample means.
- tα/2 is the critical value from the t-distribution with n1+n2−2 degrees of freedom for a confidence level of (1−α).
- sp2 is the pooled estimate of the common population variance.
- n1 and n2 are the sample sizes.
Important Note: The interval is centered around the observed difference in sample means. The margin of error is determined by the critical t-value, the pooled standard error, and the sample sizes 39.
3.4 Illustrative example: Online vs. Classroom learning
Example 10.5 demonstrates the application of these small-sample inference procedures to compare the achievement of students in online versus classroom course formats, using final exam scores [40-48]
3.4.1 Problem setup
The objective was to determine if the average grade for students taking the course online is significantly higher than for those attending classroom lecture sessions, using a significance level of α=0.05 42.
- Let μ1 be the mean score for the online group and μ2 for the classroom group.
- The hypotheses were set as H0:μ1=μ2 (or H0:(μ1−μ2)=0) versus Ha:μ1>μ2 (or Ha:(μ1−μ2)>0) 43.
- The sample sizes were n1=9 for the online group and n2=9 for the classroom group.
3.4.2 Assumptions check
The assumptions of normality and equal variances were considered. Stem-and-leaf plots suggested that the normality assumption was not unreasonable. The sample standard deviations (s1≈4.94 and s2≈4.48) were not sufficiently different to doubt the equal variance assumption 44.
3.4.3 Calculation and conclusion
The pooled estimate of the common variance (sp2) was calculated, followed by the test statistic 45 46. sp2≈21.72 t=sp2(n11+n21)(xˉ1−xˉ2)−0≈1.65 The test statistic t=1.65 was compared to the critical value t0.05=1.746 for a one-tailed test with 16 degrees of freedom. Since 1.65<1.746, the null hypothesis was not rejected 47.
The conclusion was that there is insufficient evidence to indicate that the average online course grade is higher than the average classroom course grade at the 5% level of significance 48.
3.5 Determining p-values
The p-value represents the probability of observing a test statistic as extreme as, or more extreme than, the one calculated, assuming the null hypothesis is true.
Example: For Example 10.5, the observed t-statistic was 1.65. The p-value for the one-tailed test is P(t>1.65) with 16 degrees of freedom. By consulting t-tables, it was determined that t0.05=1.746 and t0.01=1.337. Since 1.337<1.65<1.746, the p-value lies between 0.01 and 0.05 Specifically, the p-value is between 0.05 and 0.10. As this p-value is greater than the significance level of 0.05, the result is typically reported as not significant 49 50.
4. Inferences for the difference between two population means when variances are unequal
This section details the procedure for making inferences about the difference between two independent population means when their variances are unequal.
4.1 The Welch-Satterthwaite procedure
When the variances of two independent populations (σ12 and σ22) are not equal, the standard pooled estimator for the common variance is inappropriate. Instead, each population variance must be estimated by its corresponding sample variance (s12 and s22). This leads to an alternative inferential procedure that utilizes an approximate t distribution in repeated sampling.
4.1.1 Test statistic
The familiar test statistic for the difference between two population means is adapted for unequal variances: t=n1s12+n2s22(xˉ1−xˉ2)−(μ1−μ2) where:
- xˉ1 and xˉ2 are the sample means of the two populations.
- μ1 and μ2 are the population means.
- s12 and s22 are the sample variances.
- n1 and n2 are the sample sizes.
4.1.2 Approximating degrees of freedom
A key challenge when variances are unequal and sample sizes are small is determining the appropriate degrees of freedom for the t-distribution. A common method, known as the Welch-Satterthwaite procedure, provides an approximation for the degrees of freedom (ν). The formula for approximating the degrees of freedom is: ν≈n1−1(n1s12)2+n2−1(n2s22)2(n1s12+n2s22)2 The degrees of freedom (ν) for the t-distribution are then taken as the integer part of this calculated value. This approximation ensures that the t-distribution provides a reasonable model for the sampling distribution of the test statistic, even without equal variances.
Note: This procedure is generally recommended when the ratio of the two sample variances (slarge2/ssmall2) is far from 1, indicating a significant difference in population variances. 51.
Example: Suppose we have two independent samples with the following statistics: sample mean 1 = 10, sample variance 1 = 4, sample size 1 = 10; sample mean 2 = 12, sample variance 2 = 9, sample size 2 = 15. We want to test the hypothesis that μ1−μ2=0. First, we calculate the test statistic: t=104+159(10−12)−0=0.4+0.6−2=1−2=−2 Next, we approximate the degrees of freedom: ν≈10−1(104)2+15−1(159)2(104+159)2=90.16+140.36(0.4+0.6)2≈0.0178+0.02571≈0.04351≈22.98 We would use ν=22 degrees of freedom for our t-test. 53.
Common mistakes to avoid
- Review all topics thoroughly before exams
- Pay attention to formulas and key definitions
- Practice with examples provided in each section
- Don't memorize without understanding the underlying concepts
© 2026 Maeve. All rights reserved. This content is protected by copyright.