NYC Data Science Academy| Blog
Bootcamps
Lifetime Job Support Available Financing Available
Bootcamps
Data Science with Machine Learning Flagship ๐Ÿ† Data Analytics Bootcamp Artificial Intelligence Bootcamp New Release ๐ŸŽ‰
Free Lesson
Intro to Data Science New Release ๐ŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook Graduate Outcomes Must See ๐Ÿ”ฅ
Alumni
Success Stories Testimonials Alumni Directory Alumni Exclusive Study Program
Courses
View Bundled Courses
Financing Available
Bootcamp Prep Popular ๐Ÿ”ฅ Data Science Mastery Data Science Launchpad with Python View AI Courses Generative AI for Everyone New ๐ŸŽ‰ Generative AI for Finance New ๐ŸŽ‰ Generative AI for Marketing New ๐ŸŽ‰
Bundle Up
Learn More and Save More
Combination of data science courses.
View Data Science Courses
Beginner
Introductory Python
Intermediate
Data Science Python: Data Analysis and Visualization Popular ๐Ÿ”ฅ Data Science R: Data Analysis and Visualization
Advanced
Data Science Python: Machine Learning Popular ๐Ÿ”ฅ Data Science R: Machine Learning Designing and Implementing Production MLOps New ๐ŸŽ‰ Natural Language Processing for Production (NLP) New ๐ŸŽ‰
Find Inspiration
Get Course Recommendation Must Try ๐Ÿ’Ž An Ultimate Guide to Become a Data Scientist
For Companies
For Companies
Corporate Offerings Hiring Partners Candidate Portfolio Hire Our Graduates
Students Work
Students Work
All Posts Capstone Data Visualization Machine Learning Python Projects R Projects
Tutorials
About
About
About Us Accreditation Contact Us Join Us FAQ Webinars Subscription An Ultimate Guide to
Become a Data Scientist
    Login
NYC Data Science Acedemy
Bootcamps
Courses
Students Work
About
Bootcamps
Bootcamps
Data Science with Machine Learning Flagship
Data Analytics Bootcamp
Artificial Intelligence Bootcamp New Release ๐ŸŽ‰
Free Lessons
Intro to Data Science New Release ๐ŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook
Graduate Outcomes Must See ๐Ÿ”ฅ
Alumni
Success Stories
Testimonials
Alumni Directory
Alumni Exclusive Study Program
Courses
Bundles
financing available
View All Bundles
Bootcamp Prep
Data Science Mastery
Data Science Launchpad with Python NEW!
View AI Courses
Generative AI for Everyone
Generative AI for Finance
Generative AI for Marketing
View Data Science Courses
View All Professional Development Courses
Beginner
Introductory Python
Intermediate
Python: Data Analysis and Visualization
R: Data Analysis and Visualization
Advanced
Python: Machine Learning
R: Machine Learning
Designing and Implementing Production MLOps
Natural Language Processing for Production (NLP)
For Companies
Corporate Offerings
Hiring Partners
Candidate Portfolio
Hire Our Graduates
Students Work
All Posts
Capstone
Data Visualization
Machine Learning
Python Projects
R Projects
About
Accreditation
About Us
Contact Us
Join Us
FAQ
Webinars
Subscription
An Ultimate Guide to Become a Data Scientist
Tutorials
Data Analytics
  • Learn Pandas
  • Learn NumPy
  • Learn SciPy
  • Learn Matplotlib
Machine Learning
  • Boosting
  • Random Forest
  • Linear Regression
  • Decision Tree
  • PCA
Interview by Companies
  • JPMC
  • Google
  • Facebook
Artificial Intelligence
  • Learn Generative AI
  • Learn ChatGPT-3.5
  • Learn ChatGPT-4
  • Learn Google Bard
Coding
  • Learn Python
  • Learn SQL
  • Learn MySQL
  • Learn NoSQL
  • Learn PySpark
  • Learn PyTorch
Interview Questions
  • Python Hard
  • R Easy
  • R Hard
  • SQL Easy
  • SQL Hard
  • Python Easy
Data Science Blog > Data Visualization > Race and Gender Wage Gaps in the 1990's

Race and Gender Wage Gaps in the 1990's

Kyle Szela
Posted on May 1, 2016

Contributed by Kyle Szela. He is currently in the NYC Data Science Academy 12 week full time Data Science Bootcamp program taking place between April 11th to July 1st, 2016. This post is based on his first class project - R visualization (due on the 2nd week of the program).

Dataset:

The dataset I chose to work with was acquired from the UCI Machine Learning Repository.  The data contains information retrieved from the 1994 and 1995 Current Population Surveys, which were implemented by the U.S. Census Bureau.  This dataset consists of roughly three hundred thousand different combinations of 40 variables.  Each combination of variables is given a weight to indicate the number of persons in the U.S. with those attributes.  So, multiplying a given observation's variables by it's weight will return the number of persons in the data set with those characteristics.  The pertinent variables that I used for analysis were the class, age, education, race, sex, full-time indicator, and the indicator for an income of greater than or less than $50,000 for each observation row.  The data itself was contained no missing values, and minimal cleaning was necessary.

