by David Venturi
New Coders: How Salary and Time Spent Learning Vary by Demographic
Free Code Camp asked 15,000 people who they are, and how they’re learning to code. I separated them by gender, continent, and whether they’re ethnic minorities, then explored their differences.
More than 15,000 people responded to Free Code Camp’s 2016 New Coder Survey, granting researchers (like me!) an unprecedented glimpse into how people are learning to code. The entire dataset was released on Kaggle.
Here is how new coders of different genders, ethnicities, and continents vary by wage, age, and hours dedicated to learning.
The demographic distributions for the 15,620 new coders who responded to the survey are as follows:
- 21% (2,840) are women
- 78% (10,766) are men
Ethnic Minority vs. Majority
- 24% (3,253) are ethnic minorities in their country
- 76% (10,392) are not
Citizenship by Continent
Does expected next salary vary by demographic?
This next salary is their first one after advertising their new coding skills. Expected next salary is one of two main questions in the Free Code Camp survey whose answers depend on the quality of coding resources.
Post-coding skills acquisition, North Americans expect the highest salaries and Europeans expect the lowest. Expectations in Asia are all over the board.
The 25th percentile North American expects the same as the 75th percentile European: $50k. The median North American expects $60k per year.
I wonder if some Europeans forgot to convert from pounds, euros, or any of the other European currencies to US dollars.
By the way, here’s how to read this chart (and the other box plots in this article): the “x” is the mean. The horizontal line is the median (a.k.a. the 50th percentile). The bottom of the box is the 25th percentile, and the top of the box is the 75th percentile. Whisker length is 1.5 times the height of the box. The circles are outliers. All y-axes are on a logarithmic scale to better visualize the outlier-heavy data.
Females actually expect higher next salaries than males.
The median female expects $9k more than the median male. The 25th percentile female expects $14k (!) more than her male equivalent. Female new coders appear optimistic about the changing diversity landscape in the workplace.
Like gender, minorities expect higher next salaries than the majority demographic.
The gap in medians is $10k. The gap in first quartiles is $15k. Minorities also appear optimistic about the changing diversity landscape in the workplace.
Expected salary is about the same, whether you dedicate less than 10 or up to 40 hours per week.
Those who dedicate 40+ hours per week have a mean expected salary that is $3k to 5k higher than the others, but this could be caused by random chance. Only 694 of the 15,000+ respondents spend this much time learning.
So expected next salary varies wildly by continent. There appears to be a reverse wage gap trend going on with gender and ethnic minority status.
Less than 5% of new coders are dedicating 40+ hours to learning each week.
Most of these respondents are in their early twenties and have a bachelor’s degree, which suggests that some are forgoing traditional forms of higher education (like master’s and professional degrees) and using those 40+ hour weeks to learn code.
By the way, this is the situation I myself am in with my personalized data science master’s degree.
As the awareness of the quality and affordability of online education rises, I expect more people to join the higher brackets.
Do hours dedicated to learning per week vary by demographic?
The hours dedicated to learning question is another one whose answer depends on the quality of coding resources.
Time spent learning to code is pretty much identical across continents. A median of 10 hours per week is standard.
Same thing across genders.
(Note that for trans people, the difference was not statistically significant.)
And same thing for ethnic majorities vs. minorities.
So unlike expected next salary, hours dedicated to learning doesn’t vary much by demographic. The bulk of each spends between 5 to 20 hours learning weekly.
Let’s dig deeper into the wage gaps.
For both males vs. females and ethnic majorities vs. minorities, two grouped scatter plots follow:
- Current salary (before advertising their new coding skills) vs. age
- Expected next salary (after advertising their new coding skills) vs. age
Each has a best-fit line labeled with its correlation, as well as dashed lines representing the median for each axis variable. I removed new coders that are 65+ years old since they are statistical outliers.
Wages Across Ages
Female new coders have higher median current salaries than males (by $2k), but the higher female salaries are concentrated in millennials.
Note the current salary vs. age correlations of 0.267 and 0.192.
Male new coders do have an above average proportion of very high ($150k+) current salaries, which corresponds to a slightly higher mean (not plotted).
For gender, the above relationship between age and wage isn’t maintained when new coders project their next salary.
The correlations are much lower, with both near 0.1. Again, we see the huge gap in medians: $59k for females and $50k for males. These are both higher than each gender’s current salary median.
Minorities have a higher median current salary than majorities by $4k. Unlike gender, the spread of current wages over age is about even.
Note the current salary vs. age correlations of 0.253 and 0.243.
Ethnic majorities do have an above average proportion of $150k+ current salaries, but it doesn’t correspond to a higher mean (not plotted) this time.
For ethnic minority status, like gender, the relationship between age and wage isn’t maintained when new coders project their next salary.
Both of the correlations are much lower, near 0.1, again. The $10k gap in median expected next salary is striking: $60k for ethnic minorities and $50k for ethnic majorities. As with gender, these are both higher than their current salary median.
So, like expected next salaries, female new coders have higher median current salaries than male new coders. So do ethnic minorities vs. ethnic majorities.
Older females don’t do as well as older males, however, which is the only hint of a wage gap that I could find in the entire dataset.
For both gender and ethnic minority status, it appears that older new coders are willing to take a pay cut when transitioning to a job where they advertise their new coding skills, while younger individuals intend to capitalize on coding demand with a hefty salary early in their career.
What did we learn?
Hours dedicated to learning to code is pretty much constant across gender, ethnic minority status, and continent. Most people spend between 5–20 hours each week.
Expected next salary (post-c0ding skills acquisition) varies wildly by continent. The lowest median is $30k (Europe) and the highest is $60k (North America).
Older new coders appear willing to take a pay cut in their new job where they advertise their new coding skills, while younger new coders look to start their careers with substantial salaries with their in-demand skill.
The traditional gender and ethnic minority wage gaps aren’t prevalent in the 2016 New Coder Survey. In fact, they are reversed. Perhaps new coders aren’t reflective of the working population in general, where data suggests that both wage gaps still exist in 2016.
Do you have a hunch as to why the ethnic minority status and gender wage gaps might not apply to new coders? Please share anything relevant (or contradictory!) in the responses.
You can find a more detailed version of this analysis on Kaggle, where you’ll find statistical tests supporting the inferences in this article.
Be sure to check out my other pieces exploring Free Code Camp’s 2016 New Coder Survey:
Developing Data Scientists and Engineers
Free Code Camp asked 15,000 people who they are, and how they’re learning to code. I isolated those focused on data…medium.comThe 6 most desirable coding jobs (and the types of people drawn to each)
Free Code Camp asked 15,000 people who they are, and how they’re learning to code. I separated them by their job…medium.freecodecamp.com
If you have questions or concerns about this series or the R code that generated it, don’t hesitate to let me know.