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 > Student Works > Analyzing Data To Detect Bias in Music Reviews

Analyzing Data To Detect Bias in Music Reviews

Nicholas Devin
Posted on Dec 22, 2020
The skills I demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

Introduction

With over a quarter of a million unique readers per day, the music review website Pitchfork is one of the most influential online publications in independent music. Several well-known artists, including Sufjan Stephens and Arcade Fire, have experienced surges in popularity and sales following positive album reviews on Pitchfork. The structure of the reviews is straightforward: a numerical score between 0.0 and 10.0 is given by the author, along with a detailed written data review of the album's contents. There is currently a library of over 20,000 reviews dating back to 1999 available at pitchfork.com.

With popularity and influence often comes controversy, and Pitchfork is no exception, particularly in regards to perceived gender- and genre-based biases in their content. In 2007, a review for hip-hop artist M.I.A.'s album Kala erroneously stated that noted producer Diplo had produced all of the album's tracks, when, in reality, M.I.A. had produced most of the tracks herself.

In an interview with Pitchfork, M.I.A. later said, "There is an issue especially with what male journalists write about me and say 'this must have come from a guy.'" Additionally, Pitchfork's early reviews focused disproportionately on rock music, although they now appear to feature a more balanced mixture of genres.

The goal of this project is to examine whether there is measurable evidence of bias in the proportion of reviews given to albums of different genres and to artists of different genders, as well as review scores based on genre, artist gender, and reviewer gender. Diversity and inclusion are consistently at the forefront of the news, and perceived biases can damage not only a company's reputation, but also its profits. As such, I hope to offer insights that can be of use both to reviewers and to members of the editorial staff at Pitchfork (or at other publications) with regards to bias in the music criticism industry.

Preliminary Data Analysis

For this project, I scraped data from over 20,000 album reviews on pitchfork.com, specifically album title, artist, genre, release year, record label, review date, reviewer name, review text, review score, and whether the album had been given one of two distinctions, "Best New Music" or "Best New Reissue." A snapshot of the data is shown below.

Data Analyzing To Detect Bias in Music Reviews

Pitchfork Reviews

Exploratory data analysis revealed Pitchfork's growth over the years, with the number of reviews published annually growing from just over 200 in 1999 to approximately 1,200 each year since 2005. The average and median review scores are 7.06 and 7.3, respectively, and the histogram of scores follows a left-skewed distribution.

Data Analyzing To Detect Bias in Music Reviews

Data Analyzing To Detect Bias in Music Reviews

Data Analysis of Genre Bias

I first examined the number of reviews published per year belonging to each genre. Albums are classified as one or more of nine genres: Electronic, Pop/R&B, Folk/Country, Rock, Rap, Experimental, Jazz, Metal, and Global.

In each year from 1999 until 2011, Rock was overwhelmingly the most popular genre reviewed, comprising over 50% of all reviews. Since 2011, Rock's share of all reviews has shrunk to about one-third, and other genres which had previously received little attention from Pitchfork--Rap and Pop/R&B, most notably--have gained greater prominence on the site. This progression is shown below for the years 1999, 2009, and 2019. While it is clear that Rock is still the most-reviewed genre by far, there has been an apparent effort by Pitchfork to feature a more equitable mixture.

Average Review Score

I next conducted one-way ANOVA tests with ฮฑ = .05 to determine whether there was a significant difference in how genres were scored in each year from 2001 to 2020. An important caveat is that a single album can be classified as several genres, and the occurrence of one genre may not be independent of another.

To check for independence, I performed a chi-squared test, and the occurrences of different genres turned out to be very much not independent. This makes intuitive sense; if an album is classified as Rock, it is more likely to have a secondary classification of Metal than Rap, for instance. To circumvent this issue, I removed all albums with multiple genre classifications before conducting the ANOVA tests.

In early years, there was a wide variation in average scores by genre, while in later years, the average scores were more uniform, as displayed below.