After a preliminary review of the dataset, I had a few questions.  I wanted to know if there was a difference in the percentage of people with an income of greater than $50,000 across race and gender, and, additionally, I wanted to know if any discrepancy could be attributed to other factors available in the dataset.  There is an ongoing debate regarding wage gap in the U.S., and I and hoped to be able to clarify some aspects of where and what could be contributing factors.

I primarily focused on the differences between gender because different racial populations have higher densities in different areas of the U.S.  For example, the Asian population density is higher across the western coast of the U.S., where the cost of living is inflated.  If the cost of living is inflated, then the income of those persons may also be inflated relative to the rest of the U.S.  I did not have geographical or cost of living data to accompany this dataset, and therefore could not normalize based on location.  Gender, on the other hand, should be homogenous across the U.S. and should not be affected as much by cost of living by location.

Exploratory Data Analysis: 

Initially, I graphed the differences between males and females across all available races using the following code:

This produced the graph shown below:

raceGenderIncome

As you can see, the differences between race are pronounced, although more so between sex.  Additionally, the proportions between genders are similar, with small differences between Black and Other.  After observing this graph, I thought to additionally limit the information to only those with a full-time income.  I wanted to avoid any gender bias resulting from the inclusion of individuals like stay-at-home parents, which may be skewed towards women, producing a smaller percentage of women making greater than $50,000 across all races.  The results are shown below:

fulltimeRaceGender

The results are interesting.  By removing all those without full-time jobs, we see a large change in the male American Indian, Aleut, or Eskimo population.  Additionally, we see that the changes across race in female are quite small in comparison to the changes across race in males.

Income by Sector:

After seeing that the proportions across race between males and females were similar, I wanted to investigate if this could have been due to differences in the different sectors where these individuals work.  I used the below code to produce two graphs, one that shows the percentage of males or females in each sector, and the other that displays the percentage of males or females with an income greater than $50,000 in each sector.

The graphs for each are presented side-by-side, below:

sectorPopulationsectorIncome

The vast majority of both males and females seems to be employed in the private sector (73.61% and 73.64%, respectively), where we see a 12.34% difference in those with the selected income.  The greatest difference between males and females appears in the Self-employed-incorporated sector, with a percentage difference in those with income greater than $50,000 of 29.41%, although the percentage of males and females in this sector is relatively small (2.08% and 4.72%, respectively).

The main takeaway from these graphs are that the second smallest wage gap difference is in the sector with the largest population of both males and females (with local government having a 12.05% difference between males and females with the selected income).  The rest of the data indicates that the sectors other than private (save Local Government) are skewing the results towards males having a greater likelihood of having an income greater than $50,000, although not by much (the total difference between males and female with the selected income over all sectors is 13.73%).

Income by Age:

After reviewing these graphs, I also wanted to observe if there were any differences that arose due to the age of the individual.  The results seem to be more staggering than any of the graphs presented above.  The following code was used to produce a graph depicting percentage of individuals at a particular age making greater than $50,000:

And the graph produced:

ageIncome

This plot also provides some interesting information.  Only those greater than 18 and less than 70 were included because as is evident near age 70 in the graph above, the data appears to be binned into a single age as it increases.  Meaning, if the weight for a given combination of the 40 variables was low enough for, say, 71 and 72, it would have been binned as a single age, 71.  This produces some erratic behavior and I didn't have the data to be able to separate between the ages, so those with age greater than 70 have been excluded.

Several trends are observable.  As age increases to 25 years old, we see that the percentage of those making greater than $50,000 for both males and females is nearly equal.  After this age, separation between the genders begins, and by 30 years old, the difference is 5.04%.  There is a stark difference between the rate of increase in percentage of those in the selected income bracket between males and females as age climbs to about 50 years old, with the rate of increase for males as +1.18% per year and the rate of increase for females at +0.25% per year.  Additionally, as was pointed out by Yannick Kimmel, a likely cause for the steady decline in percentage after age 50 is retirement.  Those with a large income are able to retire earlier possibly producing the observed trend.

Income by Education:

Lastly, I wanted to see the effects of maximum education on the income difference across gender.  For these plots, it was required to refactor the levels in the census data to improve readability with the following code:

After the refactoring was completed, I used the following code to produce the graphs for percentage of population with a certain education and percentage of those with a certain education with income greater than $50,000:

The associated grid:

educationGrid

Appearing above is quite a bit of information.  Lets start with analyzing the education by population portion.  As we can see, the majority of the population of both genders have a maximum education of acquiring a high-school diploma.  Next in line are those who have some college, but no degree, and then those who have an undergraduate degree.  The difference in percentage of each gender with a high-school diploma is very small.  However, there appear to be fractionally more of the population of females with some college, but no degree than males.  Additionally, there appears to be a slightly greater percentage of males who completed their undergraduate degree than females.

What's most impressive is the differences by education and gender of income.  Males with a professional school degree are 24.96% more likely to have an income of greater than $50,000.  The total percentage difference decreases as the level of education decreases, but in many cases, like those with an undergraduate degree, males are 3 times as likely as females to have the specified income bracket (12.18% and 36.13%, respectively).

