Navigation: Jump to content areas:


Pro Quality. Fan Perspective.
Login-facebook
Around SBN: Tiger Woods, Tony Romo Grouped Together At Pebble Beach

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!!!!

This post was written by a member of the DRaysBay community and does not necessarily express the views or opinions of DRaysBay staff.

Comment 4 comments  |  0 recs  | 

Do you like this story?

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  

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  

Comments For This Post Are Closed


User Tools

Founded in 2005, DRaysBay is home to, "Progressive statistical analysis and reasoned argument."

Please read our Community Guidelines.

FanPosts

Community blog posts and discussion.

Recommended FanPosts

Small
Zobrist vs Pedroia vs Cano
Scaled_php_small
Rays Community Prospect #31 Runoff
127992041_extra_large_small
Fantasy Baseball 2012

Recent FanPosts

Scaled_php_small
Rays Community Prospect #34
Scaled_php_small
Rays Community Prospect #33
Scaled_php_small
Rays Community Prospect #32
Scaled_php_small
Rays Community Prospect #31
Scaled_php_small
Rays Community Prospect #30 (Again)
Scaled_php_small
Rays Community Prospect #30 Runoff
Small
Take A Moment To Rosterbate
Scaled_php_small
Rays Community Prospect #30

+ New FanPost All FanPosts >

FanShots

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

Recent FanShots

Jeff Bagwell, Fred McGriff, The Hall of Fame, and 400 Home Runs
ESPN Chat with Matt Moore
Danny Clyburn: 1974-2012
Joe Maddon Town Hall Contest
Hickey said as of now all of the starters -- Wade Davis, Jeff Niemann,...
White Sox sign Dan Johnson
Indians acquire Canzler
Justin Ruggiano to Elect Free Agency
Dougdirt over at MinorLeagueBall compiled John Sickels' rankings with WAR values from Victor Wang's research.

Thread here.
The increasingly desperate search for offense has caused some teams to...

+ New FanShot All FanShots >

DRB Fantasy Baseball

Friends of the Site

DRB Suggestion Box

Drb4_medium


Managers

Slowsky__1__small Steve Slowinski

Dad_small Jason Collette

Brad_small BWoodrum

Price_small Erik Hahmann

Analysts

Lob-city_design_small rglass44

Untitled_small EminenceFront

Small Mulva

Rutg_uakjmedjwh9ndzd4lkll_small Imperialism32

100_1952_small MrNegative1

Steak-with-crown_small CBJones

Whelk_small Whelk

Small PGP

Scaled_php_small mr. maniac

Tampa_theatre_small jcmitchell

Me_small John Gregg