Beyond the Box Score: An SB Nation Community

Navigation: Jump to content areas:


Sports blogs for fans, by fans.
Around SBN: Spencer Hall's Sports Meme Power Rankings

ground into double play?

I'm writing a simulator in C, based around the core idea of salb918's simulator in MATLAB, for the purpose of evaluating lineups. Currently I'm using PAs, BB, hits, 2B, 3B, HR, SO as the stats. It's somewhat computationally intensive; to run all 9! combinations takes about 2.5 days on my Powerbook G4 if you want to get within +/- 1 run per season with 95% confidence. (translates to +/- 0.006 runs per game with 95% confidence)

The simulator generates a random number, and if that number falls within the range assigned to walks (as determined by BB/PA) then a walk is assigned. Otherwise, it falls to the next case, i.e., within ((H-2B-3B-HR)/PA + BB/PA) then a single is assigned. So on and so forth.

Star-divide

My simulator clearly underestimates offense - I forgot to include hit by pitch (I'm making the correction for the next run, but right now I'm in the middle of a run) and it doesn't include sac fly, sac hits, steals, or speed (i.e. no one scores on a single unless they're standing on third).

What I am wondering, though, is how to take into account GIDP (GDP). That stat is reported at baseball-reference.com, but clearly GIDP is dependent on the baserunner situation - you have to have a runner on first. For example, in 2005, Ausmus hit into a double play 17 times. Originally I was thinking of just assigning this number like any other stat, but that would probably actually underestimate the percentage chance of hitting into a double play, as the actual stat represents the number of times that it actually happened, which requires a runner on first and less than 2 outs. In my simulator, there won't always be a runner on first. I suppose since I'm not taking into account speed, steals, sac fly or sac hit, it's probably ok - it'll help correct upward - but is there a stat out there for GIDP that only includes at bats where a double play can actually take place?

0 recs  |  Comment 5 comments

Story-email Email Printer Print

Comments

Display:

Hmm...
Perhaps a combination of a player's speed and propensity to hit groundballs would give you an adequate expectation?

Also, Prospectus tracks DP Opps, I think...

http://www.baseballprospectus.com/statistics/sortable/index.php?cid=69985

by Dan Scotto on Mar 17, 2006 5:33 PM EST reply actions   0 recs

baseball prospectus
I guess this might be a reason to subscribe to Baseball Prospectus, then. Do they also track % ground balls vs. fly balls?

by false cognate on Mar 18, 2006 5:59 PM EST up reply actions   0 recs

They track them...
But I don't think that they give stat reports on them.

The Hardball Times, right now, has great data on batted ball types... LD%, G/F ratio for batters. I think if you rework the data, you can get percentages for all three types of batted balls...

by Dan Scotto on Mar 20, 2006 12:21 AM EST up reply actions   0 recs

I wouldn't include it
I think you capture most of the salient features of an offense without any GIDP outliers (eg Sean Casey).

If you did want to do it, I would include a GB/FB split for a player and "award" him a DP if he hits a GB with runners on with the same frequency that a GB turns into a GIDP for the league as a whole.

I'm glad that somebody is trying to make my broke-ass code go a little faster...let me know if it works well - and I sure would appreciate a copy of your efforts if things work out.

no one scores on a single unless they're standing on third

I would allow players to take an additional base on two-out hits (eg, score from first with a two-out double).

by salb918 on Mar 17, 2006 7:37 PM EST reply actions   0 recs

I'll try that
That might bring the total runs scored up enough to match the run estimator created by Ken Arneson. I'll try to make the changes in the code as soon as I can and see what it does.

by false cognate on Mar 18, 2006 6:20 PM EST up reply actions   0 recs

Comments For This Post Are Closed


User Tools

We use numbers and stuff.
Community Guidelines
Why be a member?
Start posting on Beyond the Box Score »

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

FanPosts

Community blog posts and discussion.

Recent FanPosts

Leopold_butter_scotch_southpark_small
Using the TVC
Small
Determining Batted Ball Rates using Pitch Type and Location
Small
a new xBABIP calculator
Img587561916661595
Top 15 high school MLB draft prospects
Small
PZR-based Win Values 2001-2006
Small
The "30 parks on a budget" challenge
Sunflower_small
World Series Simulation, Game #6
Small
JT20 Dynasty League
E52205a2_small
New Look
Sth70021_small
Exploring Hit f/x, Albeit Badly

+ New FanPost All FanPosts >

FanShots

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

Recent FanShots

Defensive Projections Take 2
The Baseball Nation Sim League has an opening
Primer on BaseRuns
Cool Baseball Infographics
ESPN's Jerry Crasnick on defensive metrics
I’m also a follower, since Brian Bannister’s on our team, of sabermetric st...
Top Ten Baseball-Reference.com's Sponsorships
Primer on Linear Weights
JC Bradbury on "Hot Stove Myths"

+ New FanShot All FanShots >

BtB on Twitter

Main Feed: @BtBScore

Tommy B: @tommy_bennett
Sky: @BtB_Sky
Dan: @dturkenk
Harry: @harrypav
Jinaz: @jinazreds
Jack: @jh_moore
Erik: @Erik_Manning
Tommy R: @trancel
Justin: @justinbopp

Subscribe to BtB via Email

Enter your email address:

Delivered by FeedBurner

BtB Goes Social


Managers

Nando_small R.J. Anderson

Limes_125_small Sky Kalkman

E52205a2_small Tommy Bennett

Editors

Face_small Harry Pavlidis

Rawlings_baseball_bigger_small Dan Turkenkopf

770insig_small Jeff Zimmerman (TucsonRoyal)

Aviles_small Justin Bopp

Authors

Banny_small erik

Raysring1_small Tommy Rancel

Jinaz-reds-avatar_small JinAZ

Jmlogo_small Jack Moore

1753738656_110919ebe9_o_small vivaelpujols

1_small Graham

Baseball_small Mike Rogers

Redcap_small SFiercex4

Small Patrick Clark

Walter_album_small Walter Fulbright