Can We Predict the Salary of a Developer?

December 22, 2025 • data-analysis, machine-learning, stackoverflow

Overview

This project explores whether we can reasonably predict a developer’s annual compensation using self-reported survey data from the 2025 Stack Overflow Developer Survey.

Project motivations:


Section 1: Business Understanding

The project aim to answer below questions.


Section 2: Data Understanding

Dataset

Features used

Data cleaning

These choices intentionally trade completeness for simplicity and explainability.


Section 4: Data Modeling

We trained a Random Forest Regressor using:


Section 5: Evaluation

Feature Analysis

How does the coding experience influence salary of developer?

How does the coding experience influence salary of developer?

Observations

How does the role affect the salary of developers?

How does the role affect the salary of developers?

Observations

Does developer salary vary with country?

Does developer salary vary with country?

Observations

Would education level change the salary of developers?

Would education level change the salary of developers?

Observations

Which language has highest salary?

Which language has highest salary?

Observations

Can we train a Random Forest Model to predict salary using selected features?

Predicted vs Actual Salary

Observations

Feature Importance

Feature Importance

Model performance

Interpretation:


Conclusions

Limitations