Census Data Analysis

A research paper for UNC Charlotte's Data and Society course that examines race, sex, years of education, and age as predictors of earning more than $50,000, using a subset of 1996 U.S. Census data.

Academic research · team paper · Dec 2024

My role

Co-authored the paper as part of a five-person team: data preparation, statistical analysis, visualization, and writing.

Team

Davis Higgins, Chris Loor-Luna, Cory Nguyen, Tam Khong, and Jeffrey Alvarez (DTSC 1302, December 2024).

Title page of the team paper The Impact of Race, Sex, Years of Education, and Age on Salary.

The problem

Income disparities are easy to describe and hard to interpret. The research question was which predictor, or combination of predictors, has the most significant impact on salary: race, sex, years of education, or age.

My contribution

This was a five-person team paper. I co-authored it with Chris Loor-Luna, Cory Nguyen, Tam Khong, and Jeffrey Alvarez, contributing to the data preparation, analysis, visualizations, and written findings.

What I built

The team defined salary as a binary outcome (above or at most $50,000), one-hot encoded race categories, and treated years of education and age as continuous predictors. We used chi-square tests for categorical relationships, one-way ANOVA to compare means across groups, and Pearson correlation for continuous variables, supported by three visualizations.

  • An age distribution histogram with a kernel density estimate.
  • The share of people earning more than $50,000 at each education level.
  • A correlation heatmap of education, age, sex, and race against income class.

How it works

Variables were defined first, then each relationship was tested with the method that fits its data type.

  1. 1996 Census subset
  2. Variable definitions + encoding
  3. Chi-square · ANOVA · Pearson correlation
  4. Visualizations
  5. Written findings + limitations
Correlation heatmap of income class with age, years of education, race, and sex.
Figure 3 from the paper: education (0.34), age (0.23), and sex (0.22) correlate more strongly with income class than race (0.07).

Key decisions

Match the test to the variable.

Categorical pairs used chi-square, group mean comparisons used ANOVA, and continuous pairs used Pearson correlation.

Distinguish correlation from causation.

The paper reports which predictors are most strongly associated with income without claiming they cause it.

Keep the artifact available.

The full paper is published beside the case study so every claim can be checked.

Outcomes & evidence

Years of education showed the strongest positive relationship with earning more than $50,000, followed by age, consistent with the hypothesis that education is a key determinant of earning potential. Sex and race showed weaker relationships, with disparities between categories.

Scope & limits

The data is a 1996 Census subset with a binary income threshold, so the results describe associations in that sample rather than current wages or causal effects. The paper notes non-response bias and the binary classification as limitations.

What I learned

A clear statistical argument depends on explaining variables and uncertainty, not just ranking predictors.

Built with

PythonpandasMatplotlibseabornCorrelationANOVAChi-square

More projects

All projects