Search⌘ K
AI Features

Recap: Inference for Regression

Explore the theory-based approach to statistical inference for regression in R. Learn how standard errors, confidence intervals, and hypothesis tests are computed using formulas derived before computational methods. Understand the role of sample size and the comparison between theory-based and simulation-based methods for analyzing regression relationships.

Theory-based inference for regression

When we interpreted the regression table, we mentioned that R doesn’t compute its values using simulation-based methods for constructing confidence intervals and conducting hypothesis tests using the infer package. Rather, R uses a theory-based approach using mathematical formulas, similar to theory-based confidence intervals and theory-based hypothesis tests. These formulas were derived in a time when computers didn’t exist, so it would’ve been incredibly labor-intensive to run extensive simulations.

In particular, there’s a formula for the standard error of the fitted slope 𝑏1𝑏_1:

There are many formulas in statistics, so let’s break down what each symbol represents. First, sxs_x and sys_y are the sample standard deviations of the explanatory variable bty_avg and the response variable score, respectively. Second, rr ...