DRaysBay: An SB Nation Community

Navigation: Jump to content areas:


Sports blogs for fans, by fans.
New Blog: World Soccer Digest for Soccer Fans!

Projection system / Need some help!

First, my help request: WHERE can i find data logs or game logs for players for the past few seasons? The simulation needs to know specific AB results, as in not just 24 HR and 110 RBI, but as in AB 145 was a strikeout looking. Let me know where I Can find this stuff.

Hey, so I am working on developing a simulation in C++ that will model a player (position or pitcher) season by AB in the following way:

Initial outcome space: (AB=0)

Determined by 1/4 weight to past 5 AB, 1/4 weight to first 10 AB last season, 1/2 weight to career line

Use outcome space to form initial outcome (random function with weights for all outcomes)

First step (AB=1)

d(outcome)/d(AB) = 1/4 * prob(past 5 outcomes, including AB=1 and four from the previous season) + 1/4 * prob(outcomes within +/- 10 AB of the same numbered AB last season) + 1/4 * prob(average of last two seasons) + 1/4 prob(career line)

Outcome space (AB=1)

add all the d/dAB's to the outcome probabilities. This should be approximately 0 for most outcomes, except for the outcome that just happened in AB=1. Note that d/dAB doesn't ever decrease for any outcome, but rather, simply increases for some outcomes more than others. This is what creates the secondary effects that make the simulation fun.

Second step (AB=2)

Determined by outcome space, probabilistically

d(outcome)/d(AB) changes in the same way, including AB=1 and AB=2

Iterate for as many AB's as you would like.

Do the same for pitchers, but obviously reverse the outcome space.

 

Obviously, the weights and choices of games are totally arbitrary at this point, but I'm going to develop it this way first in order to get some results and publish the program here in a day or two. If there are any experienced C++ guys or data miners, PLEASE let me know!!!!

0 recs  |  Comment 4 comments

Story-email Email Printer Print

Comments

Display:

A web site with baseball statistics is on my 'things to do list'

Baseball1 contains some information that might be of some relevance to what you’re doing. Gives you a few different options for handling the data.

Remember, once you’ve got your appy together and running, show it to us.

Check out my blog on web development at kericr.wordpress.com

by kericr on Mar 31, 2009 12:14 PM EDT reply actions   0 recs

thanks RJ, Brickhaus, and Kericr

“We will always love each other,” Hammel said. “We’ve played together for a long time and at a lot of levels.”

by elijahdukes on Mar 31, 2009 5:27 PM EDT reply actions   0 recs

Comments For This Post Are Closed


User Tools

Founded in 2005. DRaysBay is home to "progressive statistical analysis and reasoned argument."
Start posting about the Rays »

Join SB Nation and dive into communities focused on all your favorite teams.

FanShots

Quick hits of video, photos, quotes, chats, links and lists that you find around the web.

Recent FanShots

Desert Dogs to play in the AFL championship @ 2:30 EST.
Desmond Jennings Makes the Tops AA-All-Stars
ABC Coalition to Vote on Draft Report Today.
Fan page for Dick Bosman, Rays minor league pitching coordinator
Upton's Struggles vs Lefties
Evan Longoria wins the Silver Slugger Award
09 Minor Leaguers File for Free Agency
Longoria on the MLB 2k10 cover?
Thank you Tim Marchman.
Longo's Slugcon by Location

+ New FanShot All FanShots >


VPs of Baseball Operations

Nando_small R.J. Anderson

Raysring1_small Tommy Rancel

Zorilla_small FreeZorilla

Price_small Erik Hahmann

Ticket Account Executive

Rays_small Steve Slowinski