Hypothesis Testing for One and Two Population Means
Foundations of Hypothesis Testing for Means
Transition from Proportions to Means:
Statistical inference shifts focus from categorical parameters to quantitative parameters.
Parameter of Interest: The population mean is denoted by (pronounced "mew"), contrasting with the population proportion .
Sample Statistic: The sample mean is denoted by (or ), calculated as , replacing the sample proportion .
Typical Inferential Questions: Instead of categorical proportions (such as "What percentage of the city smokes?"), mean inference addresses continuous measures (such as "What is the average GPA?" or "What is the average household income?").
The Four-Step Hypothesis Testing Framework:
The core decision engine remains unchanged across all hypothesis tests:
Step 1: State Hypotheses: Establish the null hypothesis () and alternative hypothesis ().
Step 2: Check Assumptions and Calculate Test Statistic: Validate data collection standards and compute the standardized yardstick ( or ).
Step 3: Determine the P-Value: Compute the probability, assuming is true, of obtaining data at least as extreme as the observed sample.
Step 4: State the Decision and Conclusion: Compare the P-value against the significance level (); reject if the P-value is less than or equal to , and fail to reject if the P-value is greater than . Never declare that the null hypothesis is "accepted".
Formulating Hypotheses for a Single Mean:
The Null Hypothesis (): Pins the parameter to a specific null value: . It always contains an exact equality sign ().
The Alternative Hypothesis (): Established strictly prior to data collection based entirely on the research question. The data must never be used to choose the direction of the alternative hypothesis.
Lower-tail (Left-sided):
Two-tailed (Two-sided):
Upper-tail (Right-sided):

The One-Sample Decision Fork: z-Test vs. t-Test
The Central Criterion ( Known vs. Unknown):
The choice of test statistic hinges entirely on whether the true population standard deviation () is known or whether it must be estimated from sample data using the sample standard deviation ().
The Population Standard Deviation Known Fork (-Test):
When is known, the sampling distribution of the sample mean follows a Normal model.
Standard Error (Yardstick):
Test Statistic Formula:
Practical Applicability: Extremely rare in real-world contexts, occasionally occurring in industrial quality control settings with extensive long-run process histories.
Critical values () are derived directly from the standard Normal model via
invNorm.
The Population Standard Deviation Unknown Fork (-Test):
When is unknown, it must be estimated using the sample standard deviation .
Estimated Standard Error:
Test Statistic Formula:
Degrees of Freedom: Governed by Student's -distribution with degrees of freedom:
Practical Applicability: The universal standard for empirical data where population parameters are unknown.
Student's t-Distribution and Degrees of Freedom
Origin and Theoretical Need for a New Curve:
Substituting the sample statistic in place of the parameter introduces extra random sampling variability into the denominator of the test statistic.
Because wobbles from sample to sample, particularly in small samples, the test statistic exhibits more dispersion than predicted by the standard Normal distribution.
Historical Development: Formulated in 1908 by William Sealy Gosset, a chemist and statistician conducting quality control at the Guinness Brewery in Dublin. Gosset published the distribution under the pen name "Student" due to proprietary restrictions imposed by his employer.
Properties of the -Distribution:
Symmetry and Center: Like the standard Normal distribution, Student's -distribution is symmetric, bell-shaped (mound-shaped), and centered at zero ().
Heavier / Fatter Tails: The -distribution possesses fatter tails than the standard Normal curve, allocating more probability area far from zero. This reflects the greater likelihood of obtaining extreme test statistics when estimating with .
Degrees of Freedom (): Student's is not a single distribution but an entire family of continuous probability distributions indexed by degrees of freedom ().
Asymptotic Convergence: As the sample size increases (, ), the estimate stabilizes and approaches . Consequently, the -distribution converges to the standard Normal distribution. In practice, when , the difference between the -distribution and the standard Normal distribution becomes negligible.

