Premium Project

Predict Taxi Fares with Random Forests

Use regression trees and random forests to find places where New York taxi drivers earn the most.

  • 11 tasks
  • 1,543 participants
  • 1,500 XP

Project Description

In this project, you get to work with the data from a large number of taxi journeys in New York from 2013. You will use regression trees and random forests to predict the value of fares and tips, based on location, date and time.

Before taking on this Project, we recommend that you have completed Introduction to the Tidyverse. While not required, it can also help to have some extended experience with the packages dplyr, ggplot2 and randomForests which you can get in the following courses: Data Manipulation in R with dplyr, Data Visualization with ggplot2, and Supervised Learning In R: Regression.

The dataset used in this project is a sample from the complete 2013 NYC taxi data, which was originally obtained and published by Chris Whong.

Project Tasks

  • 1 49999 New York taxi trips
  • 2 Cleaning the taxi data
  • 3 Zooming in on Manhattan
  • 4 Where does the journey begin?
  • 5 Predicting taxi fares using a tree
  • 6 It's time. More predictors.
  • 7 One more tree!
  • 8 One tree is not enough
  • 9 Plotting the predicted fare
  • 10 Plotting the actual fare
  • 11 Where do people spend the most?
Robert Grant
Robert Grant

Founder & Data Sherpa at bayescamp.com

Robert offers training and career coaching for statistics and data scientists, especially around data visualization and Bayesian modeling, using software like R, Stata, and Stan. Before setting up BayesCamp, he was a university statistics lecturer and healthcare researcher. He is a contributor to the open-source Bayesian software, Stan.

See More
TECHNOLOGY
  • R
  • Icon Icon Icon professional info