Inference for regression Knowledge-Based Study
Math topic explanations on Inference for regression.
Study notes
When analyzing bivariate quantitative data, simple linear regression models the relationship between an explanatory variable and a response variable . In a population, this relationship is expressed as:
where is the population intercept, is the population slope, and represents random error. Sample data provide estimates (sample intercept) and (sample slope), yielding the estimated regression line .
Valid statistical inference about requires five key conditions (often remembered by the acronym LINER):
- Linearity: The actual relationship between and the mean of 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 , the response values 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 (denoted ) is constant across all values of . 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 varies from sample to sample, it possesses a sampling distribution. When the regression conditions are satisfied:
- The mean of the sampling distribution of is equal to the true population slope: .
- The true standard deviation of is given by , where is the standard deviation of the residuals and is the standard deviation of the explanatory variable.
In practice, the population standard deviation of the residuals is unknown and is estimated by the standard error of the residuals, :
Replacing with yields the standard error of the sample slope, :
Because two parameters ( and ) are estimated to determine the regression line, inference procedures rely on the -distribution with degrees of freedom.
A confidence interval estimates the plausible values for the true rate of change in per unit increase in . A confidence interval for the population slope is calculated as:
where:
- is the point estimate of the slope from the sample.
- is the critical value from the -distribution with corresponding to the desired confidence level.
- is the standard error of the slope.
Interpretation: We are confident that for each unit increase in the explanatory variable , the mean of the response variable changes by an amount within the calculated interval.
To assess whether a statistically significant linear relationship exists between and , we perform a significance test for the population slope .
The standard hypotheses are:
- (There is no linear relationship between and .)
- , , or
The test statistic follows a -distribution with :
The -value is obtained by comparing the calculated -statistic to the -distribution with degrees of freedom. If the -value is less than the significance level , we reject 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 ; the value beside "Constant" is .
- SE Coef: The standard error of each estimate. The entry in the variable row represents .
- t-ratio (T): The test statistic computed as .
- P-value (P): The two-sided -value for testing whether that specific parameter equals zero.
- : The standard error of the residuals (spread around the line).
- : The coefficient of determination, representing the proportion of variation in accounted for by the linear model with .

