Loading notebook runner...
Module 7
Show how a dummy-only regression reproduces a two-group mean difference.
Related dataset
MODULE7_WAGE_GROUPS_SYNTHETIC
Estimated time
25 to 40 min
Packages
pandas, numpy, statsmodels, patsy
Expected output
Printed Python results that can be compared with the lesson explanation.
Learning goals
Common errors
Dataset path helper
import pandas as pd
df = pd.read_csv("/data/module-7/module7_wage_groups_synthetic.csv")
df.head()