Assumptions and the Sample-Size Ladder
Sampling Honesty Assumptions (Step 0):
Independence Assumption: Individual data observations must be independent of one another. The measurement of one subject must provide no information regarding the value of another subject.
Randomization Condition: The data must originate from a representative random sample (ideally a Simple Random Sample, or SRS) or a properly randomized comparative experiment. Without randomization, inferential procedures lack validity.
10% Condition: When sampling without replacement from a finite population, the sample size must not exceed of the total population () to prevent compromising independence.
The Normality Requirement and the Nearly Normal Condition:
Because population distributions cannot be directly observed, the population shape is evaluated through the sample.
Nearly Normal Condition: The sample data must come from a population distribution that is unimodal and reasonably symmetric.
Diagnostic Tools: Assessed by inspecting a histogram, stem-and-leaf display, or Normal probability plot (Q-Q plot) of the sample. On a Normal probability plot, data following a straight linear pattern indicate consistency with a Normal distribution.
The Sample-Size Ladder for the -Test:
Small Samples (): The strictest threshold. The data must closely adhere to a Normal model without visible skewness, gaps, or outliers. The presence of any outlier or notable skewness entirely invalidates the -test.
Moderate Samples (): The -procedures perform reliably provided the sample distribution is unimodal and reasonably symmetric, without extreme outliers.
Large Samples ( to ): The Central Limit Theorem ensures that the sampling distribution of the sample mean is approximately Normal regardless of underlying population shape, rendering the -method robust against non-Normality unless the data exhibit severe skewness or extreme outliers.
Computational Procedures: TI-84 and R
TI-84 Graphing Calculator Commands:
Hypothesis Testing for One Mean:
When is known:
STATTESTS1: Z-Test. Input: , , , , and the direction of .When is unknown:
STATTESTS2: T-Test. Input: , , , , and the direction of .Output: Standardized test statistic ( or ) and the P-value.
Calculating Critical Values:
For standard Normal:
2ndVARS(DISTR)3: invNorm(area).For Student's :
2ndVARS(DISTR)4: invT(area, df), where .Left-Tail Probability Entry Rule: The calculator command requires the cumulative area to the left of the critical value:
Left-tailed test:
Right-tailed test:
Two-tailed test: (yielding , mirrored symmetrically to )
R Statistical Computing Syntax:
Standardizing from Summary Statistics:
Two-sided -test:
2 * pnorm((x_bar - mu_0) / (sigma / sqrt(n)))One-sided -test (left tail):
pt((x_bar - mu_0) / (s / sqrt(n)), df = n - 1)Direct Raw Data Input:
Execute:
t.test(x, mu = mu_0, alternative = "less")Parameter options for
alternativeinclude"less","greater", or"two.sided".P-Value Doubling Rule: One-tailed tests use the direct tail area; two-tailed tests require doubling the tail probability ().
Worked Examples: One-Sample Inference
Example 1: Disposable Cup Usage (-Test):
Context: The average college student nationally uses annually. A random sample of students from a large university demonstrates a mean usage of . Historical research provides a known population standard deviation of . Test at whether the mean cup consumption differs from .
Parameter: true mean number of disposable cups used per year by students attending this campus.
Hypotheses:
Condition Verification:
Sampling is random ().
students constitute less than of a large university campus population.
Sample size sits on the top rung of the sample-size ladder (), ensuring the sampling distribution of is comfortably Normal.
Known dictates a one-sample -test.
Mathematical Mechanics:
Standard Error:
Test Statistic:
P-Value Computation:
Critical Value Cutoff:
Decision and Contextual Conclusion:
Because (and lies beyond the lower critical cutoff ), reject .
There is strong statistical evidence to conclude that the mean annual disposable cup usage by students at this university differs from .
Calculator Readout Alert: Calculator outputs often display this result in scientific notation as
5.33E-5, which denotes , not .

Example 2: Commercial Wine Bottling Volume (-Test):
Context: Regulatory standards require wine bottles to contain a mean volume of exactly . A random sample of bottles yielded a sample mean of and a sample standard deviation of . Determine at whether the importer is under-filling bottles.
Parameter: true mean fill volume of all bottles packaged by this importer.
Hypotheses:
Condition Verification:
The bottles represent an independent random sample.
Six bottles represent less than of commercial production.
Sample size occupies the strictest rung of the ladder; a histogram or Normal probability plot must confirm no skewness or outliers. Automated bottling volumes are typically Normal.
Unknown requires estimating spread using , mandating a Student's -test with degrees of freedom:
Mathematical Mechanics:
Standard Error:
Test Statistic:
Critical Value Cutoff:
P-Value Computation:
Decision and Contextual Conclusion:
Because (and , failing to enter the critical region), fail to reject .
The data do not provide statistically significant evidence to conclude that the importer is under-filling wine bottles.
Failing to reject does not establish that the bottles contain exactly ; an undersized sample of cannot prove the null hypothesis.

