November 22, 2009

Player Search:

Order Now


The Hardball Times Baseball Annual 2010 is now in development and will ship in mid November! This year's book will feature articles by THT's staff as well as Bill James, Tom Tango and Craig Wright. If you use this link to purchase the Annual, you will be in the first group to receive it and you'll be supporting THT.


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.

Hang time

by Colin Wyers
July 06, 2009

I've been playing with the Hit F/X data from Sportsvision for a little while now, and I think I finally have something worth sharing with the class.

If you check out the first THT Annual, you'll find an article from Robert Dudek about the importance of hang time in how easy it is to field a fly ball (which, for these purposes, I am using to encompass everything that isn't a ground ball). This is a huge, important thing.

But the data providers have never recorded hang time for us; instead, we get the three bins "fly ball", "line drive" and "pop-up." (There are a few more bins, like "fliner," in the BIS data.) So we've had to make due with that. This is one of the chief reasons that outfield defense is harder to measure than infield defense, for instance.

Well, now we have Hit F/X. This gives us a few pieces of data that we can use to estimate hang time:

  • Vertical angle at launch
  • Speed at launch
  • Position at launch

The most important piece of missing data is the ball's spin at launch. This can potentially be estimated based upon the spin of the incoming pitch and the launch angle (smarter men than I will be required for this task). For the time being, I am proceeding as though a hit ball has no spin. This is an area for further improvement. (Other potential areas of improvement would be the inclusion of air density and wind data.)

Professor Alan Nathan has provided a set of spreadsheets useful to the calculation of a baseball's flight path based upon the data we have. I have based my efforts upon these spreadsheets (and am especially indebted to him for help in understanding some of the particulars).

As a little taste, here's a look at DER for a ball in play (in other words, home runs excluded) based upon hang time:

Time
DER
0.0
0.831
0.5
0.574
1.0
0.483
1.5
0.233
2.0
0.213
2.5
0.524
3.0
0.662
3.5
0.825
4.0
0.935
4.5
0.972
5.0
0.986
5.5
0.998
6.0
0.985
6.5
0.944
7.0
1.000

The smallest time in the air looks like it's largely bunt attempts. A little longer time is mostly for ground balls. Then we get to fly balls. Past a certain point, the longer a ball stays in the air, the more likely it's getting caught.

There is of course a lot more we can do with this data, and a lot of improvements that can be made to how the data is derived from Hit F/X. This hopefully at least whets your appetite.

For those interested, you can download the source code used to calculate hang time here. In order for it to work you need:

Go ahead and leave a comment or drop me a line if you have any questions or helpful suggestions regarding the Python code.

UPDATE: Professor Nathan, from a comment at Tango's blog:

Colin: I am not sure exactly how you did your calculation, but I am pretty sure that neglecting the spin is not a very good approximation. I just did a quickee calculation of a typical home run trajectory (100 mph, 29 deg). Without spin, the hang time is 3.9 sec. With 2000 rpm backspin, it is 5.4 sec. One thing I have done is used at hitf/x data combined with Greg R’s hittracker data for home runs. What I can do is compare the measured hang time (by Greg) with the hang time expected in the absence of any aerodynamic effects of lift and drag. What I find is that the actual hang time is longer (as you would expect) by an average of 20% (sometimes as much as 40%, sometimes as low as 0%).

For a line drive type of hit, the hang time is even more senstive to the spin (at least, percentage-wise). E.g., a line drive hit 3 ft off the ground at 0-deg has a hang time of 0.44 and 0.74 with 0 and 2000 rpm of backspin, respectively.

Getting the spin is important to getting the trajectory (and therefore the hang time). Hitf/x does not get us the spin. Unfortunate, but true.

I modified the code base to include the effects of backspin at 2000 rpm, and I think my results line up with his as far as the 20% figure goes. I can't tell you which is more reliable, or even if either set of estimates is more useful than what we currently have for air balls. (Although I think that it is, but my thinking is far from proof.)

For those who want to see the data, you can. The first column is the id as per the provided table from Sportsvision,the next two columns are distance and time without spin, and two columns that follow are distance and time computed with spin.



Colin Wyers knows exactly how much of a nerd he is. He is very interested in hearing about any other concerns you may have; you can reach him by e-mail, and he will try his best to respond in a timely fashion. He also blogs at Statistically Speaking.


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.