Inference for regression Knowledge-Based Study

Math · Data, Statistics & Probability · Math · Sampling & Inference

Math topic explanations on Inference for regression.

Study notes

  1. When analyzing bivariate quantitative data, simple linear regression models the relationship between an explanatory variable xx and a response variable yy. In a population, this relationship is expressed as:

    y=α+βx+ϵy = \alpha + \beta x + \epsilon

    where α\alpha is the population intercept, β\beta is the population slope, and ϵ\epsilon represents random error. Sample data provide estimates aa (sample intercept) and bb (sample slope), yielding the estimated regression line y^=a+bx\hat{y} = a + bx.

    Valid statistical inference about β\beta requires five key conditions (often remembered by the acronym LINER):

    • Linearity: The actual relationship between xx and the mean of yy is linear. Verified using a scatterplot or a residual plot showing no distinct curved pattern.
    • Independence: Individual observations or errors are independent of one another.
    • Normality: For any given value of xx, the response values yy are normally distributed around the true regression line. Verified using a histogram or normal probability plot of the residuals.
    • Equal Variance: The standard deviation of yy (denoted σ\sigma) is constant across all values of xx. Verified by checking that the vertical spread of points in the residual plot remains roughly uniform across all fitted values.
    • Random: Data originate from a well-designed random sample or randomized experiment.

    Because sample slope bb varies from sample to sample, it possesses a sampling distribution. When the regression conditions are satisfied:

    • The mean of the sampling distribution of bb is equal to the true population slope: μb=β\mu_b = \beta.
    • The true standard deviation of bb is given by σb=σσxn−1\sigma_b = \frac{\sigma}{\sigma_x \sqrt{n - 1}}, where σ\sigma is the standard deviation of the residuals and σx\sigma_x is the standard deviation of the explanatory variable.

    In practice, the population standard deviation of the residuals σ\sigma is unknown and is estimated by the standard error of the residuals, ss:

    s=∑(y−y^)2n−2s = \sqrt{\frac{\sum (y - \hat{y})^2}{n - 2}}

    Replacing σ\sigma with ss yields the standard error of the sample slope, SEbSE_b:

    SEb=s∑(x−xˉ)2SE_b = \frac{s}{\sqrt{\sum (x - \bar{x})^2}}

    Because two parameters (α\alpha and β\beta) are estimated to determine the regression line, inference procedures rely on the tt-distribution with df=n−2df = n - 2 degrees of freedom.

    A confidence interval estimates the plausible values for the true rate of change in yy per unit increase in xx. A C%C\% confidence interval for the population slope β\beta is calculated as:

    b±t∗⋅SEbb \pm t^* \cdot SE_b

    where:

    • bb is the point estimate of the slope from the sample.
    • t∗t^* is the critical value from the tt-distribution with df=n−2df = n - 2 corresponding to the desired confidence level.
    • SEbSE_b is the standard error of the slope.

    Interpretation: We are C%C\% confident that for each unit increase in the explanatory variable xx, the mean of the response variable yy changes by an amount within the calculated interval.

    To assess whether a statistically significant linear relationship exists between xx and yy, we perform a significance test for the population slope β\beta.

    The standard hypotheses are:

    • H0:β=0H_0: \beta = 0 (There is no linear relationship between xx and yy.)
    • Ha:β≠0H_a: \beta \neq 0, Ha:β>0H_a: \beta > 0, or Ha:β<0H_a: \beta < 0

    The test statistic follows a tt-distribution with df=n−2df = n - 2:

    t=b−β0SEb=b−0SEbt = \frac{b - \beta_0}{SE_b} = \frac{b - 0}{SE_b}

    The PP-value is obtained by comparing the calculated tt-statistic to the tt-distribution with n−2n - 2 degrees of freedom. If the PP-value is less than the significance level α\alpha, we reject H0H_0 and conclude that there is convincing evidence of a linear association between the two variables.

    Statistical software typically displays regression results in a standard table. Consider the following output format:

    • Predictor / Term: Lists "Constant" (or Intercept) and the explanatory variable name.
    • Coef: The estimated coefficients. The value beside the variable name is the sample slope bb; the value beside "Constant" is aa.
    • SE Coef: The standard error of each estimate. The entry in the variable row represents SEbSE_b.
    • t-ratio (T): The test statistic computed as t=CoefSE Coeft = \frac{\text{Coef}}{\text{SE Coef}}.
    • P-value (P): The two-sided PP-value for testing whether that specific parameter equals zero.
    • ss: The standard error of the residuals (spread around the line).
    • R2R^2: The coefficient of determination, representing the proportion of variation in yy accounted for by the linear model with xx.