THE BOOK cover
The Unwritten Book is Finally Written!
An in-depth analysis of: The sacrifice bunt, batter/pitcher matchups, the intentional base on balls, optimizing a batting lineup, hot and cold streaks, clutch performance, platooning strategies, and much more.
Read Excerpts & Customer Reviews

Buy The Book from Amazon


SABR101 required reading if you enter this site. Check out the Sabermetric Wiki. And interesting baseball books.
MOST RECENT ARTICLES
MAIL : You ask | We say

Advanced


THE BOOK--Playing The Percentages In Baseball

<< Back to main

Thursday, January 07, 2010

SABR 101 - PITCHf/x tools

By Tangotiger, 02:31 PM

Steve points two two cool PITCHf/x tools, one of which I remember seeing, but have forgotten about, and another is a new one to me.

Texas Leaguers gives us this.  And the “pitch results” section is right in line with how I do my work, if you also include a plate-count split.  This was done by Trip Somers, and I approve heartily.

I remember seeing Lefkowitz’s site, but I don’t know if I ever linked to it.  Definitely my bad if I didn’t.  It’s more to look for individual pitches, unless I’m mistaken.

Great job to everyone that keeps the PITCHf/x flame burning.


#1    Mike Fast      (see all posts) 2010/01/07 (Thu) @ 16:31

Tom, no link in your post, but I assume you’re talking about Steve’s Sabermetric Primer here:
http://www.vivaelbirdos.com/2010/1/7/1238375/sabermetric-primer-an-assortment


#2    Tangotiger      (see all posts) 2010/01/07 (Thu) @ 16:50

Ack, right.


#3    Nick Steiner      (see all posts) 2010/01/07 (Thu) @ 20:54

Glad to see you read VEB Tom!

Trip Somers has said he’s going to add a lot more stuff to his website.  I think when he does that, it will be one of the best resources we’ve had in a while.  Not only do you get to split it up by pitch type and batter hand, he let’s you choose the time frame as well.


#4    StatZombie      (see all posts) 2010/01/07 (Thu) @ 23:38

As a lazy individual who knows nothing about web querying and has no interest using an in-browser tool to get lots of data, I was curious if there was some _other_ way to acquire or download the pitch F/X data, for either the 2008 or 2009 season, or preferably both.

Not looking for anyone to give me their hard work, but was interested if there existed a freely available database, similar to the Lahman one.


#5    Mike Fast      (see all posts) 2010/01/08 (Fri) @ 01:38

StatZombie, Darrell Zimmerman has what you want here:
http://www.wantlinux.net/category/baseball-data/


#6    Trip Somers      (see all posts) 2010/01/08 (Fri) @ 05:28

Plate-count split is actually next on my list. I need to run a program on my 2009 data to add count data to each pitch, then I’ll throw in the code to make it part of the tool.

Thanks for the love.


#7    Brian Cartwright      (see all posts) 2010/01/08 (Fri) @ 15:24

Thanks for mentioning this, I hadn’t thought to do add the pitch count

@counter I had in before to number the pitches in each PA.
@nb and @ns initialize number balls and number strikes to 0.

SET @counter:=0;
SET @nb:=0;
SET @ns:=0;
SET @previousPA_CT=’’;

DROP TABLE IF EXISTS mybbos.pitches;
CREATE TABLE mybbos.pitches
SELECT
ab.YEAR_ID,
ab.GAME_ID,
ab.GAME_PA_CT,
p.id AS GAME_PITCH_CT,
@counter:=IF(@previousPA_CT=p.gameatbatid,@counter+1,1) AS PA_PITCH_CT,
@nb AS BALLS_CT,
@ns AS STRIKES_CT,
# if new PA then pitch_ct=1, else add 1
# for first pitch nb and bs will be 0

ab.BAT_TEAM_ID,
ab.RESP_BAT_ID,
ab.FLD_TEAM_ID,
ab.RESP_PIT_ID,
ab.GAMEDAY_CD,
p.des,
p.type,
p.x,
p.y,
.....
@previousPA_CT:=p.gameatbatid AS temp,
@nb:=IF(@previousPA_CT=p.gameatbatid AND p.type=’B’,@nb+1,0) AS temp2,
@ns:=IF(@previousPA_CT=p.gameatbatid AND p.type=’S’,IF(@ns=2,2,@ns+1),0) AS temp3
# at end copy current atbat_id for later comparison
# now increment balls and strikes if still same PA
# don’t increment strikes past 2
FROM gameday.pitches AS p
....


Page 1 of 1 pages


Name (required)
E-Mail (optional; WILL be published)
Website (optional)

<< Back to main


Latest...

COMMENTS

May 25 11:41
Do pitcher’s reach back for velocity when needed?

May 25 11:33
“Why Kickstarter works”

May 25 11:32
Howard Stern

May 25 11:26
Lack of hustle during a game

May 25 11:22
What sabermetrics is NOT

May 25 10:58
Rooting for laundry

May 25 10:14
Largest demonstration in Canadian history?

May 25 02:38
NFLPA lawsuit against collusion

May 25 01:43
Neal Huntington’s best moves

May 24 17:04
Firefox, IE, or Chrome?