Comparing Two Population Means: The Difference Model
Parameter and Sampling Distribution of the Difference:
Inference shifts to comparing two separate populations with means and .
Parameter of Interest: The difference between the two population means: .
Sample Statistic: The difference between two independent sample means: .
The Additivity of Variances Principle:
For independent random variables, variances always add, regardless of whether calculating a sum or a difference:
True Standard Deviation (Both Known):
Estimated Standard Error (Both Unknown):
Formulating Two-Sample Hypotheses:
Null Hypothesis (): Posits that the two population means are identical:
Alternative Hypotheses (): Established prior to observation based on the research objective:
Two-sided:
Upper-tail (Right-sided):
Lower-tail (Left-sided):
The Two-Sample Test Statistic Formulas:
Two-Sample -Test ( Known):
Two-Sample -Test ( Unknown): (assuming under that ).
Two-Sample Assumptions and Pre-Analysis Exploration
Exploratory Data Analysis via Side-by-Side Boxplots:
Prior to formal statistical calculations, data must be plotted using side-by-side boxplots sharing a common scale.
Centers: Evaluate differences between group medians.
Spreads: Compare interquartile ranges (box widths) to assess whether variances are comparable.
Outliers: Spot isolated data points plotted beyond the whiskers. Outliers exert substantial leverage on means and standard deviations, potentially distorting inferential outcomes.

Comprehensive Two-Sample Assumption Checklist:
Every assumption must be verified independently for both sample groups.
Within-Group Independence: Observations within Sample 1 must be independent of one another; observations within Sample 2 must be independent of one another.
Randomization Condition: Both groups must originate from independent random samples or participants must be assigned to treatment conditions via a randomized experiment.
10% Condition: Generally omitted in two-sample difference of means analysis, unless evaluating unusually small populations or extremely large sampling fractions.
Nearly Normal Condition: Both groups must be unimodal and reasonably symmetric, verified by evaluating histograms or Normal probability plots for each sample. A violation in either group compromises the test.
Independent Groups Assumption: The groups themselves must be independent of each other (separate subjects, no matching, no overlap). If subjects are matched, paired, or tracked over a pre-test/post-test interval, independent two-sample methods are invalid and paired-sample methodology must be employed.
Unpooled vs. Pooled Two-Sample t-Tests
Unpooled Two-Sample -Test (Welch’s -Test):
Core Assumption: Does not assume population variances are equal ().
Standard Error:
Degrees of Freedom: Calculated using the Welch-Satterthwaite approximation. This value is typically a non-integer containing decimal places.
Practical Standard: Serves as the reliable default setting because it avoids making unverified assumptions regarding population variances.
Pooled Two-Sample -Test:
Core Assumption: Requires assuming equal population variances ().
Pooled Sample Variance (): Combines the sum of squared deviations from both samples weighted by their respective degrees of freedom:
Pooled Standard Error:
Degrees of Freedom: Exactly equals an integer value:
Technology Setting: Controlled on the TI-84 via the prompt
Pooled?: No(Unpooled) orPooled?: Yes(Pooled).
Two-Sample Critical Value Execution:
Critical cutoffs require executing
invT(area, df)using the non-integer degrees of freedom generated by the unpooled software output (for instance, entering17.553rather than rounding to17).Left area inputs for
invT:Right-tailed test:
Left-tailed test:
Two-tailed test:
Worked Examples: Two-Sample Inference
Example 1: Comparative Reading Instruction Methods (One-Sided Unpooled -Test):
Context: A study evaluates whether a new instructional method outperforms the standard reading method for slower learners over a six-month period. Twenty children are randomly assigned to two groups: Group 1 (New Method: , , ) and Group 2 (Standard Method: , , ). Test at whether the new method produces higher mean scores.
Hypotheses:
Assumption Check:
Random sampling and random allocation across instructional methods verified.
Small sample sizes (, ) require checking histograms for each group; test scores typically follow a unimodal, symmetric pattern.
Independent groups verified: distinct, non-overlapping student sets.
Variances are not assumed equal; apply unpooled -test (
Pooled: No).Mathematical Mechanics:
Unpooled Standard Error:
Difference of Means:
Test Statistic:
Software Degrees of Freedom:
P-Value:
Critical Cutoff:
Decision and Conclusion:
Because (and ), fail to reject .
The data do not provide statistically significant evidence at the level to support the claim that the new instructional method improves reading test performance.
Comparison with Pooled Method: If pooled, the test yields , , and , leading to the same substantive decision.

