Data Analysis of Gender Inequality in the Movie Industry

Posted on May 9, 2022

The skills the authors demonstrated here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.


Over the past 100 years, women's participation in the workforce has drastically changed based on data. In 1920, women made up only 20% of the labor force, but changes in laws and women's rights led to an increase in women not only joining but also staying in the workforce. This increase peaked in 1999 when women made up 60% of the labor force and has since decreased down to 47%.

While women's participation in the workforce has generally improved over time, certain professions and fields are still far behind others in terms of gender representation. For example, only 33% of workers in the tech sector are female, and only 25.5% of architects are female. Likewise, women are very underrepresented in the movie industry; from actors, to directors, to writers, all of these professions are male-dominated. To study this underrepresentation, I utilized Exploratory Data Analysis (EDA) techniques in Python to assess gender inequality across professions, movie genres, budgets, and time.

The Data

The main data set was a movies data set from Kaggle, which contained over three decades of movie data starting from 1980. The data was scraped from IMDb and contained 7,512 total movies, each listed with their general information. In addition to this, three other data sets were obtained from GitHub under a Hollywood Gender Data repository: one table for actors, one for directors, and one for writers.

Each of these tables listed movie titles and general movie information, along with the name of the person holding the respective profession for each table, and additionally that person's gender (disclaimer: the gender data was listed in terms of the gender binary, thus all entries are strictly listed as either male or female, and none as nonbinary, trans, or any other gender identity).

Gender Proportions by Profession

To begin, I wanted to get a general idea of how balanced or unbalanced the gender proportions were in each profession, so I computed the gender proportions for lead actors, directors, and writers across all 7,512 films.


I found that 77% of films from 1980-2020 had a male lead actor, 94% had a male director, and 91% had a male writer. We can clearly see that all three of these roles are male-dominated, with directors holding the highest rate of gender inequality.

Change Over Time

Now that I knew that all three professions were skewed in favor of men, I wanted to see if this imbalance had changed or improved over time. I started out by looking at the change over time for the gender of lead actors.

As you can see in the bar graph above, there is a general increase over time in female lead actresses. In 1980, only 18% of movies had a female lead actress, whereas in 2020, 38% of movies had a female lead actress.

Disclaimer: In 2020, only 7 movies in the data set listed the director's gender.

Next I analyzed the change over time for directors. While there is an increase in female directors over time, this increase is much smaller than it was for lead actors. Since the change in gender proportions is much more staggered than it was in the previous example, I decided to compare the percentage of women in the role across the first and last decades in the bar graph instead of the individual years. In the 1980's, only 3% of movies were directed by women. This rate increased marginally to 7% in the 2010's.

Lastly, I analyzed the change over time in gender proportions for writers. Just like for directors, there is an increase over time, but this increase is small and also very staggered. In the 1980's, 7% of movies were written by women, and this percentage only increases to 11% in the 2010's. Overall, all three professions saw an increase in women in each role over time, but that increase was much more substantial for actors than it was for directors or writers.

Data for Gender by Genre

Next I sought to determine whether gender ratios would vary depending on the genre of the movie, and whether these ratios might be better or worse depending on the profession.

Disclaimer: No Family or Western movies in the data set contained the gender of the writer

As you can see in the graphs above, gender ratios are not always consistent across genre. This is most clearly seen in the actors bar graph, where some genres are almost entirely male-led, while others are more evenly split. However, none of the genres even come close to achieving this for directors or writers. This leads to some inconsistency across professions. For example, Family movies are almost entirely directed by men, but Family is the only movie genre where the majority of lead actors are women. Other genres are consistently male-dominated, like Western movies.


The next topic I decided to investigate was whether the gender of the lead actor, director, or writer affects the budget of the movie. While I knew I wouldn't be able to get concrete proof that having women work on a film would automatically result in a lower budget, I chose to look at mean budgets by gender and profession over time and see if there was any noticeable trend.

While there are a few small gaps in the graphs due to missing data, the general trend is clear: male-led movies tend to be given higher budgets than female-led movies across all three professions. Aside from 2020, where the large spike in budget is likely due to sparse data, we can see that over time, male-led movies have seen a steady increase in budget. Female-led movies, however, see much more fluctuation, occasionally spiking up enough to marginally surpass male-led movies. This is likely because the majority of movies are male-led, and thus a larger sample would lead to a more constant trend.

Lead Actor Gender by Director/Writer Gender

Lastly, I chose to investigate whether the gender of the director or writer affects the gender of the lead actor.



I found that there is a higher proportion of movies with a female lead actress when the director or writer is female, than when the director or writer is male. More specifically, we see that 50% threshold broken when there is a female writer: 59% of female-written movies have a female lead actress.


To summarize my findings from the EDA shown above, I determined that the movie industry is not egalitarian, since the roles of lead actor, director, and writer are much more often filled by men than women. This gender imbalance is most notably seen in directors, where only 6% of movies from 1980 to 2020 were directed by women.

However, there has been an overall increase in women in these roles over time, although for directors and writers, this increase is very small. When it comes to movie genre, gender ratios will vary based on the genre and the profession; we see the most notable variance in the gender of lead actors. Additionally, movies with female lead actresses, directors, and writers all tend to have lower budgets than their male counterparts. Lastly, movies directed or written by women have a female lead actress more often than those directed or written by men.

Limitations and Future Analysis of Data

  • Instances of incomplete data led to some gaps in genre and budget over time breakdown
  • No inclusion in the data of genders outside of the gender binary
  • Further study: nonbinary, transgender, and other LGBTQ identities; also BIPOC, specifically women of color


GitHub | LinkedIn

About Author

Julianna Douglas

Data analyst with a background in mathematics, strengthened by a variety of coding languages, a knack for problem-solving, and a passion for communication. Highly motivated to use data analysis in an interdisciplinary way to bring about positive change.
View all posts by Julianna Douglas >

Leave a Comment

No comments found.

View Posts by Categories

Our Recent Popular Posts

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 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 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 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