Conclusions:

Across this entire dataset, one piece of information is overwhelmingly clear:  males are much more likely to have an income greater than $50,000 in 1994-1995.  Unfortunately, though, these results are correlational.  One cannot make a causal conclusion.  We saw that males have a higher rate of increase in income than females with respect to age, but it may be that males are much more likely to take jobs or positions with the salary ceiling is higher relative to females.  Additionally, without more data to determine where each person is working and what each of their job titles are, I was not able to totally understand all the different relationships present.  If I was able to get the data with regards to individual degrees, I would've been able to illustrate the differences or similarities between those with say, a degree in computer science, and we may find different results there.  It also would be helpful to have the exact income that each person has.  Along with data for degrees and job positions/titles, exact income data would allow the illustration of average pay for a gender or race.  Lastly, for future research, it would be beneficial to have cost of living by geography as well as geographical data for individuals.  With this, there is the opportunity to normalize the associated incomes and possibly draw more informative conclusions.

Code

Data

About Author

Kyle Szela

A recent graduate from Northwestern University with a B.S. in Computer Science, Kyle has a strong background in computer engineering and programming concepts. His previous work and academic studies contains a panoply of topics including machine learning, artificial...
View all posts by Kyle Szela >

Related Articles

Capstone
Catching Fraud in the Healthcare System
Data Analysis
Car Sales Report R Shiny App
Data Analysis
Injury Analysis of Soccer Players with Python
Capstone
Acquisition Due Dilligence Automation for Smaller Firms
R Shiny
Forecasting NY State Tax Credits: R Shiny App for Businesses

Leave a Comment

Cancel reply

You must be logged in to post a comment.

No comments found.

View Posts by Categories

All Posts 2399 posts
AI 7 posts
AI Agent 2 posts
AI-based hotel recommendation 1 posts
AIForGood 1 posts
Alumni 60 posts
Animated Maps 1 posts
APIs 41 posts
Artificial Intelligence 2 posts
Artificial Intelligence 2 posts
AWS 13 posts
Banking 1 posts
Big Data 50 posts
Branch Analysis 1 posts
Capstone 206 posts
Career Education 7 posts
CLIP 1 posts
Community 72 posts
Congestion Zone 1 posts
Content Recommendation 1 posts
Cosine SImilarity 1 posts
Data Analysis 5 posts
Data Engineering 1 posts
Data Engineering 3 posts
Data Science 7 posts
Data Science News and Sharing 73 posts
Data Visualization 324 posts
Events 5 posts
Featured 37 posts
Function calling 1 posts
FutureTech 1 posts
Generative AI 5 posts
Hadoop 13 posts
Image Classification 1 posts
Innovation 2 posts
Kmeans Cluster 1 posts
LLM 6 posts
Machine Learning 364 posts
Marketing 1 posts
Meetup 144 posts
MLOPs 1 posts
Model Deployment 1 posts
Nagamas69 1 posts
NLP 1 posts
OpenAI 5 posts
OpenNYC Data 1 posts
pySpark 1 posts
Python 16 posts
Python 458 posts
Python data analysis 4 posts
Python Shiny 2 posts
R 404 posts
R Data Analysis 1 posts
R Shiny 560 posts
R Visualization 445 posts
RAG 1 posts
RoBERTa 1 posts
semantic rearch 2 posts
Spark 17 posts
SQL 1 posts
Streamlit 2 posts
Student Works 1687 posts
Tableau 12 posts
TensorFlow 3 posts
Traffic 1 posts
User Preference Modeling 1 posts
Vector database 2 posts
Web Scraping 483 posts
wukong138 1 posts

Our Recent Popular Posts

AI 4 AI: ChatGPT Unifies My Blog Posts
by Vinod Chugani
Dec 18, 2022
Meet Your Machine Learning Mentors: Kyle Gallatin
by Vivian Zhang
Nov 4, 2020
NICU Admissions and CCHD: Predicting Based on Data Analysis
by Paul Lee, Aron Berke, Bee Kim, Bettina Meier and Ira Villar
Jan 7, 2020

View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day ChatGPT citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay football gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income industry Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI

NYC Data Science Academy

NYC Data Science Academy teaches data science, trains companies and their employees to better profit from data, excels at big data project consulting, and connects trained Data Scientists to our industry.

NYC Data Science Academy is licensed by New York State Education Department.

Get detailed curriculum information about our
amazing bootcamp!

Please enter a valid email address
Sign up completed. Thank you!

Offerings

  • HOME
  • DATA SCIENCE BOOTCAMP
  • ONLINE DATA SCIENCE BOOTCAMP
  • Professional Development Courses
  • CORPORATE OFFERINGS
  • HIRING PARTNERS
  • About

  • About Us
  • Alumni
  • Blog
  • FAQ
  • Contact Us
  • Refund Policy
  • Join Us
  • SOCIAL MEDIA

    ยฉ 2025 NYC Data Science Academy
    All rights reserved. | Site Map
    Privacy Policy | Terms of Service
    Bootcamp Application