Two-Sample Inference and Simple Linear Regression Study Guide
Comparing Two Independent Continuous Population Means (Large Samples)
Sampling Distribution of the Difference Between Two Independent Means:
When independent random samples of sizes and are drawn from two distinct continuous random variable distributions with means and and standard deviations and , the difference between their sample means, denoted as , is itself a continuous random variable.
By the Central Limit Theorem (CLT), as long as both sample sizes are sufficiently large ( and ), the sampling distribution of closely follows a normal distribution, regardless of the underlying shapes of the population distributions.
The expected value (mean) of this sampling distribution is the difference between the population parameters:
If and , the expected average difference is:
Variance and Additivity of Variances:
For independent random variables, variances always add—whether taking the sum or the difference between the variables.
The variance of the difference, , is strictly larger than the individual variance of alone or alone:
Given independent sample mean variances , , and :
Variance of difference :
Variance of sum :
Variance of sum :
Standard Error and Estimators:
The theoretical formula for the standard error of the difference between two sample means is:
The sample sizes and do not need to be equal; independent samples can have different sizes.
When the population variances and are unknown, they are estimated using the sample variances and (or sample standard deviations and ):
Worked Example: Ethanol Proportions from Refineries:
Context: A gasoline distributor purchases ethanol-blended gasoline from Refinery 1 (Ref 1) and Refinery 2 (Ref 2). Independent samples yield the following statistics:
Part A: Standard Error Calculation:
Part B: Critical Value:
For a two-sided confidence interval, the area in both tails combined is , leaving in each tail.
The standard normal critical value is:
Part C: 90% Confidence Interval for :
Point estimate:
Margin of error:
Confidence limits:
Comparing Two Independent Continuous Population Means (Small Samples)
Small-Sample Assumptions and Theory:
When sample sizes are small ( or ) and population variances are unknown, inference requires the underlying populations to be approximately normally distributed.
The Student's -distribution is used rather than the standard normal distribution.

Worked Example: Oak vs. Maple Leaf Widths:
Sample Data:
Oak ():
Maple ():
Part A: Descriptive Statistics:
Oak calculations:
Maple calculations:
Part B: Standard Error Calculation:
Unpooled standard error:
Pooled standard error (assuming equal underlying variances):
Part C: Critical Value:
For a two-sided confidence interval using pooled degrees of freedom:
(If using conservative unpooled degrees of freedom: , giving ).
Part D: 95% Confidence Interval for :
Point estimate:
Margin of error (pooled approach):
Pooled interval:
Margin of error (unpooled with approximation):
Interpretation: Because the interval contains zero, there is insufficient evidence to conclude a statistically significant difference in leaf width between oak and maple at the significance level.
Comparing Two Independent Population Proportions (Large Samples)
Sample Statistics and Random Variable Properties:
To compare two population proportions and , the sample proportions and are used, calculated as: where and represent the number of successes in samples of sizes and .
The difference is a continuous random variable whose value fluctuates from sample to sample.
Conditions for Large-Sample Inferences:
Samples must be independently and randomly drawn from their respective populations.
Sample sizes must be large enough to justify normal approximation: each sample must contain a sufficient number of successes and failures: (Some conventions use a threshold of ; under both, large samples satisfy the condition).
When these conditions hold, the standard normal critical value (-value) is used, not the Student's -value.
Standard Error Formula for Proportions:
The theoretical standard error of the difference is:
When population parameters are unknown, sample proportions are substituted for confidence intervals:
Sample sizes and can be completely different.
Separate population variances or sample variances are not needed because the variance of a binomial proportion is determined entirely by the proportion itself: .
Worked Example: Social Security Privatization Opinion:
Context: An economics study surveys retired and working individuals on whether they favor privatizing Social Security:
Retired sample: ,
Working sample: ,
Part A: Critical Value for 96% Confidence:
Total tail area: , so
Finding from the standard normal distribution:
Part B: Sample Proportions:
Part C: Standard Error for Confidence Interval:
Part D: 96% Confidence Interval for :
Difference in proportions:
Margin of error:
Interval limits:
Expressed as percentages: . Since is included, there is no statistically significant difference between retired and working adults at the confidence level.
Comparing Two Dependent Population Means (Paired Sampling)
Structure and Principles of Paired Sampling:
Paired sampling (matched pairs or dependent samples) pairs observations across both conditions (e.g., same subject, matched twins, before/after, or two treatments tested on identical vehicle models).
The analysis is performed directly on the single set of pairwise differences:
The sample mean difference is mathematically identical to the difference between the two individual sample means : The average difference can never differ from the difference of the two individual means.

