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 μ\mu, population proportion pp). 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 xˉ\bar{x}, sample proportion p^\hat{p}).

    • 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 (SESE): 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 100%100\% certain or error-free.

  • Data Types and Associated Parameters and Estimators:

    • Categorical Data:

    • Parameter of Interest: Population proportion (pp).

    • Point Estimate / Sample Statistic: Sample proportion (p^\hat{p}).

    • Confidence Interval Application: Estimates the true population proportion (pp).

    • Quantitative Data:

    • Parameter of Interest: Population mean (μ\mu).

    • Point Estimate / Sample Statistic: Sample mean (xˉ\bar{x}).

    • Confidence Interval Application: Estimates the true population mean (μ\mu).

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:     Confidence Interval=Point Estimate±Margin of Error\text{Confidence Interval} = \text{Point Estimate} \pm \text{Margin of Error}

    • Margin of Error Formula:     Margin of Error=Critical Value×Standard Error\text{Margin of Error} = \text{Critical Value} \times \text{Standard Error}

    • Combined Formula:     Confidence Interval=Point Estimate±(Critical Value×Standard Error)\text{Confidence Interval} = \text{Point Estimate} \pm (\text{Critical Value} \times \text{Standard Error})

    • 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 xˉ\bar{x}.

    • For categorical data, the point estimate is p^\hat{p}.

    • 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 (MEME): 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 (Width=2×ME\text{Width} = 2 \times ME). 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 z∗z^* or Student's tt critical value t∗t^*).

    • Standard Error: Accounts for the amount of sampling variability present in the statistic.

  • Level of Confidence and Unconditional Uncertainty:

    • The level of confidence (CC) 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:

    • 90%90\% Confidence Level: A 10%10\% chance (0.100.10 probability) that the interval does not contain the true parameter.

    • 95%95\% Confidence Level: A 5%5\% chance (0.050.05 probability) that the interval does not contain the true parameter.

    • 99%99\% Confidence Level: A 1%1\% chance (0.010.01 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 (nn):

    • Increasing sample size (nn) causes the standard error to decrease (SE∝1nSE \propto \frac{1}{\sqrt{n}}).

    • 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 (CC):

    • 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 95%95\% confidence interval from a sample of size n=100n = 100 is calculated as (40,60)(40, 60).

    • Drop level of confidence to 90%90\%: The interval gets narrower.

    • Reduce sample size to n=75n = 75: The interval gets wider.

    • Increase level of confidence to 99%99\%: The interval gets wider.

    • Increase sample size to n=150n = 150: The interval gets narrower.

    • Scenario B: Varying Confidence Levels with Fixed Sample Proportion (p^=0.50\hat{p} = 0.50):

    • (0.42,0.58)(0.42, 0.58): Narrowest interval →\rightarrow Lowest confidence (90%90\%).

    • (0.40,0.60)(0.40, 0.60): Intermediate width →\rightarrow Intermediate confidence (95%95\%).

    • (0.37,0.63)(0.37, 0.63): Widest interval →\rightarrow Highest confidence (99%99\%).

    • Note: All intervals share the identical midpoint of 0.500.50 because p^\hat{p} is constant.

    • Scenario C: Varying Sample Sizes with Fixed Sample Mean (xˉ=100\bar{x} = 100):

    • (97.16,102.84)(97.16, 102.84): Narrowest interval (width=5.68\text{width} = 5.68) →\rightarrow Largest sample size (n=300n = 300).

    • (96.51,103.49)(96.51, 103.49): Intermediate width (width=6.98\text{width} = 6.98) →\rightarrow Intermediate sample size (n=200n = 200).

    • (95.04,104.96)(95.04, 104.96): Widest interval (width=9.92\text{width} = 9.92) →\rightarrow Smallest sample size (n=100n = 100).

  • Interpretation and Claim Verification Using Intervals:

    • Standard Interpretation Template:

    • For a 95%95\% confidence interval for the population mean of (55,75)(55, 75): "We are 95%95\% confident that the population mean falls between 5555 and 7575."

    • Incorrect interpretations include stating that 95%95\% of the sample means fall in this range, that there is a 95%95\% chance the sample mean is between those values, or that the population mean is exactly 5555 or 7575.

    • Evaluating Claims with Interval (55,75)(55, 75) for Population Mean μ\mu:

    • Claim: Population mean is greater than 6060 (μ>60\mu > 60): No, because the entire interval is not above 6060 (the lower bound is 5555, which is below 6060).

    • Claim: Population mean is greater than 5050 (μ>50\mu > 50): Yes, because the entire interval lies strictly above 5050 (55>5055 > 50).

    • Claim: Population mean is less than 7272 (μ<72\mu < 72): No, because the upper bound (7575) exceeds 7272.

    • Claim: Population mean is less than 7676 (μ<76\mu < 76): Yes, because the entire interval is strictly below 7676 (75<7675 < 76).

    • Claim: Population mean could be 5959: Yes, because the value 5959 is included inside the interval (55,75)(55, 75).

    • Claim: Population mean could be 100100: No, because the value 100100 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 (H0H_0):

    • Represents the status quo or default assumption of "no effect," "no difference," or equality to a specific benchmark.

    • Always written using equality (==, ≤\le, or ≥\ge, routinely stated as ==).

    • Assumed to be strictly true at the beginning of every test of significance.

    • The Alternative Hypothesis (HaH_a):

    • Established directly by the research question or claim being investigated.

    • Written using strict inequalities (<,>,≠<, >, \neq).

  • Hypothesis Notation Rules:

    • Hypotheses must always be written in terms of population parameters (μ\mu or pp), never sample statistics (xˉ\bar{x} or p^\hat{p}).

    • Examples of correctly stated hypotheses:

    • Mean less than 100100: H0:μ=100H_0: \mu = 100 vs. Ha:μ<100H_a: \mu < 100.

    • Proportion different from 0.300.30: H0:p=0.30H_0: p = 0.30 vs. Ha:p≠0.30H_a: p \neq 0.30.

      • Mean greater than 0.750.75: H0:μ=0.75H_0: \mu = 0.75 vs. Ha:μ>0.75H_a: \mu > 0.75.

  • Test Directionality and Rejection Regions:

    • Left-Tailed Test: Used when testing whether a parameter is strictly less than a hypothesized value (Ha:parameter<valueH_a: \text{parameter} < \text{value}).

    • Right-Tailed Test: Used when testing whether a parameter is strictly greater than a hypothesized value (Ha:parameter>valueH_a: \text{parameter} > \text{value}).

    • Two-Tailed Test: Used when testing whether a parameter is strictly different from (not equal to) a hypothesized value (Ha:parameter≠valueH_a: \text{parameter} \neq \text{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 α=0.10\alpha = 0.10 (Ha:μ>0.75H_a: \mu > 0.75): Rejection region encompasses the most extreme 10%10\% of the distribution strictly in the right tail.

    • Left-tailed test with α=0.01\alpha = 0.01 (H0:p=0.15H_0: p = 0.15 vs. Ha:p<0.15H_a: p < 0.15): Rejection region encompasses the most extreme 1%1\% of the distribution strictly in the left tail.

    • Two-tailed test with α=0.05\alpha = 0.05 (H0:p=0.25H_0: p = 0.25 vs. Ha:p≠0.25H_a: p \neq 0.25): The total significance level must be split evenly between both tails, placing the most extreme 2.5%2.5\% in the lower (left) tail and the most extreme 2.5%2.5\% 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:     Test Statistic=Sample Statistic−Hypothesized ParameterStandard Error\text{Test Statistic} = \frac{\text{Sample Statistic} - \text{Hypothesized Parameter}}{\text{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 (α\alpha): The predetermined threshold representing the probability of committing a Type I error (rejecting H0H_0 when H0H_0 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 p-value≤α\text{p-value} \le \alpha: Reject H0H_0.

      • If p-value>α\text{p-value} > \alpha: Do not reject H0H_0.

    • Rejection Region Approach:

      • If the test statistic falls inside the rejection region: Reject H0H_0.

      • If the test statistic falls outside the rejection region: Do not reject H0H_0.

    • 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 H0H_0: "There is significant evidence to support the alternative hypothesis (HaH_a)."

    • Failing to reject H0H_0: "There is not significant evidence to support the alternative hypothesis (HaH_a)."

  • P-value and Significance Decision Scenarios:

    • p-value=0.0024\text{p-value} = 0.0024, α=0.05\alpha = 0.05: Since 0.0024≤0.050.0024 \le 0.05, Reject H0H_0.

    • p-value=0.2456\text{p-value} = 0.2456, α=0.05\alpha = 0.05: Since 0.2456>0.050.2456 > 0.05, Do Not Reject H0H_0.

    • p-value=0.0943\text{p-value} = 0.0943, α=0.10\alpha = 0.10: Since 0.0943≤0.100.0943 \le 0.10, Reject H0H_0.

  • 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: H0:p=0.10H_0: p = 0.10 vs. Ha:p<0.10H_a: p < 0.10

    • Directionality: Left-tailed test (due to the "<<" sign in HaH_a)

    • Assumed Parameter at Test Inception: p=0.10p = 0.10

    • Significance Level: α=0.05\alpha = 0.05 (allocating 5%5\% of extreme area entirely into the left tail)

    • Sample Size: n=100n = 100

    • Sample Proportion: p^=0.08\hat{p} = 0.08

    • Standard Error: SE=0.03SE = 0.03

    • Test Statistic: z=0.08−0.100.03=−0.67z = \frac{0.08 - 0.10}{0.03} = -0.67

    • P-value: 0.25250.2525

    • Rejection Region: Values strictly less than −1.645-1.645

Normal curve showing a left-tailed 5% rejection region bounded by critical value -1.645 and a 95% non-rejection region
  • Comparative Decision Analysis:

    • P-value Comparison: Comparing the p-value (0.25250.2525) against α\alpha (0.050.05) shows that p-value>α\text{p-value} > \alpha. Therefore, the decision is to Do not reject the null hypothesis.

    • Rejection Region Comparison: Comparing the test statistic (−0.67-0.67) against the critical threshold (−1.645-1.645) shows that −0.67>−1.645-0.67 > -1.645, meaning the test statistic lies outside the rejection region within the 95%95\% non-rejection area.

Normal curve with test statistic -0.67 falling within the 95% non-rejection region to the right of critical value -1.645
  • Final Formal Conclusion: There is not significant evidence that the population proportion of deliveries with a damaged package included is less than 10%10\%.

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 (xx): The independent variable that explains, predicts, or influences changes in the other variable. Plotted on the horizontal x-axis (number line).

    • Response Variable (yy): 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 xx increase, values of yy tend to increase (points slope upward from left to right).

    • Negative Association: As values of xx increase, values of yy 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 (rr):

    • Measures the direction and strength of the linear relationship between two quantitative variables.

    • Admissible Range: −1≤r≤1-1 \le r \le 1.

    • r=1r = 1: Perfect positive linear relationship.

    • r=−1r = -1: Perfect negative linear relationship (all data points fall exactly on a downward-sloping line).

    • r=0r = 0: Complete absence of a linear relationship.

    • Values such as 1.51.5 are mathematically invalid.

    • Interpreting Strength: Strength is dictated solely by the absolute value (∣r∣|r|), regardless of the algebraic sign.

    • Comparing r=−0.92r = -0.92 vs. r=0.65r = 0.65: ∣−0.92∣=0.92|-0.92| = 0.92 demonstrates a substantially stronger linear relationship than 0.650.65.

    • Comparing predictive accuracy: A model with r=−0.94r = -0.94 (∣r∣=0.94|r| = 0.94) produces better, more accurate predictions than models with r=0.89r = 0.89, r=0.50r = 0.50, or r=0r = 0.

    • 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 xx and yy 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:     y^=mx+bory^=b1x+b0\hat{y} = mx + b \quad \text{or} \quad \hat{y} = b_1x + b_0

    • Slope (mm or b1b_1): The predicted change in the response variable (yy) for every 1 unit1\text{ unit} increase in the explanatory variable (xx).

    • Y-Intercept (bb or b0b_0): The predicted value of the response variable (yy) when the explanatory variable (xx) is equal to zero.

    • Relevant Range: The domain of xx 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 (R2R^2 / r-squared): The proportion (or percentage) of the total variation in the response variable (yy) that is explained by the linear relationship with the explanatory variable (xx).

  • Applied Regression Case Studies:

    • Case Study 1: Golf Club-Head Speed and Ball Distance:

    • Goal: Predict distance based on club-head speed.

    • Explanatory variable (xx, x-axis): Club-head speed (measured in miles per hour).

    • Response variable (yy, 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 (xx, x-axis): Number of passengers.

    • Response variable (yy, y-axis): Cost to the airline (in dollars).

Scatterplot of airline flight cost versus number of passengers with linear regression line and R-squared
  • Regression Model:     y=40.861x+1559.1y = 40.861x + 1559.1     R2=0.9014R^2 = 0.9014

  • Slope Interpretation: For each additional passenger (an increase of 11 passenger), the expected cost to the airline increases by approximately $40.86\$40.86 (about $41\$41).

  • Coefficient of Determination Interpretation: Approximately 90%90\% (90.14%90.14\%) 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 (+40.861+40.861) and points trend upward, the correlation coefficient rr is positive (r=+0.9014≈+0.949r = +\sqrt{0.9014} \approx +0.949).

  • Relevant Range Analysis: The observed data span from approximately x=61x = 61 to x=97x = 97 passengers.

    • x=70x = 70: Inside the relevant range.

    • x=90x = 90: Inside the relevant range.

    • x=40x = 40: Outside the relevant range (extrapolation).

    • x=120x = 120: 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 (mpgmpg).

  • Regression Model:     y=44.88−0.007xy = 44.88 - 0.007x

  • Axis Assignment: Response variable (yy-axis) must be miles per gallon (mpgmpg); explanatory variable (xx-axis) is vehicle weight in pounds (lbslbs).

  • Slope Interpretation: As the weight of the vehicle increases by 1 pound1\text{ pound}, the fuel efficiency of the car is expected to decrease by 0.007 mpg0.007\text{ mpg}.

  • 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 mpgmpg).

    • Age of the car: Lurking variable (omitted vehicle condition factor impacting mpgmpg).