Skip to main content
HomeRExplore 538's Halloween Candy Rankings
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 Tasks1,500 XP

Loved by learners at thousands of companies

Project Description

In this project, you'll learn all 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

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




Data VisualizationProbability & Statistics
Nick Solomon HeadshotNick 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


What do other learners have to say?