Examining SERA’s Predictive Powers

SERA, my attempt to estimate ERA with simulation, started off as an estimator. Then, later, I laid out ways to make it more predictive. Well, here’s the new SERA: a more predictive, more accurate and better ERA estimator altogether.

First, a refresher: The first SERA worked by inputting a pitcher’s K%, BB%, HR% (or HR/TBF), GB%, FB%, LD% and IFFB%. Then, the simulator would simulate as many innings as specified, with each at bat having an outcome with a likelihood specified by the input. A strikeout, walk or home run was simple; a ground ball, fly ball, line drive or popup made the runners advance, score or get out with the same frequency as would happen in real life.

To make SERA a better predictor of future ERA, I outlined a few major ways: not include home runs as an input (since they are so dependent on HR/FB rate, over which pitchers have almost no control), not include IFFB% for the same reason (it is extremely volatile and pitchers also have very little control over it) and regress K%, BB%, GB%, FB% and LD% based on the last three years of available data — or two or one if the player hadn’t been playing for three years. There were some other minor things, too.

One thing I forget to include in the last post was reaching on errors. This does happen in real life, so those were included in the distribution of batted ball outcomes. Here’s an updated table of outcomes by batted-ball type:

Ball In Play Out Single Double Triple Home Run Error
OFFB 75.4% 3.7% 7.4% 1.2% 12.1% 0.2%
GB 74.6% 21.7% 1.7% 0.1% 0.0% 2.0%
LD 31.8% 51.3% 14.8% 1.3% 0.6% 0.2%
PU 98.5% 0.7% 0.4% 0.0% 0.0% 0.4%

The numbers might not add up to 100% because of rounding errors. The data is from the past three years.