Worked Example: Regular vs. Intelligent Cruise Control Fuel Efficiency:
Experiment: Seven car/truck models are tested under regular and intelligent cruise control to evaluate miles per gallon (MPG).
Difference defined as .
Pairwise data:
Chevy Malibu:
Ford F150:
Honda Civic:
Toyota Camry:
Nissan Rogue:
Jeep Grand Cherokee:
Hyundai Elantra:
Part A: Mean Difference ():
Part B: Sample Standard Deviation () and Standard Error ( / ):
Squared differences:
Sum of squared deviations:
Sample standard deviation of the differences:
Standard error of the mean difference:
Part C: Critical Value for 99% Confidence:
Degrees of freedom:
For confidence, , so
From Student's -table:
Part D: 99% Confidence Interval for :
Margin of error:
Confidence interval:
Interpretation: Because the confidence interval contains zero, it cannot be concluded with confidence that the intelligent cruise control produces a statistically significant change in fuel mileage.
Foundations of Simple Linear Regression and Least Squares Modeling
The Standard Linear Model Equation:
Population simple linear regression model:
Sample estimated regression equation:
Variable roles: is the independent (explanatory/predictor) variable; is the dependent (response) variable; is the predicted mean value of for a given .
The Error Term (Residual ):
is the random disturbance (error) term.
It represents the variation in not explained by the linear relationship with , including measurement error, omitted variables, and natural variation.
is a random variable, not a constant. It has an expected value of zero () and constant variance .
Least Squares Parameter Estimation Formulas:
The least squares method minimizes the sum of squared residuals: .
Slope ():
Intercept ():
Parameter Properties and Interpretations:
Sample estimates and will almost never equal the true population parameters and exactly, due to sampling error. However, under standard regression assumptions, they are unbiased estimators ( and ).
Meaning of : Indicates no linear relationship between and . The regression line is completely horizontal (), meaning changes in provide no useful linear information for predicting .
Causation caveat: Finding indicates an association, but does not prove cause-and-effect. Confounding variables, reverse causality, or spurious correlation may account for the relationship.
Linear Regression Case Study: Unemployment Rate and GDP Growth

