Player Distributions App

The motivation behind this app is to create a dynamic interface for comparing the historical fantasy production of MLB players. We've tried to make it as customizable as possible, allowing for specification of DFS site scoring format, per-game total, per-plate-appearence, or per-inning comparison, and discrete quantile inclusion. As part of our commitment to data transparency, you can also download the raw data that produces the output, allowing you to explore nuances and game conditions that aren't displayed in the graphical output.

App User Guide

App interface
  1. Pitcher input: Select pitchers to compare in the output, you can view one or more pitchers and/or batter. You can select pitchers by either clicking the box and scrolling down to the desired pitcher or by beginning to type the pitchers's name and then clicking the desired pitcher when their name appears in the dropdown.
  2. Batter input: Select batters as in the pitcher input. In the app you can compares batters to batters, pitchers to pitchers, or batters to pitchers.
  3. Site input: Select site scoring scheme to compare players over. DraftKings, FanDuel, or Yahoo only, can't select multiple.
  4. Total or per inning/plate appearance input: The app is defaulted to compare players' scoring distributions as game totals ("Total"). If you want to compare batters' fantasy point per plate appearance distributions or pitchers fantasy point per inning distributions, you can do so by selecting "Per Inning/PA". When comparing a pitcher to a batter, selecting "Per Inning/PA" will compare batter(s)' per-plate-appearance fantasy production to pitcher(s)' per-inning production.
  5. Starts only input: Select whether to include only games in which the player started in their distributions. This only applies to batters, relief pitchers' appearances will still show up in their distribution if this input is checked. This input should be used to remove games in which a batter pinch hit, pinch ran, etc. from their per-game distribution.
  6. Show quantiles input: This input allows you to control whether or not the distribution output also includes the scoring quantiles of the selected players that are indicated by the vertical lines and numbers in feaure (8). We think these are import metrics to consider, but as more players are compared, the output can become increasingly crowded.
  7. Raw data download button: Clicking this button downloads a .csv file called "ASA MLB Player Distribution Data.csv"; this file can be opened in Microsoft Excel. The file contains extra columns that aren't featured in the app, but might be of interest to DFS players trying to gain an edge based on further game considerations like weather, umpire, opponent, or home/away. The data only contains rows (each row represents a single player's box score line for a single game) for players that are selected in inputs (1) and/or (2). When a comparing pitchers to batters.
  8. Scoring quantiles: When "Yes" is selected in input (6), the output will show players' 5th, 10th, 25th, 50th (median), 75th, 90th, and 95th percentile fantasy scores from the current season. The numbers that appear on the x-axis are rounded scores. To aid with quantile discrepancy, the solid vertical line represent median production, the long dashed lines represent 25th and 75th percentile production, the dash-and-dotted lines represent 10th and 90th percentile production, and the dotted lines represent 5th and 95th percentile production levels.
  9. Player color legend: Refer to this legend for distinguishing multiple players' distributions and quantile production levels.