Glassdoor: Decode U.S. wage inequality using hypothesis testing and regression analysis. Python, Scipy, Statsmodels, Matplotlib.
Glassdoor's economic research team benchmarks the compensation data reported on its platform against public labor market statistics. This project works with the U.S. Bureau of Labor Statistics Occupational Employment and Wage Statistics (OEWS) release as that public reference point.
The goal of this project is to perform a multi-faceted analysis of occupational wage data across the United States. The dataset includes information on employment totals, average wages, occupation categories, and geographic distribution by state and region.
Your task is to analyze wage disparities, employment patterns, and statistical relationships across different job sectors and states.
Objectives:
Scope: Annual occupational wage and employment data
Geography: 50 states + territories
Fields:
OCC_TITLE: Occupation nameTOT_EMP: Total employmentA_MEAN: Average annual wagePRIM_STATE: State abbreviationO_GROUP: Occupation category (Major, Total, Detailed)The analysis covered the following components:
| Technique | Purpose | Output |
|---|---|---|
| Bar Charts | Compare top/bottom states by mean wage | Wage distribution across states |
| Weighted Average Wage | Find the true average wage per major occupation group | Identify highest-paying occupation groups |
| Occupation Distribution by State | Understand local job market structure | Regional occupation spread |
| Two-sample T-test | Compare wages between job categories | Wage gap validation |
| Linear Regression | Explore employment–wage dynamics | Trend detection |
| Correlation Analysis | Measure strength of relationships | Statistical evidence |
| Z-test | Test wage difference across sectors | Significance check |
| Levene's Test | Compare wage variance across fields | Pay spread volatility insights |
Takeaway:
Asking the right questions reveals hidden layers in occupational wage data. Statistical and visual tools enable smarter labor planning and compensation design.
Estimated Completion Time: 6–8 hours
errors="coerce" with pd.to_numeric() to handle wage conversionseaborn or matplotlib for visual clarity.groupby() and .agg()Q: Can I add more statistical tests?
A: Yes — include any analysis that enhances insights.
Q: Is predictive modeling required?
A: No, the goal is exploratory and inferential analysis.
Q: Can occupation groups be reclassified?
A: Yes, but explain any re-mapping logic in the notebook.
Completing this project demonstrates your ability to extract questions from raw data and use statistical methods to inform labor market insights.