Module 2

Simple Regression

Estimate and interpret one-variable regression models with fitted lines, residuals, R-squared, Python output, and practice projects.

12 lessons4 to 6 hoursBeginner

Prerequisites

Module 0Module 1

Skills

Identify dependent and explanatory variablesWrite a simple regression modelInterpret beta0 and beta1Explain the error termCalculate fitted values and residualsUnderstand OLS intuitionInterpret R-squaredRun simple regression in PythonInterpret statsmodels output
Start first lesson

Progress tracking

Sign in to track your progress

Public visitors can preview the module, but personal progress is saved only after sign-in.

Sign in to track progress

Module resources

0 quiz checks0 datasets4 notebooks

Lessons

Notebook labs

Scored review quiz

Module 2 review

These questions sample ideas from across the module. Answer all questions, submit once, then review the explanations and score.

0/15 answered

What is regression?

1. A scatter plot of wage and education shows an upward cloud of points. What does simple regression add to the graph?

Dependent and explanatory variables

2. A student estimates voteA on shareA. Which interpretation of the variable roles is correct?

The simple regression equation

3. In y = beta0 + beta1x + u, which part captures influences on y that are not included in x?

What does beta0 mean?

4. Why can an intercept be useful even when x = 0 is not realistic in the sample?

What does beta1 mean?

5. In the teaching wage sample, the education slope is about 2.33. Which sentence is best?

What is the error term?

6. Why can a simple wage-on-education regression be descriptive but not automatically causal?

Fitted values and residuals

7. A worker's actual wage is 26.90 and the fitted wage is 24.85. What is the residual?

Ordinary Least Squares intuition

8. Which line does Ordinary Least Squares choose?

R-squared

9. If a regression has R-squared = 0.72, what is the best interpretation?

Regression in Python

10. In statsmodels, why do we usually add a constant column before estimating a simple regression?

Interpreting regression output

11. Which output-reading sequence is strongest for a beginner?

Practice regression project

12. A student uses SLEEP75 to regress sleep on totwrk. What is a careful final claim?

Datasets

13. Which dataset-question pair is well matched for simple regression practice?

Formula review

14. What does y-hat represent in the fitted equation y-hat = beta0-hat + beta1-hat x?

Interpretation review

15. What makes a regression interpretation high quality?

Choices are shuffled each time the review starts.