Data Study on Harmful Chemicals in Cosmetics

Posted on Oct 24, 2016
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.


The use of cosmetics is growing worldwide. Nowadays, men use cosmetics almost as much as women. Also, cosmetics usage among babies and children has also increased. However, the wide range of products and the complexity of their ingredients raises the concerns of regarding the health effects.. Data visualization based on The California Safe Cosmetics Program can give consumers a quick comparison while making purchasing decision.

The California Safe Cosmetics Program (CSCP) collects data based on The California Safe Cosmetics Act, which requires companies that manufacture cosmetics to report any cosmetics products that contain ingredients known or suspected to cause cancer, birth defects, or other reproductive harm.



Which Category is Being Reported the Most?

Cosmetics covers a wide range of categories. Within the CSCP database, the products are classified into thirteen primary categories, which are Non-Permanent Makeup, Nail, Skin Care, Sun-Related, Bath, Hair Care, Tattoos and Permanent Makeup, Personal Care, Fragrances, Oral Hygiene, Shaving, and Baby.

The first thing for consumers to consider is which category of  products they should be more cautious about while making a purchase. This analysis provides an overview of the products reported in each category. Non-permanent Makeup has the highest count compared to other categories, and Baby has the lowest count relatively.


Data Study on Harmful Chemicals in Cosmetics


What Kind of Make-up?

After understanding that Non-Permanent Makeup has the highest number of products being reported, the question becomes which of these products is  reported the most.

After digging into the sub-category, the analysis shows that Lipsticks/Pencils, Eye Shadow, and Foundations/ Bases are the top three sub-categories.


Data Study on Harmful Chemicals in Cosmetics


Data on Chemical Count in Each Category

Sometimes, the products contain more than  one kind of chemical. From the violin plot below, we can see  that most of the categories contain one kind of chemical, but  Non-Permanent Makeup, such as Nail, and Sun-related products, also may  contain two kinds of chemicals in a single product. The category one should be most cautious about is Hair Care because some of the products can contain up to nine kinds of chemicals in them.


*Some records contain zero chemical count due to updating report for chemical removal.

Data Study on Harmful Chemicals in Cosmetics


Data on Chemical Type

In order to have a better understanding while purchasing cosmetics, this analysis gives the top three chemicals that are used the most within each category.  With the exception of Personal Care Products, Titanium Dioxide is the chemical that is  used the most for every category.

Titanium Dioxide has the stability and ability to protect skin from UV light, and its resistance to discoloration. However, Titanium dioxide dust, when inhaled, has been classified by the International Agency for Research on Cancer (IARC) as an IARC Group 2B carcinogen, meaning it is possibly carcinogenic to humans.

Cocamide Diethanolamine and Retinol / Retinyl Esters are two more chemicals that appear in multiple categories.  





Data on Company and Brands Being Reported 

The analysis below indicates  that L’Oreal USA and Coty are the top two companies with the  highest number of products being reported. The next three are:  Procter & Gamble, Bare Escentuals Beauty, Inc., and NYX Los Angeles, Inc.



Looking at the top company, L’Oreal USA, let’s discover which brand under L’Oreal has highest number of products being reported. The word cloud shows that L’Oreal is the top one, and following are Lancome and Maybelline. Then YSL and Giorgio Armani.



Data Trend Analysis

Even though it seems like a lot of well-known brands have products containing reportable chemicals, some companies have been taking actions after being reported. From the Timeline of Reported Cosmetics Analysis from 2009 to 2016, it would appear that 2010 was the year with the  highest ratio of products first being reported. In the same year, about half of the reported products’ chemicals were removed.

However, in 2011, about 2/3 of the products were reported again. Overall, the number of products reported went down after 2011.  Despite a slight increase again in 2014, in general it would appear as if the California law is working to make cosmetics safer.  There is a clear trend showing a decrease in reportable chemicals over time.  



As for how companies dealt with the challenge of having reportable chemicals in their products, it looks as though there were initial efforts to remove the chemicals, but subsequent to this, products tended to be discontinued rather than altered.  This might due to the difficulty of the removal process or the product life-cycle.



  • Non-permanent Makeup is most likely to contain reportable chemicals in the product  
  • Within Non-permanent Makeup, Lipsticks/ Lip Pencils, Eye Shadow, and Foundations/ Bases are the top three categories
  • Most categories contain one kind of chemical within the products. Hair Care products are able to contain up to nine kinds of chemicals within the products.
  • Titanium Dioxide is the chemical that is used the most in cosmetics
  • L’Oreal under L’Oreal USA is the brand that has highest number of products being reported
  • Overall trend for the new products being reported is going down. Since 2010 most of the companies choose to discontinue the products rather than  remove  the chemical.


Future steps

  • Which companies take the longest to remove a chemical or discontinue the products?
  • Which company is most likely to be reported a second time?
  • What chemical takes the longest time to remove?
  • Which chemical is most likely to be reported second time?

About Author

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