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
Code10 TasksDatabase1,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](https://fivethirtyeight.com/)'s Halloween Candy dataset (one of many fun [datasets](https://data.fivethirtyeight.com/) 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
Technologies
R
Topics
Data VisualizationProbability & StatisticsImporting & Cleaning Data
Nick Solomon Headshot

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

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA