Discussion 5.1: Z vs. T Distributions, Confidence Intervals, and One-Sample Hypothesis Testing
Overview of Statistical Inference for Population Means
Statistical inference uses sample data to draw conclusions about unknown population parameters.
Core mechanisms covered in this module:
Distinguishing between the standard normal distribution (Z distribution) and Student's t-distribution (T distribution).
Constructing and interpreting confidence intervals for both known population parameters and unknown parameters estimated via sample statistics.
Conducting and interpreting one-sample hypothesis tests for single population means.
Properties of the Z Distribution and T Distribution
The Z Distribution:
Represents the standard normal distribution, possessing a mean of μ=0 and a standard deviation of σ=1.
Role of the Central Limit Theorem (CLT): The threshold of sample size n≥30 relies on the Central Limit Theorem, which establishes that the sampling distribution of the sample mean approaches normality as sample size increases, regardless of the underlying population distribution's shape.
Criteria for application:
Used for confidence intervals and hypothesis tests regarding means when the population is known to follow a normal distribution.
Used when the sample size is large (n≥30) AND the population variance (σ2) or population standard deviation (σ) is known.
The T Distribution:
Structurally represents a "looser" version of the standard normal distribution, characterized by a lower peak at the center and heavier, fatter tails.
The spread and tail thickness depend on degrees of freedom (df), defined as df=n−1.
As sample size n (and consequently degrees of freedom) increases, the T distribution converges toward the standard normal Z distribution.
Criteria for application:
Used for confidence intervals and hypothesis tests about means when the sample size is small (n<30).
Used whenever the population variance (σ2) or population standard deviation (σ) is unknown, regardless of how large the sample size is.
Comparison of critical cutoff values at a 95% confidence level:
For the standard normal Z distribution, the critical values encompassing the central 95% of area are −1.96 and 1.96.
For a T distribution with sample size n=12 (df=11), the critical values expand outward to −2.201 and 2.201 to capture the central 95%, reflecting increased uncertainty due to estimating standard deviation from a sample.
Decision Criteria: Selecting Between Z and T Distributions
Step 1: Assess knowledge of the population dispersion:
Ask: "Do you know the POPULATION standard deviation (σ) or variance (σ2)?"
Step 2: Follow the branch based on the standard deviation:
If NO (population standard deviation/variance is unknown):
Use the T distribution immediately, regardless of sample size.
If YES (population standard deviation/variance is known):
Ask: "Is sample size n≥30?"
If YES (n≥30): Use the Z distribution.
If NO (n<30): Use the T distribution.
Fundamentals of Confidence Intervals
Definition: A confidence interval estimates an unknown population parameter based on an observed sample statistic (also referred to as a point estimator).
Structure of the interval:
Adds and subtracts a margin of error around the point estimate (such as the sample mean xˉ or population mean μ).
The margin of error accounts for sampling variability and quantifies the reality that a single sample estimate will rarely equal the true population parameter exactly.
Confidence Intervals for Known Population Parameters (Z Distribution)
Standard Intervals for Known Population Means and Standard Deviations:
Applied when a population is normally distributed, and both the population mean (μ) and population standard deviation (σ) are known.
Benchmark confidence interval calculations:
90% Confidence Interval: μ±1.65σ
95% Confidence Interval: μ±1.96σ (certain practical sources use ±2σ as a common approximation shortcut)
99% Confidence Interval: μ±2.58σ
Empirical Rule (Normal Distribution Percentages):
Within μ±1σ lies approximately 68.27% of the distribution.
Within μ±2σ lies approximately 95.45% of the distribution.
Within μ±3σ lies approximately 99.73% of the distribution.
Exact or Custom Intervals Formula:
To compute an exact answer or construct an interval for confidence levels other than 90%, 95%, or 99%:
General formula:
μ±Zα/2σ
Margin of error expression:
Margin of Error=Zα/2σ
Variable definitions:
μ = population mean
σ = population standard deviation
Zα/2 = critical value derived from the standard normal (Z) distribution
Spreadsheet Implementation:
Determine Zα/2 using the Excel function NORM.S.INV.
Input formula for probability: (1 - confidence_level) / 2.
Multiply the resulting critical value by σ to determine the margin of error.
Add and subtract this margin of error from μ.
Applied Scenario:
Assume SAT scores follow a normal distribution with a known population mean μ=1100 and a known population standard deviation σ=200.
Objective: Construct a 95% confidence interval around the population mean.
Calculation:
Critical Z value for 95% is Z0.025=1.96.
Margin of Error=1.96×200=392.
Lower limit: 1100−392=708.
Upper limit: 1100+392=1492.
Resulting interval: [708,1492].
Confidence Intervals for Sample Means Using the Z Distribution
Application Criteria:
Sample size is large (n≥30).
Population standard deviation (σ) is known.
Population mean (μ) is unknown and estimated by the sample mean (xˉ).
Mathematical Formulation:
xˉ±Zα/2nσ
Margin of Error Component:
Margin of Error=Zα/2nσ
Component Definitions:
xˉ = sample mean
σ = population standard deviation
n = sample size
Zα/2 = critical cutoff value from the Z distribution
nσ = standard error of the mean
Software Methods:
Method 1: Use NORM.S.INV to derive the critical Z value (or utilize hard-coded values: 1.65 for 90%, 1.96 for 95%, 2.58 for 99%), and multiply by nσ to calculate the margin of error.
Method 2: Calculate the margin of error directly via the Excel function CONFIDENCE.NORM(alpha, standard_dev, size).
Applied Scenario:
A dataset named TestScores contains a sample of n=70 students' performance on a standardized test.
Nationwide population standard deviation is known to be σ=10.
Task: Construct a 98% confidence interval around the sample mean.
Confidence Intervals for Sample Means Using the T Distribution
Application Criteria:
Sample size is small (n<30), OR
Population standard deviation (σ) is unknown (sample standard deviation s is used as the point estimate), regardless of sample size.
Mathematical Formulation:
xˉ±tα/2ns
Degrees of Freedom:
df=n−1
Margin of Error Component:
Margin of Error=tα/2ns
Component Definitions:
xˉ = sample mean
s = sample standard deviation
n = sample size
tα/2 = critical value from the T distribution with df=n−1
df = degrees of freedom
ns = estimated standard error of the mean
Software Methods:
Method 1: Compute the critical t value using T.INV.2T(probability, deg_freedom) where probability equals α, and then compute the margin of error by multiplying by ns.
Method 2: Compute margin of error directly using CONFIDENCE.T(alpha, standard_dev, size) where standard_dev is the sample standard deviation s.
Method 3: Use the Descriptive Statistics tool located in the Excel Analysis Toolpak with the Confidence Level for Mean option selected (requires raw data).
Applied Scenario:
A dataset named TestScores contains a sample of n=70 students' performance on a standardized test.
Population standard deviation is unknown.
Task: Construct a 92% confidence interval around the sample mean.
Setup:
α=1−0.92=0.08
df=70−1=69
Critical value: t0.04,69=T.INV.2T(0.08,69)
Margin of error: CONFIDENCE.T(0.08,s,70)
Interval: xˉ±t0.04,6970s
One-Sample Hypothesis Testing Framework
Definition: A one-sample hypothesis test evaluates whether an assumption, claim, or hypothesized parameter about a single population mean is plausible based on empirical sample data.
Selection of Test Statistic:
One-Sample Z Test: Employed when sample size is large (n≥30) AND the population standard deviation (σ) is known.
One-Sample T Test: Employed when sample size is small (n<30) OR the population standard deviation (σ) is unknown.
One-Sample Z Tests
Application Criteria:
Sample size is large (n≥30) AND population standard deviation (σ) is known.
Test Statistic Formula:
Z=nσxˉ−μ−d
Component Definitions:
xˉ = sample mean
μ = hypothetical population mean specified under the null hypothesis
d = hypothesized difference (typically d=0 in standard tests)
σ = population standard deviation
n = sample size
nσ = standard error of the mean
Software Methods:
Method 1: Calculate the Z test statistic manually and use NORM.S.DIST(z, TRUE) to determine the cumulative lower-tail p-value.
Method 2: Use the Excel function Z.TEST(array, x, [sigma]) to compute the p-value directly from raw sample data (returns the one-tailed upper-tail p-value).
Applied Scenario:
Problem: Test designers intended for test takers nationwide to achieve an average score of 75. Did they achieve this goal or not?
Hypotheses:
Null Hypothesis (H0): The average score is 75H0:μ=75
Alternative Hypothesis (HA): The average score is not 75HA:μ=75
Testing Parameters:
Sample size: n=70 from TestScores dataset
Population standard deviation: σ=10
Significance level: α=0.05
Test type: Two-tailed one-sample Z test
One-Sample T Tests
Application Criteria:
Sample size is small (n<30) OR population standard deviation (σ) is unknown.
Test Statistic Formula:
t=nsxˉ−μ−d
Degrees of Freedom:
df=n−1
Component Definitions:
xˉ = sample mean
μ = hypothetical population mean specified under the null hypothesis
d = hypothesized difference (typically d=0)
s = sample standard deviation
n = sample size
df = degrees of freedom
ns = estimated standard error of the mean
Software Methods:
Method 1: Compute the t test statistic manually and calculate p-values using the Excel function T.DIST (or T.DIST.RT, T.DIST.2T based on tail direction).
Method 2: Use the Excel Analysis Toolpak tool t-Test: Two-Sample Assuming Unequal Variances (requires raw data and a secondary dummy column of zeros/constants to adapt it for a one-sample test).
Applied Scenario:
Problem: A score of 70 is considered passing. Was the nationwide average significantly higher than that?
Hypotheses:
Null Hypothesis (H0): The average score is less than or equal to 70H0:μ≤70
Alternative Hypothesis (HA): The average score is greater than 70HA:μ>70
Testing Parameters:
Sample size: n=70 from TestScores dataset
Population standard deviation: Unknown
Significance level: α=0.05
Test type: Right-tailed one-sample T test with df=69
Reporting and Interpreting Hypothesis Test Results
Standard Interpretation Format:
Every test must be stated in the canonical form:
P = [p-value]. At alpha = [significance level], we [fail to reject / reject] the null hypothesis.
Decision Rules:
If p≥α: Fail to reject the null hypothesis (H0).
If p<α: Reject the null hypothesis (H0).
Strict Academic Phrasing Conventions:
Permitted terminology is restricted solely to "reject" or "fail to reject".
Never use the words "accept," "prove," or "disprove" in reference to a statistical hypothesis.
Applied Practice Exercises
Exercise 1: Interval with Known Population Standard Deviation
Prompt: Calculate a 90% confidence interval around the average exam score in the sample. The population standard deviation (σ) is 10.
Strategy: Since σ is known (and assuming large sample criteria n≥30), use the Z distribution.
Margin of error setup: 1.645×n10.
Exercise 2: Directional One-Sample Test with Known Dispersion
Prompt: Perform a one-sample test based on the following hypotheses, given σ=10 and α=0.01:
Null Hypothesis (H0): Average exam score is greater than or equal to 82H0:μ≥82
Alternative Hypothesis (HA): Average exam score is less than 82HA:μ<82
Strategy: Perform a left-tailed one-sample Z test using σ=10.
Exercise 3: Interval with Unknown Population Standard Deviation
Prompt: Calculate a 95% confidence interval around the average exam score in the sample. Assume the population standard deviation is unknown.
Strategy: Because σ is unknown, use the T distribution with degrees of freedom df=n−1 and sample standard deviation s.
Margin of error setup: t0.025,n−1×ns.
Exercise 4: Test Involving a Hypothesized Difference
Prompt: Perform a one-sample test with α=0.05 assuming population standard deviation is unknown:
Null Hypothesis (H0): Average exam score is at least 5 points higher than 75H0:μ≥75+5
Alternative Hypothesis (HA): Average exam score is less than 5 points higher than 75HA:μ<75+5
Procedural Note: The phrasing "at least 5 points higher" indicates a hypothesized mean difference parameter d=5 relative to base benchmark 75 (equating to a comparison threshold of 80). Use a left-tailed one-sample T test.
Exercise 5: Sample SAT Score Interval Calculation
Prompt: Assume that the average SAT score for a sample of n=50 students was xˉ=1020, and the population standard deviation is σ=200. Calculate a 99% confidence interval around the sample average.
Determination of Distribution: The sample size is large (n=50≥30) and the population standard deviation is known (σ=200), requiring the Z distribution.
Numerical Evaluation:
Sample mean: xˉ=1020
Population standard deviation: σ=200
Sample size: n=50
Confidence level: 0.99, yielding α=0.01
Critical value: Zα/2=Z0.005≈2.576 (or standard shortcut 2.58)
Standard error of the mean:
nσ=50200=7.07107200≈28.284
Margin of error calculation:
Margin of Error=2.576×28.284≈72.86
(Using 2.58: 2.58×28.284≈72.97)