Premium Project

Explore 538's Halloween Candy Rankings

Get ready for Halloween by digging into a FiveThirtyEight dataset with all your favorite candy!

Start Project
  • 10 tasks
  • 1,017 participants
  • 1,500 XP

Project Description

In this project, you'll use skills from Multiple and Logistic Regression to learn about Halloween candy. You'll start off by exploring FiveThirtyEight's Halloween Candy dataset (one of many fun datasets they provide) and figuring out what kinds of data it contains. Then you'll fit and evaluate linear and logistic regression models. Get ready for a scary fun time!

Project Tasks

  • 1Importing packages and data
  • 2Explore the distributions of categorical variables
  • 3Taking a look at pricepercent
  • 4Exploring winpercent (part i)
  • 5Exploring winpercent (part ii)
  • 6Exploring the correlation structure
  • 7Fitting a linear model of winpercent
  • 8Evaluating the linear model
  • 9Fit a logistic regression model of chocolate
  • 10Evaluate the logistic regression model
Nick Solomon

Data Scientist

Nick has a degree in mathematics with a concentration in statistics from Reed College. He's worked on many data science projects in the past, doing everything from mapping crime data to developing new kinds of models for social networks. He's currently a data scientist in the New York City area.

See More


  • R LogoR
  • Topics

    Data VisualizationProbability & StatisticsImporting & Cleaning Data