Using AI to Predict a Player’s Future Offensive Performance in Fantasy Baseball

August 7, 2017
· 2 min read

This post was originally part of the DataRobot Community. Visit now to browse discussions and ask questions about the DataRobot AI Platform, data science, and more.

The Challenge

Millions of people play fantasy baseball using leagues that are typically draft- or auction-based. Choosing a team based on your favorite players or just the last year’s performance is likely to field a weaker team. Baseball is one of the most “documented” of all sports, statistics-wise. With the wealth of collected information, you can derive a better estimate of each player’s true talent level and their likely performance in the coming year. This allows for better drafting as well as helps avoid overpaying for players coming off of one-of-a-kind (“career”) seasons.

The Solution

When drafting players for fantasy baseball, you must make decisions based on each player’s performance over their career to date. Basing evaluation on personal interpretation of a player’s performance is likely to overvalue the player’s most recent performance. In other words, it’s common to overvalue a player coming off a career year or undervalue a player coming off a bad year. The goal is to generate a better estimate of the player’s value in the next year based on what he has done in prior years. If you build a machine learning model to predict a player’s performance on the next year based on their prior performance, you can build a system that will help you identify when these over or under performances are flukes or a sign of a change in the player’s future performance.


Sam is a baseball fanatic with a good gut-feel for the players but nothing to back up the hunches. Winning her head-to-head fantasy baseball league brings both bragging rights and potential financial gains. Sam is going to use an existing baseball database of past performance to identify those players with impressive weighted on-base averages (wOBA), selecting that statistic because it is a catch-all metric that indicates overall offensive value at the plate.


Training data
Prediction data 
Data dictionary

USe case
Predicting Player Performance for Fantasy Baseball
Learn more
About the author
Linda Haviland
Linda Haviland

Community Manager

Meet Linda Haviland
  • Listen to the blog
  • Share this post
    Subscribe to DataRobot Blog
    Newsletter Subscription
    Subscribe to our Blog