Comprehensive Study Guide for Statistical Inference, Hypothesis Testing, and Linear Regression
Foundations of Statistical Inference
Core Purpose of Statistical Inference:
Statistical inference is the formal process of drawing valid conclusions about an unknown population parameter based entirely on the evidence provided by a sample of data collected from that population.
It is fundamentally a directional process from sample to population: sample statistics are observed to make statements about population parameters, not the reverse.
Parameters versus Statistics:
Parameter: An unknown, fixed numerical summary of an entire population (e.g., population mean , population proportion ). The central objective of inference is to estimate or test claims about parameters.
Statistic: A numerical value computed directly from sample data (e.g., sample mean , sample proportion ).
Sampling Variability: Each time a new random sample is drawn from a population, the calculated value of the statistic will vary. Because of this natural variability from sample to sample, a sample statistic cannot simply be taken as the exact prediction of the population parameter without accounting for uncertainty.
Standard Error (): A metric that measures the variability of a statistic across repeated samples. It quantifies how much sample statistics are expected to vary from sample to sample and serves as a foundational component in inference formulas.
Uncertainty in Inference: Because data are collected only from a subset (sample) rather than the entire population, statistical conclusions are never guaranteed to be certain or error-free.
Data Types and Associated Parameters and Estimators:
Categorical Data:
Parameter of Interest: Population proportion ().
Point Estimate / Sample Statistic: Sample proportion ().
Confidence Interval Application: Estimates the true population proportion ().
Quantitative Data:
Parameter of Interest: Population mean ().
Point Estimate / Sample Statistic: Sample mean ().
Confidence Interval Application: Estimates the true population mean ().
Confidence Intervals for Population Parameters
Structure of a Confidence Interval:
A confidence interval provides an estimated range of plausible values for an unknown population parameter.
General Formula:
Margin of Error Formula:
Combined Formula:
Point Estimate: The numerical center or midpoint of the confidence interval. It represents the best single-value guess of the population parameter from the collected sample.
For quantitative data, the point estimate is .
For categorical data, the point estimate is .
Because the margin of error is both added to and subtracted from the point estimate, the sample statistic always falls exactly at the midpoint of the calculated confidence interval.
Margin of Error (): The maximum expected distance between the point estimate and the true parameter value at a given confidence level. It determines the total width of the interval (). The point estimate itself is not part of the calculation of the margin of error.
Critical Value: A factor determined strictly by the chosen level of confidence (e.g., standard normal critical value or Student's critical value ).
Standard Error: Accounts for the amount of sampling variability present in the statistic.
Level of Confidence and Unconditional Uncertainty:
The level of confidence () represents the long-run success rate of the method: the probability or likelihood that the resulting confidence interval will capture the true population parameter across repeated sampling.
Common confidence levels and their corresponding probabilities of failing to capture the parameter:
Confidence Level: A chance ( probability) that the interval does not contain the true parameter.
Confidence Level: A chance ( probability) that the interval does not contain the true parameter.
Confidence Level: A chance ( probability) that the interval does not contain the true parameter.
Absence of Guarantee: No confidence interval can guarantee that the true population parameter is included. Confidence intervals are probabilistic estimates; empirical certainty is never possible when relying on sample data.
Factors Influencing Confidence Interval Width and Precision:
Precision: Defined by the width of the interval. Narrower intervals possess higher precision; wider intervals possess lower precision.
Effect of Sample Size ():
Increasing sample size () causes the standard error to decrease ().
A decreased standard error causes the margin of error to decrease.
A decreased margin of error causes the interval to become narrower, increasing precision (benefit).
However, collecting larger samples requires more time, labor, and financial cost (drawback).
Decreasing sample size increases the standard error, increases the margin of error, and widens the interval, decreasing precision.
Effect of Level of Confidence ():
Increasing confidence requires a larger critical value.
An increased critical value causes the margin of error to increase.
An increased margin of error causes the confidence interval to get wider, resulting in less precision (drawback).
However, higher confidence provides a higher likelihood that the calculated interval successfully contains the true parameter (benefit).
Decreasing confidence reduces the critical value, which narrows the interval (increases precision) at the cost of a lower likelihood of capturing the parameter.
Protocol for Achieving Greater Precision:
To make a confidence interval more precise, one must increase the sample size and/or decrease the level of confidence.
Comparative Case Scenarios for Interval Width:
Scenario A: Adjustments to a Baseline Interval:
Baseline: A confidence interval from a sample of size is calculated as .
Drop level of confidence to : The interval gets narrower.
Reduce sample size to : The interval gets wider.
Increase level of confidence to : The interval gets wider.
Increase sample size to : The interval gets narrower.
Scenario B: Varying Confidence Levels with Fixed Sample Proportion ():
: Narrowest interval Lowest confidence ().
: Intermediate width Intermediate confidence ().
: Widest interval Highest confidence ().
Note: All intervals share the identical midpoint of because is constant.
Scenario C: Varying Sample Sizes with Fixed Sample Mean ():
: Narrowest interval () Largest sample size ().
: Intermediate width () Intermediate sample size ().
: Widest interval () Smallest sample size ().
Interpretation and Claim Verification Using Intervals:
Standard Interpretation Template:
For a confidence interval for the population mean of : "We are confident that the population mean falls between and ."
Incorrect interpretations include stating that of the sample means fall in this range, that there is a chance the sample mean is between those values, or that the population mean is exactly or .
Evaluating Claims with Interval for Population Mean :
Claim: Population mean is greater than (): No, because the entire interval is not above (the lower bound is , which is below ).
Claim: Population mean is greater than (): Yes, because the entire interval lies strictly above ().
Claim: Population mean is less than (): No, because the upper bound () exceeds .
Claim: Population mean is less than (): Yes, because the entire interval is strictly below ().
Claim: Population mean could be : Yes, because the value is included inside the interval .
Claim: Population mean could be : No, because the value is completely outside the interval.
Hypothesis Testing and Tests of Significance
Foundational Framework:
A hypothesis test (test of significance) assesses whether sample data provide sufficient evidence to support a specific claim regarding an unknown population parameter. Unlike confidence intervals, hypothesis tests do not provide an estimate of the parameter's magnitude.
The Null Hypothesis ():
Represents the status quo or default assumption of "no effect," "no difference," or equality to a specific benchmark.
Always written using equality (, , or , routinely stated as ).
Assumed to be strictly true at the beginning of every test of significance.
The Alternative Hypothesis ():
Established directly by the research question or claim being investigated.
Written using strict inequalities ().
Hypothesis Notation Rules:
Hypotheses must always be written in terms of population parameters ( or ), never sample statistics ( or ).
Examples of correctly stated hypotheses:
Mean less than : vs. .
Proportion different from : vs. .
Mean greater than : vs. .
Test Directionality and Rejection Regions:
Left-Tailed Test: Used when testing whether a parameter is strictly less than a hypothesized value ().
Right-Tailed Test: Used when testing whether a parameter is strictly greater than a hypothesized value ().
Two-Tailed Test: Used when testing whether a parameter is strictly different from (not equal to) a hypothesized value ().
Rejection Region: The region in the sampling distribution that contains values so extreme that they are highly improbable if the null hypothesis were true.
Distribution of Rejection Area by Tail Type:
Right-tailed test with (): Rejection region encompasses the most extreme of the distribution strictly in the right tail.
Left-tailed test with ( vs. ): Rejection region encompasses the most extreme of the distribution strictly in the left tail.
Two-tailed test with ( vs. ): The total significance level must be split evenly between both tails, placing the most extreme in the lower (left) tail and the most extreme in the upper (right) tail.
Test Metrics and Decision Criteria:
Test Statistic: Measures the distance between the observed sample statistic and the hypothesized null parameter value in units of standard error:
P-value: The probability, computed assuming the null hypothesis is true, of obtaining a test statistic at least as extreme as the one observed.
Level of Significance (): The predetermined threshold representing the probability of committing a Type I error (rejecting when is true). It sets the operational standard for how small the p-value must be to warrant rejecting the null hypothesis.
Decision Rules:
P-value Approach:
If : Reject .
If : Do not reject .
Rejection Region Approach:
If the test statistic falls inside the rejection region: Reject .
If the test statistic falls outside the rejection region: Do not reject .
The Cardinal Rule on Acceptance: A researcher never accepts the null hypothesis. When evidence is insufficient, the only valid conclusion is to "fail to reject" or "do not reject" the null hypothesis.
Verbal Interpretations:
Rejecting : "There is significant evidence to support the alternative hypothesis ()."
Failing to reject : "There is not significant evidence to support the alternative hypothesis ()."
P-value and Significance Decision Scenarios:
, : Since , Reject .
, : Since , Do Not Reject .
, : Since , Reject .
Comprehensive Case Study: Package Delivery Damage Rate:
Study Background: A delivery logistics firm investigates the proportion of deliveries that include a damaged package.
Test Specifications:
Null and Alternative Hypotheses: vs.
Directionality: Left-tailed test (due to the "" sign in )
Assumed Parameter at Test Inception:
Significance Level: (allocating of extreme area entirely into the left tail)
Sample Size:
Sample Proportion:
Standard Error:
Test Statistic:
P-value:
Rejection Region: Values strictly less than

Comparative Decision Analysis:
P-value Comparison: Comparing the p-value () against () shows that . Therefore, the decision is to Do not reject the null hypothesis.
Rejection Region Comparison: Comparing the test statistic () against the critical threshold () shows that , meaning the test statistic lies outside the rejection region within the non-rejection area.

Final Formal Conclusion: There is not significant evidence that the population proportion of deliveries with a damaged package included is less than .
Correlation and Linear Regression Analysis
Variables in Bivariate Analysis:
Requirement: Both variables in correlation and regression analyses must be strictly quantitative. Categorical variables cannot be evaluated using these procedures.
Explanatory Variable (): The independent variable that explains, predicts, or influences changes in the other variable. Plotted on the horizontal x-axis (number line).
Response Variable (): The dependent variable of interest whose values are to be predicted or modeled. Plotted on the vertical y-axis (number line).
Lurking Variable: An unmeasured or omitted variable not included in the study design that nevertheless influences the observed relationship between the explanatory and response variables.
Scatterplot Properties and Association:
Positive Association: As values of increase, values of tend to increase (points slope upward from left to right).
Negative Association: As values of increase, values of tend to decrease (points slope downward from left to right; negative correlation and negative slope).
Strength of Association:
Strong Association: Data points fall very close to a specific mathematical pattern or straight line.
Weak Association: Data points scatter widely away from the underlying pattern.
The Correlation Coefficient ():
Measures the direction and strength of the linear relationship between two quantitative variables.
Admissible Range: .
: Perfect positive linear relationship.
: Perfect negative linear relationship (all data points fall exactly on a downward-sloping line).
: Complete absence of a linear relationship.
Values such as are mathematically invalid.
Interpreting Strength: Strength is dictated solely by the absolute value (), regardless of the algebraic sign.
Comparing vs. : demonstrates a substantially stronger linear relationship than .
Comparing predictive accuracy: A model with () produces better, more accurate predictions than models with , , or .
Caveats:
Correlation evaluates only straight-line relationships.
Variables that are weakly correlated lead to poor predictions.
Strong correlation does not imply causation: an association between and may be driven by lurking variables rather than a direct causal mechanism.
Least Squares Regression Modeling:
The Least Squares Criterion: The regression line is fitted mathematically such that the sum of the squared vertical deviations (residuals) between the observed data points and the predicted line is minimized.
Standard Equation:
Slope ( or ): The predicted change in the response variable () for every increase in the explanatory variable ().
Y-Intercept ( or ): The predicted value of the response variable () when the explanatory variable () is equal to zero.
Relevant Range: The domain of values spanned by the original sample data used to construct the regression line. Calculating predictions outside the relevant range represents invalid extrapolation.
Coefficient of Determination ( / r-squared): The proportion (or percentage) of the total variation in the response variable () that is explained by the linear relationship with the explanatory variable ().
Applied Regression Case Studies:
Case Study 1: Golf Club-Head Speed and Ball Distance:
Goal: Predict distance based on club-head speed.
Explanatory variable (, x-axis): Club-head speed (measured in miles per hour).
Response variable (, y-axis): Distance traveled by the golf ball (measured in yards).
Case Study 2: Airline Flight Costs and Passenger Volume:
Goal: Predict the cost to an airline to fly a route based on passenger count.
Explanatory variable (, x-axis): Number of passengers.
Response variable (, y-axis): Cost to the airline (in dollars).

Regression Model:
Slope Interpretation: For each additional passenger (an increase of passenger), the expected cost to the airline increases by approximately (about ).
Coefficient of Determination Interpretation: Approximately () of the variation in airline flight cost is explained by the linear relationship with the number of passengers.
Direction of Correlation: Because the slope is positive () and points trend upward, the correlation coefficient is positive ().
Relevant Range Analysis: The observed data span from approximately to passengers.
: Inside the relevant range.
: Inside the relevant range.
: Outside the relevant range (extrapolation).
: Outside the relevant range (extrapolation).
Case Study 3: Vehicle Weight and Fuel Efficiency:
Goal: Use car weight to predict fuel economy in miles per gallon ().
Regression Model:
Axis Assignment: Response variable (-axis) must be miles per gallon (); explanatory variable (-axis) is vehicle weight in pounds ().
Slope Interpretation: As the weight of the vehicle increases by , the fuel efficiency of the car is expected to decrease by .
Lurking Variable Identification:
Weight of car: Not a lurking variable (it is the explanatory variable under study).
Miles per gallon: Not a lurking variable (it is the response variable under study).
Type of motor/engine: Lurking variable (omitted mechanical factor that directly influences fuel economy).
Surface traveled (highway vs. city): Lurking variable (omitted driving environment factor impacting ).
Age of the car: Lurking variable (omitted vehicle condition factor impacting ).