Loading notebook runner...
Module 2
Calculate fitted wages, residuals, squared residuals, and residual plots from the wage regression.
Related dataset
wage_sample.csv
Estimated time
25 to 40 min
Packages
pandas, numpy, matplotlib
Expected output
A printed summary plus a chart in the output panel.
Learning goals
Common errors
Dataset path helper
import pandas as pd
df = pd.read_csv("/data/wage_sample.csv")
df.head()