Data Set and Baseline Calculations:
Response variable (): Unemployment Rate (
Explanatory variable (): GDP Growth (
Sample size:
Paired data points : , , , , , , ,
Step-by-Step Parameter Derivation:
Part A: Sample Means:
Sum of Squares:
Part B: Slope () and Intercept ():
Part C: Fitted Regression Equation:
Part D: Residual Table Calculations:
Observation 1 (, ):
Predicted value:
Residual:
Squared residual:
Observation 2 (, ):
Predicted value:
Residual:
Squared residual:
Observation 3 (, ):
Predicted value:
Residual:
Squared residual:
Observation 4 (, ):
Predicted value:
Residual:
Squared residual:
Observation 5 (, ):
Predicted value:
Residual:
Squared residual:
Observation 6 (, ):
Predicted value:
Residual:
Squared residual:
Observation 7 (, ):
Predicted value:
Residual:
Squared residual:
Observation 8 (, ):
Predicted value:
Residual:
Squared residual:
Table Column Sums:
Residual sum:
Sum of Squared Errors ():
Model Predictions and Inverse Applications:
Part E: Prediction for GDP Growth of 2.5%:
Part F: Growth Rate for a 7% Unemployment Rate: of GDP growth
Correlation Analysis and the Coefficient of Determination
Measures of Correlation:
Pearson Product-Moment Correlation Coefficient (): Measures the strength and direction of the linear relationship between two quantitative variables.
Coefficient of Determination ( or ): Measures the proportion of total variation in explained by the linear relationship with .
Properties of the Correlation Coefficient ():
Bounded range:
Sign interpretation:
: Positive linear correlation (higher values of correspond to higher values of ).
: Negative linear correlation (higher values of correspond to lower values of ).
: No linear correlation between and .
Properties and Interpretation of the Coefficient of Determination ():
Bounded range:
Interpretations of specific values:
If : of the total variation in the response variable is explained by the linear regression model with predictor , leaving unexplained.
If : Only of the total variation in is explained by the linear model with ; the remaining is unexplained.
Calculation of for the Unemployment/GDP Data:
Total Sum of Squares ():
Regression Sum of Squares ():
Coefficient of Determination:
Linear correlation coefficient (): (The negative root is selected because the slope is negative).
Inference for the Population Slope Parameter
Residual Standard Deviation ():
The residual standard deviation (standard error of the estimate) represents the estimated standard deviation of the random errors .
Formula:
Underlying Assumptions for Linear Regression Inference (LINE):
L - Linearity: The relationship between and the mean of is linear: .
I - Independence: The error terms are statistically independent of one another.
N - Normality: For any given value of , the random errors are normally distributed.
E - Equal Variance (Homoscedasticity): The error terms have constant variance across all values of .
Standard Error of the Slope ():
Represents the variability of sample slope estimates across repeated sampling from the same population.
Formula:
Behavior:
As decreases (scatter around the line decreases), decreases, yielding a more precise slope estimate.
As the range/spread of values increases ( increases), decreases because is in the denominator.

Worked Example: Inference on Slope for GDP/Unemployment:
Part A: Calculate :
Degrees of freedom:
Part B: Calculate using Table Calculations:
Deviations and squared deviations from :
: ,
: ,
: ,
: ,
: ,
: ,
: ,
: ,
Sum of squared deviations:
Standard error calculation:
Part C: 90% Confidence Interval for :
Critical value: with and ,
Margin of error:
Confidence limits:
Part D: Hypothesis Test ( vs. ):
Test statistic:
Rejection region at : Reject if .
Decision: Since (and the confidence interval does not contain zero), reject .
Conclusion: There is statistically significant evidence at the level of a linear relationship between GDP growth and the unemployment rate.
Confidence Intervals for Mean Response and Prediction Intervals for Individual Response
Conceptual Distinctions:
Mean Response (Confidence Interval for ):
represents the expected (average) value of the response variable for all individuals in the population with explanatory value .
Example: The average unemployment rate across all historical years having GDP growth.
Individual Response (Prediction Interval for ):
represents the single outcome of for one specific future observation with explanatory value .
Example: The specific unemployment rate for a single upcoming year with GDP growth.
Interval Width Comparison:
The prediction interval for an individual response is strictly wider than the confidence interval for the mean response at the same .
Reason: An individual observation incorporates two sources of variation: the uncertainty in estimating the true regression line () PLUS the individual random scatter of that point away from the line (, with variance ).
Two Sources of Estimation Error in the Regression Line:
Slope Error (uncertainty in ): Rotates/tilts the fitted line about the centroid point ().
Level/Intercept Error (uncertainty in or ): Shifts the fitted line vertically up or down parallel to itself.
Visual Effect: The combination produces a hyperbolic confidence band that is narrowest at the sample mean and widens as moves further away from .
Inference Formulas:
Standard error of the mean response:
Standard error of the individual prediction:
Worked Example: Mean and Individual Response at GDP Growth :
Baseline Values:
Point prediction:
Sample parameters: , , ,
Critical value for confidence ():
Deviation component:
Part A: 95% Confidence Interval for the Mean Response:
Standard error:
Margin of error:
Confidence interval:
Interpretation: We are confident that the true mean unemployment rate across all years with a GDP growth rate is between and .
Part B: 95% Prediction Interval for an Individual Response:
Standard error:
Margin of error:
Prediction interval:
Interpretation: We are confident that the unemployment rate for an individual single year with a GDP growth rate will fall between and .