February 9, 2010

Fangraphs Player Search:

Order Now


Get "The world champ of baseball annuals." The Hardball Times Baseball Annual 2010 features articles by THT's staff as well as Bill James, Tom Tango and Craig Wright and contains much, much more. Please support THT and use this link to purchase the Annual.


Get the fantasy book that everyone's raving about! Edited by THT Fantasy's Rob McQuown and Michael Street, and featuring our own Matt Hagen on prospects. Shipping now from ACTA!


And here's the full roster.



Or you can search by:

Sports Tickets

Gear up for baseball season with Chicago White Sox tickets and New York Yankees tickets. LA Angels tickets, Houston Astros tickets, and Atlanta Braves tickets are hot sellers! You can get Boston Red Sox tickets, San Diego Padres tickets or Chicago Cubs tickets for your favorite baseball fan. Coast to Coast Tickets has the best MLB tickets like Minnesota Twins tickets, LA Dodgers tickets, Milwaukee Brewers tickets, New York Met tickets and St. Louis Cardinals tickets.
Find premium Chicago Cubs tickets and other Chicago tickets at JustGreatTickets.com.
Chicago Cubs Tickets
Chicago Tickets
Championship Tickets



Creative Commons License
All content on this site (including text, graphs, and any other original works), unless otherwise noted, is licensed under a Creative Commons License.

Web based PITCHf/x tool

by Josh Kalk
November 14, 2007

The PITCHf/x data is a gold mine of information but sadly only a few people have been doing a lot of research with it. The main reason for this is it is very complicated to go to MLB's servers and download the data and then put it into a form that is usable. So what I would like to do is to create a tool that will allow anyone to access the data. This tool is still far from complete but it finally is now at a point where it is fast enough and powerful enough to release. Consider this version 1.0 with more to come.

Basically, what I have done is stored the 300,000+ pitches tracked by PITCHf/x into a database and added a simple form for users to query and then look at the location of where the selected pitches crossed home plate. Note that the perspective is from the catcher (or umpire) so a negative horizontal value is closer to a right handed batter. Currently, you can choose any pitcher or batter who has either thrown or been at the plate for 50 tracked pitches. You can also select the type of pitch thrown (e.g. Fastball, Curve, Splitter etc...) or any combination of the three as long as either a pitcher or batter is selected. This means you can look at all of the Curves Barry Zito has thrown, or all the change ups Geoff Jenkins has flailed at, or match ups like Brad Penny against Barry Bonds, or whatever you would like.

A few things to note. First, I have zoomed very close in on the strike zone so you have a better view of where the action is. That said, some pitches are thrown far away from the strike zone so you might be missing a few. Second, the implementation of PITCHf/x happened in fits and spurts, and in fact Baltimore never played a home game with PITCHf/x turned on. Because of this, your favorite player might have missed the 50-pitch cutoff or maybe only has a fraction of his true production this year. This is especially true when looking at matchups like Red Sox versus Yankees. Both of their parks were late to have PITCHf/x installed, so even though they played frequently, there is little data from those games. If you make a selection that has no pitches that fit your criteria, the tool will prompt you to make another selection. Third, while the querying of the database is now happening in less than a second it still takes a few seconds to draw the image. From my testing it usually has the image up in less than five seconds, but that is with just me querying it. If this tool becomes popular it may take some time to fulfill your request. Lastly, the tool is using the pitch type classifications I have developed which generally are correct but there might be some issues especially with pitchers who just reached the 50-pitch mark. If you think a pitcher throws a certain pitch but the tool tells you there aren't any pitches of that type you probably have found a mistake in my classification algorithm. You can check what pitches the algorithm thinks the pitcher throws by looking at his player card over at my blog. If you spot a mistake please comment at the ball hype link at the bottom of the page. It may take a little while for me to fix but when the second version of the tool comes out it will be updated.

I also want to take a few minutes to share where the tool is headed and things that didn't make it into this version but will be in the next version. The results page will eventually give you an opportunity to re-query the database without having to press the back button. A table with the results of the pitches will be added to the top of the page. An option will allow the user to graphically look at the type of pitch instead of the result. An option will allow the user to look at the break of the ball instead of the final location. An option will allow the user to combine groups of pitches together if there is a lot of data (even with the zoomed in look some plots are still too busy). You will be able to query more variables such as the count or a certain result like all the home runs hit. Hopefully all of these features will make the next release. If there is something else you would like to see added again, please comment at the ball hype link.

If you are interested in copying one of the plots you create and posting it on your blog or website that is fine but please add a reference link back to this page.

Without further ado, here is the link to the PITCHf/x tool or you can access the tool below.

Pitcher

Batter

Type of Pitch






References and Resources
I'd like to thank all of the other Harballtimes authors who spent time looking at the beta version of this tool. I know I haven't been able to implement all (most) of your ideas but they will be coming soon. Also, I'd like to thank MLB for putting out the data in the first place and also for allowing us to post this tool.

Josh Kalk is a physics and math geek who can also be found blogging at http://www.baseball.bornbybits.com/blog/blog.html. He enjoys good conversations about baseball and can be reached at (JavaScript must be enabled to view this email address).




Commenting is not available in this weblog entry.

Do you have a general question or comment for one of THT's writers? Send it in to our weekly mailbag We also welcome unsolicited op-ed pieces of approximately 500 words for consideration. We reserve the right to edit for length, clarity and consistency of style. Please include your whole name and location to be considered. If you have a comment about this specific article, please email the writer.



The best online source for major league baseball tickets is Ticket City.

     Next Article:  Who got what they wished for in 2007?>> <<Previous Article:  BOB: Stadium Update Galore