As we get ready to enter the job market in the Data Science area, one of the things that is undoubtedly on our minds is our future income. Income in this field can be influenced by a complex interplay of variables, including your education, skills, experience, location… The goal of this project is to check what factors influence data scientists’ wages according to our dataset. Our variables are if you code as a hobby, location (United States, United Kingdom, Germany), highest level of educational attainment (Doctoral degree, Master’s degree, Bachelor’s degree), organization size (Small, Medium, Large), your undergraduate degree (Natural Science, Social Science, Arts) and how many years you have been coding as a professional. Our cross-sectional data is the result of processed data from a survey taken from the Stack Overflow Website in 2020.
“What factors influence data scientists’ wages according to our dataset?”
To answer our research question, first we extracted data from Kaggle. We then pre-processed the data, for example the variable organization size was a numeric variable originally, but we decided to categorize it according to the EU recommendation 2003/361. It states that a small company is defined as having fewer than 50 employees, a medium-sized company has fewer than 250 employees, and a large company would presumably have 250 or more employees. We performed the multiple linear regression model, having verified the OLS assumptions. All of this project was conducted using the R coding language.
As a simple analysis we can see that majority of people come from the United States, have a Master’s degree, Natural Science as their Undergrad, which makes sense, and belong to large organizations.
From the model summary we can see that Hobby is not significant, CountryUnitedKingdom is only significant at 0.1% level, however we keep it as it is a dummy. Orgsizemedium and UndergradNaturalScience are also not significant but also dummy variables, so we keep them.
Multiple R-squared: 0.2957, Adjusted R-squared: 0.2861 F-statistic: 30.73 on 10 and 732 DF, p-value: < 2.2e-16
We can also see the F-statistic for global significance of the regression, which shows us that the regression is globally significant at a 5% significance level.
The Adjusted R^2 sits at 0.2861 which indicates that 28.61% of the variation in ln(wages) can be explained by our current model.
By performing tests and graphical analysis our OLS model has successfully met all the underlying assumptions.
The p-value of the RESET test leads us towards concluding that our model is misspecified. However, we only have one variable in our dataset that is not a dummy variable. We tried to include exponentials of the numerical variable to see if it improves our specification but to no avail. Our model still shows as misspecified.
(5% significance level)
Note: We used the 100*(e^B -1) transformation to interpret the coefficients.
Having a job in the United States, increases the salary by 80.63% on average in relation to being in Germany, ceteris paribus.
Having a Doctoral degree increases the salary by 24.27% on average in relation to only having a Bachelor’s Degree, ceteris paribus.
Having a Master’s Degree increases the salary by 13.1% on average in relation to only having a Bachelor’s Degree, ceteris paribus.
Working at a small sized organization (<19 employees) decreases the salary by 23.68% on average compared to working in a large organization, ceteris paribus.
Having an Undergrad in Social Sciences increases your salary by 33.16% on average compared to having an Undergrad in Arts, ceteris paribus.
For each year of work as a coding professional, salary increases by 2.53% on average, ceteris paribus.
All of our significant coefficients have the expected sign. For instance, it is expected that having higher education increases your wage, and that each year of experience will also increase your salary.
We would like to have a few more variables to help explain the wages of Data Scientists. Gender, Position (Junior, Mid, Senior, Executive), Freelancers. We could probably get a higher predictive power with said variables. These are some of the variables that the literature on the subject of wages in general reflects about.
This work has some clear recommendations to keep in mind. For instance, the wage increase in the USA is very big (since it is the country in the world with most tech companies, and probably bigger demand for Data Scientists, it makes sense that the salaries are the bigger there). If one is looking for a higher salary, the USA is likely a place to consider working in.
It also seems to pay off to have a Master’s Degree and even a Doctorate Degree. This is quite remarkable in terms of the PhD, since there are not too many people who attain a PhD in Data Science. Further research into this finding is required.
We can also see that working for small organizations does not pay off. The ‘why’ of it would also be interesting to further investigate on.
Finally, having an Undergraduate degree in Social Sciences seems to be significant towards improving Data Scientist salaries. This is a surprising result, seeing as we would guess that Computer Science Majors would take the highest-paid spots. We can perhaps attribute this salary increase to the bigger domain knowledge that learners of Social Sciences acquire, but this would require further study.
King, J., & Magoulas, R. (2015). 2015 data science salary survey. O’Reilly Media, Incorporated.
(n.d.). Retrieved from Stack Overflow: https://insights.stackoverflow.com/survey EUR-Lex.
(n.d.). Retrieved from https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32003H0361 PhucNH.
(n.d.). Salary and more-Data Scientist, Analyst, Engineer. Retrieved from Kaggle: https://www.kaggle.com/datasets/phuchuynguyen/salary-and-moredata-scientist-analyst-engineer/