This led me to hypothesize that average genre scores have grown more similar over time. However, the one-way ANOVA tests revealed quite the opposite. Significant differences in average score by genre have become much more pronounced since 2015, while there was often no significant difference at all prior to 2015. I created the graph below to illustrate this phenomenon. The y-axis shows the base-20 logarithm of the P-value of the ANOVA test for each year. Points below the dotted line at y = -1 indicate a statistically significant difference in average review scores by genre for that year.

Data Analysis of Gender Bias

I first searched for evidence of gender-based bias by comparing the total quantities of masculine pronouns (he/him/his) and feminine pronouns (she/her/hers) contained in the reviews published each year.

Data on Feminine and Masculine Reviews

The analysis revealed that, from 1999 to 2014, there was a fairly constant balance of approximately 80% masculine to 20% feminine pronouns. Starting in 2015, the proportions have gradually grown closer together, and in the last two years, the proportion of feminine pronouns has exceeded 30%. This does not coincide with an industry shift towards greater representation for female artists; rather, it appears that Pitchfork itself has made a concerted effort to review more albums by female artists.

The trend towards a more equal distribution of gender pronouns is even more pronounced in reviews that bestowed a "Best New Music" or "Best New Reissue" distinction. In 2018 and 2020, over 40% of gendered pronouns were feminine, which exceeds any proportion in the chart above.

Data on Detecting Gender

Finally, I wanted to determine whether there was evidence of bias in scoring based on the artist's or the reviewer's gender. To achieve this, I needed a way of detecting gender from text data. I found a module called gender_guesser.detector which contains the method .get_gender. This method reads a string and classifies the gender of the associated name with surprising accuracy, even when given an uncommon name. Occasionally, the method does not recognize or fails to correctly classify the name. The table below shows several examples.

Name gender_guesser.detector.get_gender(Name) Success?
'Lisa' female Yes
'Carol' mostly_female Yes
'Casey' andy (androgynous) Yes
'Chris' mostly_male Yes
'Michael' male Yes
'Bjรถrk' female Yes
'Kanye' unknown No
'Kyle' female No

To further examine gender bias, I restricted only to reviews for which both the artist's and the reviewer's names were classified as male (including "mostly male") or female (including "mostly female"). This left over 6,000 of the original 20,000 reviews, so I still had sufficient data to work with. Among these reviews, I found potential evidence of gender-based bias in scoring; both male and female reviewers give higher scores, on average, to artists of their own gender.

Reviewer Gender Artist Gender Average Score
Male Male 7.1302
Male Female 7.0719
Female Male 7.0870
Female Female 7.1795

Average Score by Gender

I wanted to determine if these differences were significant and if there have been changes in this tendency over time. Deeper analysis revealed very little evidence of regular preference for one artist's gender over another, either for male reviewers or for female reviewers.

For more rigorous confirmation of this, I performed t-tests to determine if there was a significant difference between average review scores per year for male and female artists. The y-axis represents the base-20 logarithm of the P-value of the t-test, and points below the dotted line indicate a statistically significant difference between average scores in that year. For reviewers of either gender, significant differences were rare, and I cannot attribute them to anything more serious than occasional anomalies.

Conclusions

In examining genre-based bias at pitchfork.com, there was evidence that, while Rock albums still comprise the largest share of reviews, the distribution has become more uniform in recent years. Recent years have seen a noteworthy increase in the number of albums classified as Pop/R&B and Rap, both genres that are dominated by artists of color. There has also been a broadening disparity between average review scores by genre, which I verified by conducting one-way ANOVA tests.

Whether this is important for Pitchfork to address is unclear; the more even balance of genres in recent years seems to address, to some extent, the modern concerns of "visibility" and "representation."

Additionally, I found evidence of a shift towards a larger platform for female artists, as well as evidence that both male and female artists are typically reviewed equitably by reviewers of either gender. The findings of this project indicate a trend towards greater visibility for, and a reduction in bias against, female artists and non-Rock genres. While there is still an overall imbalance in these areas, I suspect that this is a symptom of the music industry as a whole and may well be out of Pitchfork's hands.

The GitHub repository for this project is available here.

About Author

Nicholas Devin

View all posts by Nicholas Devin >

Leave 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