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

Filter posts by...

 

Monday, November 30, 2009

Retrosheet: Invalid Pitch Codes - as per Clem Comly validation rules

By Tangotiger, 05:32 PM

I posted this to the Retro group, but presumably others here may find this interesting.

***

There’s 553 pitch records that don’t correspond to Clem’s rules, that he noted last year.  I did my best to program those rules, but it’s possible that I either made a mistake, or that I misinterpreted Clem’s rules.

If you click on this link:
http://tangotiger.net/retrosheet/reports/invalid_pitch_codes.html

You will see the entire set, including the reason that the pitch code field is invalid.  For the 2009 seasons, there were only 19 invalid records, all of which failed for the same reason: the event was C/E2, and the last character in the pitch code sequence must be an N (and it wasn’t).

If I have made any mistake at all in my report, please let me know, so we can go over the rules and my code to make sure we got it right.  I think it’s very good that there are so few mistakes in the pitch code sequence to begin with.  It is, by far, the most labor-intensive of the fields to try to process, and with some 4+ millions records that has that field filled, that’s a tiny error rate.

Tom

***

No one reported anything back, so I will presume that it at least passed the sniff test.  If somebody is processing the pitch sequences for the 2009 season from Gameday or other sources, I’d be interested to know if we can just tack on the “N” at the end of each sequence for those 19 records.

(12) Comments • 2009/12/01 • SabermetricsData
Page 1 of 1 pages

Latest...

COMMENTS

May 26 07:27
“Why Kickstarter works”

May 26 03:03
Pete Palmer’s new book: Basic Ball

May 26 01:11
Largest demonstration in Canadian history?

May 25 19:41
What sabermetrics is NOT

May 25 16:59
Howard Stern

May 25 15:12
Do pitcher’s reach back for velocity when needed?

May 25 12:51
Chad Curtis

May 25 11:26
Lack of hustle during a game

May 25 10:58
Rooting for laundry

May 25 02:38
NFLPA lawsuit against collusion

THREADS

November 30, 2009
Retrosheet: Invalid Pitch Codes - as per Clem Comly validation rules