Example 2: Weekly Study Hours of Athletes vs. Non-Athletes (Two-Sided Unpooled -Test):
Context: An institutional study assesses whether student athletes and non-athletes differ in weekly study hours. Sample data: Group 1 (Athletes: , , ) and Group 2 (Non-athletes: , , ). Conduct a two-sided test at .
Hypotheses:
Assumption Check:
Independent random samples collected from both student populations.
Large sample sizes (, ) place both groups on the top rung of the sample-size ladder, ensuring robustness against non-Normality.
Two distinct student cohorts satisfy the independent groups assumption.
Mathematical Mechanics:
Unpooled Standard Error:
Difference of Means:
Test Statistic:
Software Degrees of Freedom:
P-Value:
Critical Cutoff ():
Decision and Conclusion:
Because (and observed falls deep within the rejection region), reject .
There is strong statistical evidence to conclude that the mean weekly study hours differ significantly between student athletes and non-athletes.
Scope of Inference: The test establishes that a significant difference exists; it does not demonstrate causal attribution. Observed sample averages show athletes studied less ( vs. ), but causality cannot be inferred from observational sampling.
Comparison with Pooled Method: If pooled, the test produces , , and , arriving at the same rejection decision.

Conceptual Review and Practice Problems
Problem Set 1 (One-Sample Inference):
Question 1: A food label claims an average content of per box. A random sample of boxes reveals and . Which test should be performed?
A: -test — the SD is known
B: -test with
C: -test with
Correct Answer: B
Rationale: The standard deviation was calculated from the sample, meaning is unknown. This requires a -test with degrees of freedom .
Question 2: A one-sample -test utilizes observations. The degrees of freedom are:
A:
B:
C:
Correct Answer: B
Rationale: Degrees of freedom are defined by .
Question 3: Compared directly to the standard Normal distribution, Student's -distribution has:
A: fatter tails — extreme values are more likely
B: thinner tails — extreme values are less likely
C: a different center
Correct Answer: A
Rationale: Both distributions share the same center (), but estimating with adds variability, spreading out probability into fatter tails.
Question 4: A one-sided left-tailed -test at with has a critical cutoff of . The calculated test statistic is . The proper statistical decision is:
A: reject
B: fail to reject
C: accept
Correct Answer: B
Rationale: The test statistic is greater than , failing to enter the critical rejection region. In hypothesis testing, we never "accept" the null hypothesis.
Problem Set 2 (Two-Sample Inference):
Question 1: Two independent samples yield and without population standard deviations provided. Which inferential test is appropriate to compare means?
A: 2-Sample -test — the 's are known
B: 2-Sample -test — the 's are unknown
C: A one-sample -test on each group
Correct Answer: B
Rationale: When only sample standard deviations and are available, population standard deviations are unknown, requiring a two-sample -test.
Question 2: A two-sample -test conducted with unpooled variances (
Pooled: No) yields degrees of freedom . Why is the degrees of freedom value not an integer?A: The calculator made a rounding error
B: Unpooled df is computed by software — decimals are expected
C: df is always
Correct Answer: B
Rationale: The Welch-Satterthwaite approximation evaluates variance inequality using a complex formula resulting in a non-integer degrees of freedom value.
Question 3: A pooled two-sample -test with sample sizes and has degrees of freedom equal to:
A:
B:
C:
Correct Answer: A
Rationale: When pooling variances, degrees of freedom are defined by the integer formula . (Note that represents the unpooled degrees of freedom for these sample sizes).
Question 4: A graphing calculator returns a P-value of
p = 4.2E-3. The decimal equivalent of this P-value is:A:
B:
C:
Correct Answer: A
Rationale: Scientific notation
4.2E-3represents . The negative exponent requires shifting the decimal point three places to the left.