Graphical wOBA by Count

I am a big fan of graphs and baseball. Fangraphs made me excited because putting complex data into reasonably easy to understand graphs helps open up sabermetrics to more fans. I’m a big fan of statistical analysis, but after a while, a table full of numbers just starts running together and stops making sense. That’s what makes graphs such an effective tool.

I’ve dabbled in graphs myself. When people were creating the WAR graphs to compare hall of famers, I made a sample graph showing cumulative WAR by age on Tom Tango’s Book Blog:

(click for a larger image)

Of course, soon after Fangraphs came out with a far better looking one, saving me the headache of figuring out how to automate it.

Here is my latest foray into the world of graphs, looking at wOBA by count:

(click for a larger image)

Let me explain the mess you see above. The horizontal X-axis shows the amount of pitches. The first pitch is all the way to the left, and a full count is all the way to the right.

The vertical Y-axis shows the wOBA for all at-bats that go through that count. Since all at-bats go through the first pitch, the average wOBA is .323 (league average). The higher on the graph, the more likely a player is going to do something good. As you can see, the best count for hitters is 3-0, and the worst count is 0-2. On 3-0 the average hitter is a 2003 Barry Bonds, and on 0-2 they’re batting more like Aaron Cook.

The size of the counts (by area) are the amount of times that count has happened. There were 185,524 PA in 2010, so the first pitch is the biggest. There were only 9244 3-0 counts, so that is the smallest.

Each of the counts is a graph in and of itself showing what happened at that count. Blue is ball, red is strike, and gray means the play ended. As you can see, with 2 strikes the play ends with another, so there are only balls and ended at-bats.

So What?

I made this graph for my own use. It is a nice easy-reference tool to track what’s happening each pitch. I can follow and see if a batter’s chances went up or down, and how likely the at-bat is going to end on each pitch (really roughly). Ideally I would make one for each team, so that you can get one for your own team and use it when you’re watching games, or even for each player so that you can compare and contrast Vladimir Guerrero with Kevin Youkilis, or the Twins and the Yankees, etc.

And there’s a good chance that there are things that you can think of to use this graph for, so please let me know what they are in the comments.

References used:

Raw Data:

The graph was initially made in Excel to get the bubble positions and sizes, then imported into Adobe Illustrator to add the pie graphs, connecting lines, etc.

Editor’s Note: You can find more of Joshua Maciel’s work on his blog: Henkakyuu





I'm an expat living in Japan since 2003, doing sales and marketing work. More of my work is available on Henkakyuu, my personal blog. Also feel free to inspire me to use twitter more often @henkakyuu

30 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Bradley Woodrummember
13 years ago

Good stuff, Joshua. And I’m loving the blog.

Keep the good stuff coming!

Aaron
13 years ago

Really like the graph. What about something based on BB% for hitters? Is there a certain count that batters with a good eye are better are getting to? Do they make better decisions in all counts or in certain counts in particular?

Mike
13 years ago

Interesting. I feel like announcers (especially this past year) are constantly reminding us how important that 1-1 count is, implying that the swing in advantage is biggest between 2-1 and 1-2. According to you graph, however, the largest swing in wOBA appears to be on a 2-1 count, between 3-1 and 2-2, by a fairly large margin.

Great stuff!

fang2415
13 years ago

I remember some story in Moneyball about the difference between 2-1 and 1-2 being the biggest of any single outcome. Although back then they presumably would have been talking about OBP or something, rather than wOBA.

Are we really at the point where announcers are quoting antiquated, wrong-headed numbers from Moneyball? Where can the rest of us find these announcers?

fang2415
13 years ago

Wow also it would ruuule if Fangraphs started using something like this to do pitch-by-pitch live game graphs.

Al Skorupa
13 years ago

Great stuff! Looking forward to more.

Matt
13 years ago

This is so cool. You made a very complicated set of numbers into an easy to read and understand, and cool, graph. I would love to see more graphs like this.

I also agree with fang2415; it would be amazing if this could be combined with win expectancy to get pitch-by-pitch WE figures.

Matt Lentzner
13 years ago

Joshua,

Very cool. I think you could improve this graph by differentiating the strikes. A strike could be a swing and a miss, a foul, or looking. Breaking out those events will add a lot of richness.

Patrick
13 years ago

Joshua,

These are great. Did you see that Tango linked to you over at The Book Blog?

One comment: I would much prefer if you kept the ball/strike divisions even when they ended an at bat. (Sorry if this has been mentioned, I haven’t read all the comments.)

That’s likely an issue of the data set, but it’d be really nice to know what % of at bats in a particular count ended in strike outs, what % ended with walks, and what % ended with a ball in play.

Is it possible to do that? It would make an already fascinating visual even more informative.

fang2415
13 years ago

I don’t have a copy of Moneyball handy, but the passage is quoted at http://www.fantasybaseballcafe.com/forums/viewtopic.php?t=363213. Lewis’s phrasing doesn’t make it completely clear, but it looks like they might be talking about BA (oddly). I could actually see that being the case since you’re discounting the much higher likelihood of a walk after the second ball.

fang2415
13 years ago

So BA varies by .076 after 1-1 vs .082 after 2-1;
OBP varies by .158 after 1-1 vs .285 after 2-1;
and SLG by .144 after 1-1 vs .173 after 2-1.

So that difference for BA is pretty small — I could see it changing that much since 2003 or whatever. Or maybe dePodesta was counting some split that we aren’t or something. But clearly if you’re looking at OBP that third ball buys you an extra zillion points over any other pitch.

Lee
13 years ago

Amazing graph. Love it.

PS – you can reply directly to people’s comments, you don’t have to start a new comment thread. Makes reading your replies to people much easier.

AK707
13 years ago

Fits with the old-school adage that the longer the at-bat, the more in favor of the hitter it becomes.

Peter
13 years ago

I see a few here are making the mistake of thinking hitters get exceptionally better when the count is in their favor. That’s mostly an artifact of the way we calculate hitting statistics. Swing and miss on an 3-0 count and what is the statistical impact on BA or wOBA? Nothing, right? But swing and miss on a 3-2 count and the impact is non-zero. What I think we want to know here is, is there a difference in the probability of getting a hit by count (where taking a ball or strike are part of the sample space), and does that probability go up with count leverage for the batter.

It appears to me the graphs are simply calculating the result of AB that end on various counts. Let’s not perpetuate the myth that taking a strike or two is the worst thing a hitter can do.

All that aside, nice effort and interesting way to present the data.

Alec
13 years ago

Joshua,
Did you include fouls on 2 strike counts? So a 2-strike count that ended in neither a ball or in play? Seems to me like 2 strike counts should be significantly more common based on fouling off pitches. How many times have we seen a guy like Manny foul off 10 straight pitches (seemingly). Or is this offset by guys like Tejada and Juan Uribe who start swinging from the moment they step in the batters box and (presumably) would be in fewer of those situations.

Alec
13 years ago

Never mind, the edited graph you put up answers my question. This is honestly one of the cooler graphs I have seen, so thanks!

filihok
13 years ago

Really interesting graph. I’d like to make sure that I’m understanding it though.

“Through” the count. So for 0 – 0 every at bat goes through 0 – 0 so it is at the league average.

And for 1 – 0 the wOBA listed is for every count with at least one ball?

Is that correct?

If that is correct, it might be interesting to put the wOBA for each count on each circle. Just for comparison and more data is usually more interesting.