You Aren't a FanGraphs Member
It looks like you aren't yet a FanGraphs Member (or aren't logged in). We aren't mad, just disappointed.
We get it. You want to read this article. But before we let you get back to it, we'd like to point out a few of the good reasons why you should become a Member.
1. Ad Free viewing! We won't bug you with this ad, or any other.
2. Unlimited articles! Non-Members only get to read 10 free articles a month. Members never get cut off.
3. Dark mode and Classic mode!
4. Custom player page dashboards! Choose the player cards you want, in the order you want them.
5. One-click data exports! Export our projections and leaderboards for your personal projects.
6. Remove the photos on the home page! (Honestly, this doesn't sound so great to us, but some people wanted it, and we like to give our Members what they want.)
7. Even more Steamer projections! We have handedness, percentile, and context neutral projections available for Members only.
8. Get FanGraphs Walk-Off, a customized year end review! Find out exactly how you used FanGraphs this year, and how that compares to other Members. Don't be a victim of FOMO.
9. A weekly mailbag column, exclusively for Members.
10. Help support FanGraphs and our entire staff! Our Members provide us with critical resources to improve the site and deliver new features!
We hope you'll consider a Membership today, for yourself or as a gift! And we realize this has been an awfully long sales pitch, so we've also removed all the other ads in this article. We didn't want to overdo it.

Here’s the new script. A few things about it:

  • It now asks for a league average HR/FB% and IFFB%. Those are almost always around 10% each, so input that if you’re unsure.
  • The output it gives is now “RA/9” — ERA doesn’t include runs scored because of errors, but this does — and MLB’s scoring rules are too complicated to incorporate into this. As such, this will be slightly higher than the actual ERA. Divide by 1.09 and you should get something slightly closer to ERA — there’s a second line after the RA/9 output that does just that.
  • You’ll also see a few new output lines for “Observed K%,” etc. That’s the actual K%, BB%, etc. from the simulation. The more innings you simulate, the closer those will be to your inputs.
  • It’s slower now, probably running at half the speed that it did before. But I’ll take that if it’s more accurate.

The biggest question about this that I wanted to answer was if it was a better predictor than xFIP, right now the holy grail of short-term ERA predicting. (But not long term. That becomes fuzzier). I didn’t exactly get the answer I wanted — it’s not really better — but the good news is that it’s actually pretty close, and it also correlates just as well as xFIP with current-year ERA.

One of the benefits of SERA’s predictive version — which I’ll call pSERA — is that since data from the last few years is included, it correlates with itself very well year-to-year, much better than any other ERA stat does. In fact, pretty much any ERA estimator in one year correlates better to next year’s pSERA than that estimator does to itself.

Here’s a table showing how well various ERA estimators (as well as the average of pSERA, FIP and xFIP, which I called BLEND) correlate to each other and to themselves year-to-year (the number shown is the r^2). The columns are “Year 1”; the rows are “Year 2.” So, for example, to figure out how well FIP in the first year correlates to pSERA in the second year, go to the intersection of row FIP and column pSERA.

Year 2
ERA pSERA FIP xFIP BLEND
Year 1 ERA 0.0796 0.2532 0.0954 0.1157 0.1532
pSERA 0.1585 0.6233 0.232 0.3194 0.3889
FIP 0.1384 0.4328 0.2232 0.2495 0.3137
xFIP 0.1617 0.5525 0.2493 0.3461 0.3919
BLEND 0.1721 0.5957 0.2656 0.34 0.4087

Minimum 200 TBF in both years, or roughly just fewer than 50 innings pitched

One caveat of this table is it only uses 2013 and 2014 data. Calculating pSERA is a pain — even more than calculating normal SERA — because not only do you have to simulate everything, you also have to calculate each pitcher’s inputs based on past data. So the only past years that I calculated were the last two. I don’t think that having much more data would change the numbers all that much, but there are some bigger error margins on those than there might be with more years included.

I also wanted to answer the question of how quickly this becomes predictive. At certain sample sizes, is pSERA better than xFIP? Maybe when the sample is really small, one is a better predictor than the other, but when the sample gets large, the two switch. My hope was that pSERA would be more accurate with a small sample size, which would be very useful.

pSERA_and_xFIP_smooth

 

Kind of. xFIP doesn’t overtake pSERA in predictive ability until about 150 TBF in both years, which would indicate that for pitchers with fewer innings, pSERA is better. Once again, there’s not so much data to back this up — only one two-year set — so this might not be totally right. The general trend, though, seems hard to disprove. Both obviously are more accurate with more innings pitched. xFIP is a little better after lots of innings, and pSERA seems to be better after not so many innings. (Note, by the way, that the y-axis is r, not r^2.)

But with little data, the fluctuations in the data are very pronounced. The above graph uses smoothed LOESS curves, which eliminate shaky dips and rises. But look at how much the actual data varies:

pSERA_xFIP_not_smooth

 

The table above used a cutoff of 200 TBF for the correlations, but if the cutoff had been 193 then we actually would have seen a higher correlation from pSERA than from xFIP. This is why the LOESS curve is useful, because it lets us see the general trend much more easily. With so little data (only 394 pitchers who pitched in both years and only 186 who had 200 TBF both years), removing a few pitchers by raising the minimum TBF a little bit can have drastic effects on the correlation.

Now, here in the same graph, are all of the metrics included in the correlations chart above:

all_era_estimators_smooth

I think we can point to pSERA as a good predictor of future ERA. It might not be quite as good as xFIP, but it works pretty well. The nature of it — how long it takes to calculate it for hundreds of different pitchers — makes doing any long-term analysis much harder, and it makes it harder to use lots of seasons for year-to-year analysis. But from this, it certainly seems to be better than FIP, and it has some advantages over xFIP as well. As of now, I would still use xFIP instead of this. But there’s certainly some room for improvement here. I’m thinking like using more rigorously projected inputs; I think with the best inputs available, this could become more effective than xFIP. The whole SERA concept, in general, also allows you to do some pretty cool things with exploring variability that I’ll go into later.

For now, I’ll leave you with this chart what pSERA says for every pitcher next season:

pSERA the RA/9 equivalent, pSERA-adj is the ERA equivalent — it’s equal to pSERA/1.09. The inputs are the data regressed using the past 3 years; the ERA-FIP-xFIP-TBF are all from 2014. You can ctrl-F within the spreadsheet to search for pitchers.

Update 3/7/15: The Excel Web App chart has been updated to now include pitchers traded during the 2014 season, who were previously missing. The pSERA values have also been changed due to the fact that they were originally (erroneously) calculated factoring in intentional walks and not hit batsmen. The BB% value is now (BB-IBB+HBP)/TBF, whereas before it was just BB/TBF.





Jonah is a baseball analyst and Red Sox fan. He would like it if you followed him on Twitter @japemstein, but can't really do anything about it if you don't.

39 Comments
Oldest
Newest Most Voted
hellomynameis
11 years ago

can’t find masterson and kelly on the chart?

Eminor3rd
11 years ago

Might I suggest a name change? It could be pretty confusing differentiating between SERA and SIERA.

Doris Day
11 years ago
Reply to  Eminor3rd

If strikeouts are part of the model, you can always call it kSERA.

E
11 years ago
Reply to  Doris Day

Whatever will be, will be…

Paul Branyan
11 years ago
Reply to  E

The world is only Mike Trout’s to see…

obsessivegiantscompulsive
11 years ago
Reply to  Eminor3rd

I had been thinking the same thing when I read the last article, but couldn’t think of a better one until now: SimERA.

FuriousToaster
11 years ago

Could you sort the chart by SERA? It is seemingly sorted by… some sort of random mess.

McNulty
11 years ago
Reply to  FuriousToaster

it’s sorted by batters faced, but I agree

Eric
11 years ago
Reply to  FuriousToaster

It’s sorted by TBF

Da Bear
11 years ago

Maybe that’s the Nationals’ downfall: they accidentally move Mike Carp to the bullpen and call upon his projected 56.75 ERA for a good 50-60 innings.

Tramps Like Us
11 years ago

where’s Kershaw?

jpg
11 years ago

Nice job but yeah, a sortable table would be great.

ShauncoreMember since 2019
11 years ago
Reply to  jpg

You can always just download the table, if you have excel

Josh I
11 years ago

Adam Dunn is being severely underrated going into 2015. His pSERA of 7.75 was way better than the 9.00 ERA he posted.

Meanwhile, Danny Worth for Cy Young!

Dee P. Gordon
11 years ago
Reply to  Josh I

I just think of that defense behind him. You’re absolutely right Josh.

a
11 years ago

I don’t understand what this is trying to do. You have this clunky complicated simulator that accounts for a billion factors and the end result isn’t better that something elegant like xFIP-? Why bother? You’re not getting closer to truth by just brute-force-ing it.

holymoly
11 years ago
Reply to  a

what do you mean “why bother”?

he should be applauded for trying something new to make a better prrdictor. the exercise is very helpful. maybe we build on it to make a better predictor yet, or maybe we discard it and gain even more appreciation for a stat like xfip, with this exercise putting to rest some of our doubts about it.

either way we should always be “bothering” to try to make better stats.

tz
11 years ago
Reply to  holymoly

Not to mention that the simulator can also be useful from a pure explanatory standpoint. Sometimes using a top-down regression-based approach leads to a lot of noise, but a simulation has the potential to shed some light on how things work on a bottom-up basis.

So even if this doesn’t prove to be a better predictor, it can be one heck of a weapon in the sabermetric bag of tricks.

YO YO MAH
11 years ago

It’s my understanding that IFFB% is under the control of many pitchers. And that HR/FB is as well. It doesn’t make any sense to me to exclude homeruns from an ERA estimator. Also, isn’t LD% more volatile year to year than HR/FB or IFFB%? Why not exclude that?

Also Fangraphs! These “I’m not a robot” images are getting harder and harder to read. The last one I saw was a small blurry fuzz on some random white door probably in Kansas. I’ve never noticed a problem on these pages with scammers or promotional asshats, so why the verification process?

At least get some cooler images. Like a code branded onto some yak’s flank or seared into some hamburger on a skillet.

At least get some cool images. Like a tagcode on a yak’s side flank or seared into some hamburger in a skillet.

YO YO MAH
11 years ago
Reply to  YO YO MAH

That’s crazy! I sent in my message and it said nope you’re a robot. And then I sent it again but with the second part rewritten and somehow my two messages were merged into one. Crazy!

YO YO MAH
11 years ago
Reply to  Jonah Pemstein

This would be going beyond the intents of this article probably, but there might be a better way to do this than to use league average. Even great pitchers with exorbitantly high IFFB percentages year after year see a lot of volatility in the statistic. They go between high values of 12% and 8% and 13% and 15% ect ect ect…so yea when you do correlations things look wacko variable in the variables. But what’s variable is how much better than league average they are, not whether they are better than league average or not.

Why not just average individuals’ past IFFB percentages? That gives guys that are skilled in this regard more credit than league average would. And then players with small samples can be evaluated at league average. Just an idea.

YO YO MAH
11 years ago
Reply to  YO YO MAH

Thanks for responding by the way. Your explanations make a lot of sense and your results are pretty impressive. I think this article deserves more views and I’ll be playing close attention to your stuff in the future.

obsessivegiantscompulsive
11 years ago
Reply to  YO YO MAH

Hey, Yo, I agree with your points.

The problem is that there are pitchers who can control their IFFB% and HR/FB, as well as BABIP, which has been one of my bigger complaints about sabermetrics since DIPS came out. As the vast majority of pitchers do not have any abilities to control these, and thus most sabermetrics ignore this fact instead of trying to find some way of incorporating it into their formulas.

Which I understand, things can get very complex trying to replicate reality, but then these sort of analysis tends to miss out on players like Matt Cain, who can keep BABIP, HR/FB, and IFFB% lower than most other pitchers.

Which I find ironic, as much of the point of sabermetrics is trying to illuminate and highlight players that are better than others, but because they don’t fit the mode (because they are better), they get ignored by the mass analysis that these exercises attempts to do (or worse, made to look “lucky” or just ordinary).

Which is fine with me, as then the Giants don’t get respect and will surprise the “experts” again by finally winning back to back championships.

Reminds me tangentially of Vonnegut’s story of Harrison Bergeron, where people with skills are made to look average. I have no problem with these types of analysis, but by ignoring the abilities that pitchers can bring to the game (Tom Tippett, formerly of Diamond Mind, now Boston’s defensive analysis director, showed this OVER a decade again with his examination of DIPS, pin-pointing a number of areas where pitchers have been above average but didn’t fit DIPS theory, yet I’ve not seen one analyst try to account for this nuance. Reminds me a lot of the joke where the guy is searching for his quarter under the lamppost because that has more light, not because the quarter was dropped there) there is a lot of good players missed by common analysis.

obsessivegiantscompulsive
11 years ago
Reply to  YO YO MAH

Yes, I agree that it’s very hard to identify these pitchers without a lot of data. But most people don’t seem reasonable, like you are, regarding that, they don’t seem to recognize that there are those who might just be good, not lucky.

So while a lot of data is necessary, then perhaps sites like Fangraphs could start up, say, a Minority Report type of situation where pitchers who appear to be lucky or perhaps good are highlighted and tracked over time, to see which categorization they fall under. Tippett’s study highlighted a number of ways that pitchers could be categorized and that could be the beginning set of categories that young pitchers who are out of the ordinary in some way can be placed in.

Thanks for pointing out that ZiPS does try to account for these pitchers, I appreciate knowing that factoid. I’ll have to read up on his methodology and see how he does it, maybe he might have a methodology that can be used for these “minority reports”.

And keep up the good work, I should have noted that I enjoyed the article and research. It is “whoosh”, over my head, but maybe one day I’ll understand all the technical aspects of using simulations in a statistics situations. Is there a good book you recommend?

I loved that story about Bergeron too, been over 35 years since I read that in my English 1A class in college, that and “The Loneliness of the Long Distance Runner” stuck in my head over all those years.

Jianadaren
11 years ago

Why does ERA lose predictiveness after more than ~400 TBF? Is that just an artifact? Or maybe it shows how ERA is comparatively more predictive with relievers compared to starters?

DNA+
11 years ago
Reply to  Jonah Pemstein

It isn’t necessarily counterintuitive. The underlying skill that you are trying to estimate is not fixed. If the skill changes at some rate, then there will be some best window size with which to estimate the current skill level.

tz
11 years ago
Reply to  DNA+

Perfect explanation DNA+, thanks!

I was thinking that reliever ERA may actually be less predictable than starter ERA due to the way ERA treats inherited runners. Of course, with relievers more often coming in to start an inning, that may or may not be the case.

But the change in underlying skill is a totally credible explanation. In fact, 400 TBF might be the average threshold for MLB hitters to develop a “book” on the pitcher and start to adjust their approach, which itself could trigger a big variance in performance.

NYYfan
11 years ago

Is Michael Pineda listed?

Baltar
11 years ago

Wake me up when we find out how your predictions work for the coming season.

Tiss
11 years ago

I too am bothered by the idea that HR/FB is out of the hands of the pitcher. Strikes me this should be pretty easy to test…if HR/FB has nothing to do with the pitcher, the key to not giving up homers is simply not giving up fly balls. So HR% and FB% should correlate very strongly for a certain pitcher.

tz
11 years ago
Reply to  Tiss

I agree with your point but not necessarily your explanation. There is evidence that groundball pitchers tend to allow harder-hit flyballs than flyball pitchers do, probably because flyballs are often “mistake” pitches from a GB pitcher.

But I do think that the pitcher plays some role in the HR/FB ratio, above and beyond any ballpark effects. The key is the quality of contact on all balls hit (including HR), which would seem to be a function of their stuff and how often they make mistakes.