Back to datasets

wage_sample.csv

Wage sample

A small teaching dataset for practicing descriptive statistics, scatter plots, and early regression intuition.

Download CSV

Structure

cross-sectional

File type

CSV

Module

Module 2

Visibility

public

Preview table

Preview rows are shown when safely installed in the app. External or licensed files may need to be opened from the source link.

Wage sample preview
wageeducationexperiencefemalemarried
18.512300
24.216611
31.8181001
21.114410
28.416901

Python loading code

import pandas as pd

data = pd.read_csv("/data/wage_sample.csv")
print(data[["wage", "education"]].head())

Check the variable dictionary and source documentation before dropping or recoding missing values.

Dataset AI assistant

Get help with variables, graphs, regression questions, limitations, and Python loading code.

Variables dictionary

wagenumericdollars per hour

Hourly wage in dollars.

Missing values: Review source documentation before recoding missing values.

educationnumericyears

Years of completed education.

Missing values: Review source documentation before recoding missing values.

experiencenumericyears

Years of labor market experience.

Missing values: Review source documentation before recoding missing values.

femalebinary

Indicator equal to 1 for female workers.

Missing values: Review source documentation before recoding missing values.

marriedbinary

Indicator equal to 1 for married workers.

Missing values: Review source documentation before recoding missing values.

Practice tasks

  1. 1.Estimate wage on education, plot the fitted line, then interpret the slope and R-squared.
  2. 2.Estimate wage on education and write one careful interpretation.
  3. 3.Write one limitation about measurement, missing data, or omitted variables.