wage_sample.csv
Wage sample
A small teaching dataset for practicing descriptive statistics, scatter plots, and early regression intuition.
Type
Cross-sectional
Related lesson
Regression in Python
Example regression
wage on education
Source
Local CSV
Practice exercise
Estimate wage on education, plot the fitted line, then interpret the slope and R-squared.
Data note
Loaded directly by Module 2 charts and Python examples.
Python loading example
import pandas as pd
data = pd.read_csv("/data/wage_sample.csv")
print(data[["wage", "education"]].head())Variables
Hourly wage in dollars.
Years of completed education.
Years of labor market experience.
Indicator equal to 1 for female workers.
Indicator equal to 1 for married workers.
| wage | education | experience | female | married |
|---|---|---|---|---|
| 18.5 | 12 | 3 | 0 | 0 |
| 24.2 | 16 | 6 | 1 | 1 |
| 31.8 | 18 | 10 | 0 | 1 |
| 21.1 | 14 | 4 | 1 | 0 |
| 28.4 | 16 | 9 | 0 | 1 |