DRaysBay: An SB Nation Community

Navigation: Jump to content areas:


Sports blogs for fans, by fans.
New Blog: Sounder At Heart for Seattle Sounders 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.

FanPosts

Community blog posts and discussion.

Recommended FanPosts

Srq2_small
The Ice Cream Paint Job
Zorilla_small
OTTOTD 10/29: Raymondo's Cliff Lee Poo Sandwich Edition
Small
Fitting in

Recent FanPosts

Remer_small
The Greatest (Devil) Rays to Ever Wear... #35
Remer_small
The Greatest (Devil) Rays to Ever Wear... #36
Mushroomray_small
OTTOTD 11/06/09: Dicktowel Weekends
Remer_small
The Greatest (Devil) Rays to Ever Wear... #37
Pic
Top 30 Starts of 2009 - Part 5
Remer_small
The Greatest (Devil) Rays to Ever Wear... #38
Charzissou_small
OTTOTD 11/5: Back to Normal Edition
Remer_small
The Greatest (Devil) Rays to ever Wear... #39
Small
Time for a little bullpen de ja vu
Crsgsm1_small
Pitch f/x ideas

+ New FanPost All FanPosts >

FanShots

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

Recent FanShots

The King of Cork -- woo hoo
Fangraphs Minor Review of the '09 Rays
MLB Network to televise AFL's Rising Stars Game
Topps honors Desmond Jennings and Alexander Colome
Dan Sileo is suspended!
Former All-Star 2B Freddy Sanchez signs 2 year, 12M extension with the Giants
FanShots - Raw Charge - the static cling that brings Tampa Bay Lightning fans together
One year ago Today
Want AFL Scouting Reports?
The Rangers have announced that hitting coach Rudy Jaramillo has declined...

+ 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