Tuesday, December 25, 2007

How deep was the bench?

In the comments, the subject has come up of the depth of the bench in the IBL - or, rather, the lack of depth. With just 20 players per team and the rosters fixed at the start of the season, teams had no way to make up for players whose performance fell short. They couldn't just bring someone up from "the minors" midseason, since there were no minors to draw from.

Add to that the great variation in skill levels among players, whose backgrounds ranged from high levels of play such as Japan and AAA, all the way down to rookie ball, college ball, college ball a decade ago, and the Israeli amateur leagues. As Coach Scott Perlman of Bet Shemesh put it, "I feel our starting team for the Blue Sox could play a AA team and be competetive, but over the course of a series, we would not be able to match that level, because our bench was nowhere near strong enough, and doesn't compare."

Can we measure depth of bench? I don't know if there's an accepted way to define the bench, but I picked a common sense, though far from perfect, approach: Take the nine players with the most plate appearances for each team, and call them the starters. Everyone else is the bench.

For the IBL, that yielded 54 starters for the nine teams. They had 85% of the plate appearances over the season. Everyone else was the bench. Their summary stats:

                 AVG   OBP   SLG 
IBL .270 .383 .411
Starters .289 .401 .445
Bench .170 .274 .223
Bench/Starters 58.9% 68.4% 50.1%


Not surprising, the same calculation yields very different results for the majo leagues. Again, the "starters" are the nine players from each team with the most plate appearances, totalling 75% of the season's plate appearances.

                 AVG   OBP   SLG 
MLB 2007 .268 .332 .422
Starters .279 .345 .446
Bench .237 .292 .353
Bench/Starters 84.9% 84.5% 79.1%


With poorly performing or injured players easily replaced from the pool of minor leaguers, major league teams have a much greater margin of error than our under-resourced IBL teams.

Notice that the stat lines for IBL starters were a bit higher than their major league equivalents (actually, substantially higher if you include reaching base on error, but that's besides the point). But the bench players had much lower stats than the bench in the MLB.

I haven't tried the equivalent for pitchers (yet), but I assume the results would be similar.

Monday, December 24, 2007

Taking attendance

While I keep working on developing my play-by-play database, which I hope will support new types of analyses, let me offer you something completely different.

Ever wonder what the average attendance was at IBL games? How it varied by team and location? And so on?

I've been playing with the official attendance figures, and I think they have some interesting stories to tell.

For starters, I'll show you the graph of daily total attendance: Total reported attendance at all games played for each day of the season.

Now, I don't know how accurate these figures are. Kids in youth baseball t-shirts were admitted free - were they counted in the attendance figures? Sometimes the ticket booth was empty and people walked in freely, perhaps to be reminded later to buy a ticket, perhaps not. At the championship game, we walked from the car to the gate without being asked to show our tickets. So actual attendance may be higher than reported. But these are all the figures we have, so they'll have to do.

Without further commentary, the total attendance graph (click to enlarge). The all-star game and postseason are shown in green. The column bars for opening day and the championship game have been cut short to make the rest of the chart easier to read.

See if you can identify any interesting patterns. I've got some up my sleeve for a subsequent post.

Sunday, December 23, 2007

Juan Feliciano in Japan, again

Another followup to this and this.

Coach Scott Perlman has explained why one might have expected Japan's dirt infields to be especially rough on Juan Feliciano. In short, the superfast infields make ground balls more likely to be base hits, so a groundball pitcher would be less successful in Japan than he might be in, say, Gezer, where the concern is giving up fly balls which can become easy home runs.

Unfortunately, the stats don't support the claim that Feliciano's problems in Japan were caused by giving up too many ground balls. While I don't have groundball/flyball stats for Japan, I think I can safely refute that claim.

First, as I pointed out in my latest post, he was one of the worst in the league in Japan in strikeout rate.

Second, it turns out he was also one of the worst in home run rate. He gave up a home run in 5.7% of at bats, ranking 53 out of the 54 qualifying relievers. League average was 2.7%. (Average in the MLB in 2007 was 2.95%, contrary to the claim that power hitting is far less important in Japan.)

In fact the FIP stat I cited in my last post incorporates only homers, strikeouts and walks - nothing that would be affected by hits on balls in play. And Juan ranked lowest among the Japanese relievers.

So whatever it was that failed him in Japan, it wasn't the fault of dirt infields. At least not primarily.

Wednesday, December 19, 2007

Juan more time

A commenter has questioned my rough assessment that Juan Feliciano was one of the weakest pitchers in his league in Japan:

Please compare his statistics as a starter vs. his stats as a reliever in Japan before you call him one of the worst pitchers in Japan. Feliciano takes a long time to warm up, and has difficulty in his first inning of work, often giving up more hard hit balls in inning one than the following innings, especially when he is rushed into games as a reliever. The all dirt infields in Japan also lead to more base hits and swelled batting statistics, another reason why contact in Japan is emphasised more than homeruns. What made Juan so effective in Israel was his use as a starter.

I hadn't intended to delve that deeply into Japanese baseball, about which I know next to nothing. But let's take this a bit further.

I've downloaded all the player statistics for the 2006 Central League in Japan (for example, Feliciano's team stats are here). Dividing pitchers into starters and relievers by the percentage of games started (50% or more is a starter, less is a reliever), we come up with 90 relievers among the six teams. Limiting ourselves to those who pitched at least 20 innings, we find 54 who qualify.

I don't have the splits for Japan, so I can't separate Feliciano's starts from his relief appearances. He played in 12 games in 2006, starting 5 of them. He faced 168 batters (140 at-bats) over 35 1/3 innings.

Ranking the Central Leauge relievers by ERA, he placed 54 out of 54 players with a 7.39 ERA (league average: 3.68, average among qualifying relievers: 3.56). Ranking by opponents' batting average (OBA), he also placed 54 with an OBA of .357 (league average: .263; average of qualifying relievers: .256). Ranking by strikeouts per nine innings, he placed 53 with a K/9 of 2.8 (league: 7.11; relievers: 7.82). Ranking by runs allowed per nine innings, he also placed 53 with an RA of 7.64 (league: 4.11; relievers: 3.99). Ranking by strikeout/walk ratio, he placed 52 out of 54 with a K/BB of 0.92 (league: 2.72; relievers: 2.59).

Ranking by walks per nine innings, he placed higher: 23 out of 54, with a BB/9 of 2.55 (league: 2.44; relievers: 2.73). About average.

Finally, using Fielding-Independent Pitching (FIP), a measure by Tom Tango which tries to isolate a pitcher's skill from his team's defensive support by using only those events most directly controlled by the pitcher, Feliciano again ranks 54 out of 54. I've added 3.0 to the basic FIP formula of (13*HR+3*BB-2*K)/IP, to place it on a similar scale to league ERA. This gives Feliciano a FIP of 6.59, compared with the league average of 3.66 (3.60 for qualifying relievers).

So by every measure of pitching success I can think of, Feliciano was one of the worst relievers in the 2006 Central League. If you want to argue that he was poorly utilized, or otherwise done injustice by the raw numbers, you've got the burden of proof in making that case.


Starting over

What about the claim that he was better as a starter than as a reliever? Well, he actually started 5 of his 12 games, or 42%. Assuming that he pitched on average more innings per appearance as a starter than as a reliever, it's likely that he pitched at least half of his innnings as a starter, if not much more. (The average 100% starter in the league pitched 6.2 innings per appearance; the average 100% reliever pitched just 1.0 innings per relief appearance.) Let's call it half to make things easy. Is it possible that he was even a league average pitcher as a starter?

If so, he would have had a league average 3.68 ERA as a starter, but his actual 7.39 overall (averaging starts and relief appearances). To make that possible, he would have had to rack up an utterly awful 11.10 ERA during his relief appearances - three times the league average. That's implausible, if you ask me, and I hope it's not correct.


What did you expect?

Not that this should be a surprise. Consider how players came to the IBL. We can roughly split them into two groups: those looking for a fun summer playing baseball in Israel, and serious professional players looking for a new way to further their careers. The former group includes people like Leon Feingold and Ari Alexenberg, older men with other careers who could take two months off for the summer and do something different. And it includes recent college graduates, mostly Jewish, with a summer break on their hands.

The latter group includes the Dominican players with visa issues, and other players who for whatever reason had found their career stalling in the minor leagues, or couldn't break into the minors. For most of them, if they had been succeeding where they were they would have advanced to higher levels of play. If they were struggling, whether due to injury or a bad season, they may have looked to the IBL as a way to keep playing professionally until their fortunes turned around. That means, on the whole, we can expect the IBL players to have been less than successful in their previous baseball careers.

Honestly: If Juan had been a top pitcher in Japan, he would have been working on finding a way into the majors, not taking a summer off to play in a fledgling league in Israel.

It was great to have him here, and I wish him well in his future baseball career. Maybe he'll get his stuff together and get his big break. But let's not pretend he's any better than he really is.

Incidentally, I don't understand the commenter's claim that Japanese baseball has "more base hits and swelled batting statistics". League batting averages of .260 and 4 runs per game are not exceptionally high compared with other leagues; they're pretty midrange.

Monday, December 17, 2007

Juan Feliciano, from Japan to Israel to the Dominican Republic

It's nice to see Bet Shemesh's Juan Feliciano pitching well in the Dominican winter league.

So how good is he really?

He won the IBL's pitching award with a 1.97 ERA (league average: 5.64) and 2.68 RA - like ERA but includes unearned runs (league average: 7.04) over 50 1/3 innings pitched. I'm not ready yet to go into more detailed measures of pitcher skill, but by any measure Feliciano was clearly one of the IBL's best five starters.

Before the IBL, Feliciano pitched in Japan for the Hiroshima Carp. In the 2006 season, he played in 12 games, starting 5 of them, and gave up 30 runs (29 earned runs) over 35 1/3 innings for an ERA of 7.39. Over three seasons with the Carp (2004-6), his ERA was 8.95 in 58 1/3 innings.

But is that good or bad?

I don't know much about the Japanese pro leagues, but it turns out that the level of play in Japan is quite high, stronger even than the AAA minors but weaker than the major leagues. You'll find different estimates of the relative difficulty of the Japanese leagues to the majors, but they seem to indicate that playing in Japan is some 10% easier than in the MLB, and that Japanese ERA's are quite close in range to their major league equivalents.

Without going into too much detail, we might expect a 7.00 ERA pitcher in Japan to pitch not far from 7.00 in the major leagues, maybe a drop worse.

His team in 2006 averaged a 3.96 ERA (RA: 4.54), making him one of the team's weakest pitchers. I don't have the league stats for 2006, but in 2005, Japan's Central League posted a 4.11 ERA (4.45 RA). Had he played enough innings to qualify, his 6.94 ERA that year would have ranked 85th out of the 91 pitchers with at least 20 innings pitched (he only pitched 11 2/3 that year).

So one of the weakest pitchers in the Japanese leagues, with an ERA over 50% worse than the league average becomes one of the best in the IBL, with an ERA less than half the league average.

That should help give us a sense of the level of play in the IBL.

Friday, December 14, 2007

IBL stars in the Dominican Winter League

The latest IBL press release reports glowingly: "IBL stars playing well in the Dominican Republic"

It continues:

Juan Feliciano, winner of the IBL's most valuable pitcher award and Eladio Rodriguez co-winner of the IBL's Most Valuable Player Award are teammates on the Santiago Aguilera's of the Dominican Winter Baseball League.

Juan Feliciano, who played for the Hiroshima Carp of Japan's major leagues before signing with the IBL has appeared in six games for the Santiago Aguilera's. In nine and two thirds innings of work Feliciano has yielded only five hits while striking out eight and has a 3.78 ERA.

Eladio Rodriguez, who has been signed by the NY Yankees after his superb performance in the IBL this past summer, has been to bat five times and has two hits including a double giving him a batting average of .400.


Now, it's nice to see that Juan and Eladio are keeping their skills up in the offseason. And it's nice to see that the IBL is following the careers of its leading alumni.

But c'mon! Two for five over three games? Nine and two-thirds innings pitched over six games? Those are good performances, yes, but over such small samples that to draw any conclusions from them would be absurd. Let's see how their playing holds up after dozens of at bats or innings, and then we'll have some idea how good they are.

The full stats lines can be found here, in Spanish, at the team's website. (It actually gives Feliciano's ERA as 3.72, not 3.78.) Hey! Eladio's leading the team in batting average! Just like in the IBL!

Not. At least not yet.

Tuesday, November 27, 2007

The Gezer conundrum, again

My anonymous commentator is trying to understand the park effects at Gezer. Actually, so am I.

The problem in a nutshell is how to distinguish between the skill levels of the home teams at Gezer and the effects of the park itself. Gezer was home to Bet Shemesh and Modiin, the league's two biggest slugging teams. If you look at the home run totals at Gezer versus the other fields, you'll find a tremendous gap:



Teams at Gezer scored over 2.8 times as many home runs per game as teams playing at Yarkon, and about 2.7 times as many home runs per fly ball. Compared to Sportek, the ratios are 2.4 and 2.2. Overall, 117 of the IBL's 187 home runs, or 63%, were hit at Gezer, where just 39% of the games were played.

But the performance gap narrows substantially when we look at broader measures of offense, not just home runs:



Batters at Gezer actually reached base less often than those at Sportek, and not a whole lot more than those at Yarkon. The slugging gap is substantial, but not nearly as wide as the home run gap. This may reflect on the pitchers of Bet Shemesh and Modiin, which were among the league's best.

If we count times reached base on errors as hits - which for all intents and purposes they are - the gap narrows further:



Remember that error rates were highest at Yarkon and Sportek. Counting errors, it turns out that on-base rates were pretty similar across the fields, with Sportek leading. In slugging, which is less important to run scoring than getting on base, Gezer led Sportek by just 60 points (or 13%) and Yarkon by 110 (28%).

Translated into run scoring, in runs per game, plate appearance and 27 outs:



That's right. At Gezer, the average game scored just 12% more runs than at Yarkon and 10% more than at Sportek. Per plate appearance, that's 14% more than Yarkon and 8% more than Sportek; per out, 15% more than Yarkon and 7% more than Sportek.

If you followed my recent post about how runs are scored, you'll understand why. Getting on base is much more important than slugging. And there are plenty of ways to score other than home runs.


What about the park factor?

But that 12-15% run boost at Gezer is not Gezer's park factor for runs. How much of the run increase was due to the field at Gezer, and how much due to the high-slugging teams that played there?

To find that out, you have to compare how the same set of teams played at Gezer versus away from Gezer. That's what I ultimately did in this post, where I took all the teams that played each other at least twice both at Gezer and elsewhere (and likewise for the other parks). This gives us a close approximation of how the different parks affect the same player matchups.

And that's where I discovered that though Gezer produced a home run boost of 76% over Sportek and 176% over Yarkon, overall run production for the same team matchups was just 4.4% higher than at Yarkon, and was actually 2.5% lower than at Sportek.

Now, these figures may be substantially inaccurate. The sample size is very small, with just 122 games distributed among six teams and three fields. The "pros" estimate major-league park effects over at least three full seasons of 162-game play. All sorts of noise could be skewing these results: a few unrepresentative games, or an untimely injury, or the distribution of pitchers in the games being compared.

But it seems clear that most of the 12-15% difference in run production among the three venues (as opposed to home run hitting) can be attributed to the offensive power of the teams that played in them.

This is consistent with the per-team run production averages:



Look at Bet Shemesh and Modiin, which shared Gezer; Netanya and Tel Aviv, which shared Sportek; and Petach Tikva and Ra'anana, which shared Yarkon. Most of the apparent park factors for run production are in fact due to differences in team offensive ability.


The upshot

What does this mean for comparing player performance? That park factors have their main impact on individual components of performance, such as home runs or strikeout rates. When comparing them among players, we have to pay close attention to park effects. But when comparing overall run production, we can be sloppier, since the park differences are not great.

For precise comparisons, we should weight performances by their respective parks by adjusting the run production estimates on a per-park basis, and I hope to post park-adjusted tables for batting leaders soon. But whatever corrections are necessary will not change the overall offensive domination by the Bet Shemesh sluggers.


One last comment. The two run production estimators I'm currently using, Base Runs and custom IBL linear weights, when calibrated to match overall IBL run scoring are also quite accurate at estimating overall run production at Gezer. But they show similar biases for the other two fields, overestimating production at Sportek by about 3.7% and underestimating production at Yarkon by some 3%. This could be pure chance, if teams overall scored about 12 more runs than should be expected at Yarkon and about 12 fewer at Sportek. But it might indicate that the formulas aren't quite capturing all the aspects of run production at the two fields.

Perhaps run estimates based on these formulas should be scaled up or down 3% to calibrate them to the actual results at Sportek and Yarkon.

Monday, November 26, 2007

Blog roadmap

An anonymous commentor has asked when I'll address IBL pitching. Please read the exchange between us, which touches a bit on IBL pitchers and how to assess them.

In response, I thought I should let you know what I'm planning to cover in the future, time permitting. Let me know if I'm missing anything of interest, or if you have any other comments about the agenda. Or if you'd like me to focus on one topic before another - these are in no particular order.

Batting

  • Finish the batting production leaders charts: runs created per plate appearance, park-adjusted figures.

  • Calculation of score rates per runner type and estimation of runs created based on them.


Baserunning
  • Leaders in net runs created and lost due to base stealing.

  • Looking at frequency of taking the extra base on hits.


Pitching
  • Charts of leaders by various raw pitching stats.

  • Thoughts about how to evaluate pitchers with so few starts and such unbalanced schedules.

  • Actual assessments of pitcher value, including DIPS (defense-independent pitching stats).


Fielding
  • What do we really know about it in the IBL?


General
  • The splits: Breaking down team stats by field, opposing team, day of week, week of season, inning, etc.

  • Compilation of IBL run expectancy charts by outs and baserunner situation.

  • A look at reported attendance figures.


Can't promise how long it will take me to get to any of this... I do have other things to do with my life, believe it or not!

Friday, November 23, 2007

A novel approach to run scoring estimation?

This post is an essay on sabermetric analysis of run scoring in baseball. If you're looking for insights into the Israel Baseball League in particular, please feel free to skip this entry.


People often discuss the relative importance to run scoring of on-base percentage versus slugging average. See, for example, here, here and here.

I'd like to try and shed new light on the question, using what I believe is a new analytic approach. Since I've only been analyzing baseball for a few months now and I'm not familiar with most of the vast sabermetric literature, it's possible, even likely, that someone's done this before. But I haven't come across it yet. Let me know if I'm repeating someone else's work. There are many open questions left to be addressed, and I'm writing up this very incomplete work in part to find out whether I'm barking up the wrong tree, or perhaps, as the British say, whether I'm just barking.

Update: Indeed, I'm not the first to come up with this. I seem to have essentially replicated the work of Prof. Carl Morris, described in detail in this impossibly-formatted text file. A layman's summary can be found here.



The basic model

Consider a simplified model of baseball run scoring, in which baserunning and advancing on outs are ignored. That is, no steals or pickoffs, no sacrifices or double plays or fielder's choice. This is obviously only an approximation of how the game works, but it's sufficient to demonstrate the principles involved. Besides, OBP and SLG don't incorporate those factors anyway.

In this model, every time a batter reaches base he either walks or gets a single, double, triple or home run. Runners already on base advance accordingly.

With a bit of simple mathematics based on probability theory, we can calculate in what fraction of innings different numbers of runners will reach base. For example, the probability that no runners at all will reach base in an inning is (1-OBP)^3. If OBP is 0.300, that means that in 34.3% of innings no runners will reach base.

Similarly, the chance that exactly one runner will reach base is 3 x OBP x (1-OBP)^3. In general (without going into the derivation), the chance that exactly r runners will reach base in an inning is (r+1)(r+2)/2 x OBP^r x (1-OBP)^3.

This chart shows the expected distribution of innings with each number of runners on base for different values of OBP (click to enlarge).



For example, with an OBP of .200, more than half of all innings have no baserunners. When OBP is .550, under 10% of innings have no baserunners, while over 15% of innings have one runner, a bit more have two runners, and a bit less again have three runners.

Even simpler is to calculate the average number of runners who will reach base per inning. Since OBP = ROB / (ROB + Outs), a bit of manipulation reveals that ROB / Out = OBP / (1-OBP), so ROB / Inning = 3 x OBP / (1-OBP).

Here's a chart of the average number of runners per inning as it varies by OBP.



Now let's think a bit about how runs are scored.

If you think about this simplified model of baseball, you'll realize sooner or later that outs don't matter. We know there must be three of them in each inning, and they are the basis for our calculation of how many runners will reach base in an inning, but we don't care at all who gets out or when or in what order. Since no runners advance on an out or are picked off, we can analyze run scoring based solely on the number of runners who reach base and how they get there.


Four types of runners

So let's start with the last runner in each inning. He can only score in one way: if he hits a home run. In real baseball, there are some other possibilities, including sacrifices, steals and errors. But in our model, since he can't knock himself in, there's no way for him to reach home unless he hits a home run. This is the case no matter how many runners preceded him in the inning, and no matter how many outs remain. So his chance of scoring is equal to the home run rate, defined here as the number of home runs divided by the number of runners reaching base: HRR = HR / (H + BB).

What about the runner before the last? He can, of course, also score with a home run. But he can also score if the runner who follows him knocks him in. So if the last runner hits a home run or a triple, the runner before him will score. If the second-to-last runner hit a double, and the last runner also hits a double, he will score his teammate. In general, we can list all the combinations of two on-base events which will bring the first of the two runners home. If we wanted to, we could calculate their combined probability.

Similarly, the third to last runner in each inning can score in all the ways the second to last runner can score - he can get a home run or be knocked in by the following runner. But he can also score in more ways, since he can be knocked in by the second runner following him. Again, we can list all the combinations of three on-base events which bring the first of the three runners home, though the list starts to get a bit long.

What about the fourth to last runner in an inning? Simple: he scores! There are only three bases, so if three more runners get on base, he has nowhere to go but home.

This means we can classify runners into four categories: the last runner on base in an inning, the second-to-last runner, the third-to-last runner, and all the rest. Each category has its own average score rate: for the last runner, his home run rate; for the second-to-last and third-to-last, the chances of them either homering or being knocked in by subsequent runners; and for the rest of the runners, the score rate is 100%.

Now here's the kicker: It's not hard to calculate what fraction of runners should be expected to fall into each of the four categories. The only variable is the on-base percentage.

How many runners are the last in the inning? Simple: each inning with at least one baserunner has one runner who is last. Count the number of innings with one or more more runner and divide it by the total number of baserunners, and you have the fraction of baserunners who are last in the inning. The formula is:

Fraction of runners who are last in an inning =
Fraction of innings with one or more runner / average runners per inning =
1 - (1-OBP)^3 / (3 x OBP / (1-OBP)) =
1 - 2 x OBP + 4/3 x OBP^2 - 1/3 x OBP^3


Similar manipulations give us the fraction of runners who are second to last in an inning:
2 x OBP - 14/3 x OBP^2 + 11/3 x OBP^3 - OBP^4

And third to last in an inning:
10/3 x OBP^2 - 25/3 x OBP^3 + 7 x OBP^4 - 2 x OBP^5

And all the rest - the runners who are guaranteed to score since they are followed by at least three other runners:
5 x OBP^3 - 6 x OBP^4 + 2 x OBP^5

We can graph these curves to see how the distribution of runners into the four categories varies with on-base percentage:



Two of these categories are not really affected by the slugging percentage. The fourth category of runners, of course, always score regardless of SLG. The first category, meanwhile, score only if they themselves homer, or they are advanced by some combination of steals, errors and sacrifices. Only the middle two categories of runners can be brought in to score by their team's collective slugging ability. They amount to a total of no more than about 42% of all of a team's baserunners, when OBP is around .400.

Another look at the same data:




Estimating scoring rates

If we want to use these runner categories to estimate run scoring, we need estimates of the scoring rate for each of the first three types of runner. There are two ways to estimate scoring rates: analytically or empirically. Analytically, we can list all the possible sequences of plays which would allow each runner to score and add up their probabilities. Empirically, we can process game event logs and count how many of each type of runner in fact scored for a given league and/or team.

I haven't done either of these properly, except for a brief, imprecise empirical check using the IBL play-by-play files.

Meanwhile, for a back-of-the-envelope estimate, we can assign the first type of runner - the last in the inning - a scoring rate equal to the home run per on-base rate (about 8% in the majors) plus something extra to account for steals, errors and sacrifices. Call it 8-12%.

The second type of runner can score on his own home run, or that of the runner following him, along with various combinations of doubles and triples - or even a single or walk, followed by taking the extra base on a double. His score rate is presumably at least twice the home run rate, plus. Call it 30-45%.

The third type of runner can score in all those ways, or he can be knocked in by the a third baserunner. Call it 50-75%.

I've prepared two graphs of the impact of the score rate on run scoring. The first shows the average runs scored per runner for different values of OBP, for a selection of widely varying score rates - the high scenario has score rates three times the low scenario. The second chart uses the same scenarios to compute expected runs scored per inning.





Overall, the impact of changing the score rate is higher when OBP is lower. This makes sense, since the higher the OBP, the higher the proportion of runners who are guaranteed to score. At on-base percentages around .300-.350, tripling the score rate per runner type leads to approximately a doubling of overall run scoring. But raising OBP from .300 to just .400 is worth more in runs scored than tripling the score rate at an OBP of .300.

If we zoom in on the typical range of OBP's, we can see that the MLB's 2007 OBP of .336 and run scoring rate of 4.8 per 27 outs matches very closely the middle scenario for runner scoring rates. The actual estimate yielded is 4.89. I did nothing deliberate to make this match up; I discovered the correspondence only after plotting the graphs. It would seem to confirm the overall intuitions in the scoring rate estimates.




So, where does this leave us? With lots of open questions:

- Empirical: What are the actual scoring rates per runner category in real baseball leagues? Do they yield correct estimates of run scoring when plugged into this approach?

- Empirical: How do the scoring rates correlate against game events, or against OBP and SLG? What coefficients can we apply to estimate scoring rates for different teams or leagues?

- Analytical: Can the formulas - specifically for the distribution of runner types by OBP - be simplified to yield a good-enough estimate with less calculation? (Though with modern computers and spreadsheets, it's not clear how important this is.)

- Practical: Does this approach offer anything not available from a more sophisticated Markov analysis?

- Applications: Can this be modified to estimate the run contribution of a single batter?


If you're still reading, I'd love to know what you think.

Tuesday, November 20, 2007

Stolen bases, stolen runs

I'll soon be updating the charts of offensive performance to take into account some minor glitches, but they shouldn't change the results in any significant way.

Meanwhile, I'd like to note what the run values say about the IBL's high steal rate - three times as high as in the majors. A stolen base was worth just 9.1% of a run. But a time caught stealing cost the team 28.1% of a run, plus 15.6% of a run for the out it created, for a total of 43.7% of a run!

The season's 457 steals were therefore worth about 41.4 runs. But the 110 times caught stealing cost teams 48.1 runs. So overall, steal attempts cost IBL teams about 6.7 runs over the season.

Just goes to show that the steal rate was way too high. I'll take a look some time at whether any players had positive net steal values.

Monday, November 19, 2007

Who were the IBL's best hitters? (Part II)

Last time, I ranked the IBL's top hitters using non-customized run estimators (Base Runs and Linear Weights). I promised that this time I'd apply customized linear weights, derived to suit the IBL's specific run-scoring environment.

I modified my approach somewhat after consulting with more experienced analysts; you can find the discussion here. Briefly, I ran a linear regression analysis on IBL data broken down by half-inning. Since run scoring in baseball occurs on a per-inning basis, aggregating the data into games (let alone seasons) reinforces all sorts of potential biases in the data. Park effects, for example, or team-specific skills, would appear to be associated with each other in aggregated data. That's much less likely in per-inning data, since there are so few game events in each half-inning.

More important for the IBL, I simply didn't have enough data points to get statistically significant results on a larger granularity. There were only 122 games and six teams. I'm trying to estimate the run values of some 15 different types of game events. Going down to the inning level gave me over 1600 independent data points, more than enough to estimate 15 coefficients (except for the rarest of game events).

Based on preliminary results and feedback, I made a couple of changes to my initial approach. The main one is that I lumped together times reaching base on error with singles, since from the batter's perspective they should be the same. It didn't make sense that I was seeing a substantially lower weight for a reach-on-error than for a single.

So here are the IBL-specific linear weights, along with the margins of error for each in parentheses. They represent the average number of runs created by of each game event.















Single or reached base on error: 0.586 (0.015)
Double:0.844 (0.035)
Triple:1.219 (0.127)
Home run:1.438 (0.042)
Walk:0.484 (0.018)
Hit by pitch:0.519 (0.038)
Error (without batter reaching base):0.302 (0.050)
Stolen base:0.091 (0.026)
Caught stealing:-0.281 (0.058)
Sacrifice fly:0.047 (0.069)
Sacrifice hit:0.109 (0.082)
Intentional walk (add this to the weight for a walk):-0.167 (0.114)
Out (apply this to every out):-0.156 (0.010)
Strikeout (add this to the weight for an out):-0.017 (0.019)
Ground into double play (add this to the weight for an out):-0.286 (0.056)


A couple of the margins of error are a bit high (see strikeouts, for example), but overall the level of significance is good.

Applying these weights to the league-level data, I got an estimated 1297 runs, about 1.6% higher than the actual figure of 1276. So to make everything match up, I shaved 1.6% off all my run estimates.

And here they are, the top 25 hitters in the 2007 IBL, using league-customized weights for the average run values of their offensive production (click to enlarge):



The first eight places are the same as the rankings using weights suitable for the major leagues. Of the 25 on the list, 24 are the same as before. The only difference is that Seth Binder replaces Ramon Rodriguez at position 25. Mike Lyons falls to 24th place; he was ranked higher using MLB-based weights presumably because stolen bases are worth less in a higher scoring league like the IBL; when it's easier to get on base and hit for power, it's not as valuable to take an extra base.

It's worth noting that the scale of the numbers is generally similar to those yielded by the MLB-based methods. The run estimates for positions 2 through 25 range from 21.88 to 44.35 here; from 21.68 to 43.71 for Base Runs, and from 22.47 to 43.63 for MLB-based linear weights.

The big discrepancy is for #1 Gregg Raymundo. Base Runs - which I suggested exaggerates performance for the extreme sluggers - gave him 59.88 runs, compared to 49.55 for MLB linear weights. The IBL-based linear weights surprised me by coming out at 56.28 runs, closer to the Base Runs estimate than the MLB linear weights estimate. I expected a linear approach to be closer to another linear approach than to a multiplicative model such as Base Runs.

To me, this proves two points: 1. Base Runs yields good run estimates even on the player level, not just for entire teams or pitchers. Gregg Raymundo was truly an exceptional hitter: AVG/OBP/SLG of .446/.600/.911 (OPS=1.511), rising to .505/.641/.970 (OPS=1.611) when adding bases reached on error. Yet Base Runs increased his run production estimate by just 6.4% over custom linear weights. Meanwhile, for Eladio Rodriguez, who hit at .461/.517/1.000 (OPS=1.517), or .471/.525/1.010 (OPS=1.535) with errors, Base Runs actually gave him fewer runs (39.01) than custom linear weights (41.15). Since no one approaching major league levels of play hits anywhere near those numbers, it seems safe to use Base Runs for estimating individual major league batters.

2. Gregg Raymundo absolutely dominated the hitting in this league, to an extent I didn't fully appreciate during the season. Perhaps that was to be expected, as I believe he was the only IBL player with experience in the AAA minors. Still, it's impressive.

Next time I'll give you the runs per plate appearance estimates, which neutralizes the impact of injuries and other differences in playing time over the season.

Download IBL data files while you can!

I wish the IBL long life and much success, but let's be realistic here. Given the recent updates to the IBL's website, it would probably be wise to save the game data while it's still available.

The game log files, which are hosted by Major League Baseball's Gameday system, are not on the IBL's site. They can be found at:

http://gd2.mlb.com/components/game/ind/year_2007/
(hat tip to weskelton)

Now, maybe the files aren't going anywhere anytime soon. Heck, maybe the league isn't going anywhere anytime soon. But it seems prudent to copy them now if you're thinking about analyzing the IBL stats.

If you're not familiar with the Gameday format, Mike Fast explains how to go about processing the data, with some help from Perl code from Joseph Adler's book, Baseball Hacks. Though the IBL doesn't have pitch-by-pitch data. (I've been writing my own code, since I've been using this project as an opportunity to learn to program in Python.)

Finally, if there's any substance to the announcement of some former IBL players and investors of their intention to form a new league to replace the IBL, I urge them not to forget about the things the IBL did right. In particular, make sure you track the stats. The IBL has a far better statistical record available on the Internet than any of the MLB-affiliated minor leagues. Absurd, but true. Baby, bathwater. Do it right.

Otherwise, we'll always have cricket.

Friday, November 16, 2007

The beginning of the end?

Israel Baseball League commissioner quits, board members follow

Reactions here, here, here.

Looks unlikely that the IBL can recover from this. A shame it should come to this due to organizational incompetence. Professional baseball in Israel never really had a chance, and it may now be a long time before someone tries again.

I'll keep working on the stats, because I enjoy it. But I'd rather have a season to look forward to.

Monday, November 12, 2007

Who were the IBL's best hitters? (Part I)

All this effort in tabulating reaches on error has been directed towards the goal of assessing player offensive performance. Having long ago determined that you can't analyze the IBL without errors, I needed to attribute the errors to batters - data which is missing from the IBL summary stats.

Now that I've done that, I can apply run estimators on a player-by-player basis to rank their offensive performance.

I won't rehash here the discussion of different run estimation methods. A good summary can be found here, by Justin Inaz.

I'll be looking at two run estimators, Base Runs and Linear Weights, and discussing how I chose the IBL-appropriate coefficients for them.

You may remember that I used Base Runs once before, in estimating the IBL's per-team performance. Arguably, Base Runs is not a suitable approach for assessing individual offensive players, since its formula applies the player's own on-base ability to his own base-advancement skills, as if he were playing on an entire team of players with his stats. This would yield overestimates for exceptionally good players, and underestimates for exceptionally bad ones.

Nevertheless, I've applied Base Runs for individual players to see what came out.

In addition, I applied Linear Weights. This family of techniques assigns a fixed multiplier to each type of offensive event in the game. To calculate a player's value, you just add up the values of all his stats. The multipliers are meant to be estimates of the average number of runs each type of event is worth in the league.

Thus, a single gets a certain run value, as does a home run, or an out, or a stolen base - and the same fixed value is applied to all of the player's offensive production, even if we know (for example) that a certain home run was a grand slam, while a certain two-outs single left him stranded at the end of the inning. We don't care; we just tote up the average run values and call that his estimated run production. The advantage is that it absolves the player of any responsibility for the performance of his teammates, so that may actually be what we want to do when comparing hitters across a league.

1. Base Runs

I took Tom Tango's weights for the Base Runs equations, with a few modifications. In the A component (runners on base), I added reaches on error (not all errors, just reaches) and catcher interference. In the B component (base advancement), instead of Tango's coefficient for errors (0.799) I scaled it up to attribute to each batter the league average ratio of other fielding errors (without the batter reaching base). That is, instead of 0.799*E I used 1.220*ROE, since I have ROE per batter but I have no data on runner advancement on errors. Finally, in the C component (outs), I subtracted ROE, since a batter reaching base on error is not out.

Applying this formula to the league totals, I get an estimated 1230.4 runs produced, about 3.6% lower than the actual value of 1276 - pretty good, since I did nothing to customize the coefficients for the IBL. (I'm still working out how to do that, now that you mention it.)

So here they are, the top 25 hitters in the 2007 Israel Baseball League, according to the Base Runs estimator. (Why 25? Feeling generous, I guess. It also coincides with all the players with at least 20 estimated runs produced.)


(Click to enlarge.)

There's Gregg Raymundo, way ahead of the pack, presumably due largely to his absurdly high on-base percentage. Jason Rees, who I recently dissed in comparison to Eladio Rodriguez, places second, followed closely by teammate Johnny Lopez. (Yes, the first three are all from Bet Shemesh.)

Eladio comes in fifth, but keep in mind that this is a cumulative statistic, so playing time matters. Had Eladio not been out with injury, he would presumably have surpassed Lopez and Rees (compare Eladio's 39.0 Base Runs in 118 plate appearances with Rees's 43.7 in 154).

Bet Shemesh grabs seven of the top 17 positions, dominating the leaders table as much as they dominated the diamond.

Bear in mind, though, that I'm using unadjusted stats here - Gezer's park factors presumably give the Blue Sox a bit of a boost. Though it doesn't seem to have done much for their home field partners, Modi'in, with just four slots in the top 25.

Enough about Base Runs. Let's have some Linear Weights.


2. Linear Weights

But which weights to use?

To start with, I took Tom Tango's weights (see the lwts_RC column here). They're based on the MLB from 1974-1990, so there's no reason to assume they'd be suitable for the IBL.

But they're not bad, either. Applying them to the league totals, they estimate 1237.2 runs, lower than the actual 1276, but a bit better than Base Runs did.

Applying them to the players, we get:



Not that different, actually. Again, the top 25 players are those with over 20 estimated runs produced. The exact same players are in both lists, with 12 of them at the exact same rankings as with Base Runs. A few of them are mixed around a bit - Eladio edges out Josh Doane, for example - but the only one with a significant change in position is David Kramer, who drops from 14th to 21st.

Arguably the most notable change between the two tables is in leader Gregg Raymundo, whose estimated run production drops from 59.88 using Base Runs to 49.55 using Linear Weights. This presumably demonstrates the problem with using Base Runs for individual player estimates of outstanding hitters - it's as if he played on a whole team of Raymundos, whereas Linear Weights assumes he played with average players.

But I still can't take these numbers seriously, knowing they were generated using weights from the seventies and eighties of Major League Baseball. I have no choice but to generate my own weights.

Tune in next time for IBL-specific Linear Weights estimates.

Sunday, November 11, 2007

Steals, errors and speedy batters

Last time around, I commented on the similarities between the IBL's stolen base leaders and the leaders in reaching base on error. I glibly wrote that "Not surprisingly, baserunning ability is a key factor in the ability to reach base on error."

Is that really so? Let's plot the error rate (reaches on error per at-bat) versus the steal rate (steals per times on base) for the 50 players with at least 80 plate appearances in 2007:



Wow! What a strong correlation! (Note sarcasm.) Not much support for the theory, it seems. Except for a few outliers, most of the players are scattered in a random cloud with no apparent structure.

But if we massage the data just the right way...

Here's the same data, but restricted to the 20 players with the highest reach-on-error rates:



That's better, isn't it? In fact, we get a correlation of .77 and an R-squared of .59, both indicating a high degree of correspondence between the two statistics - for this group of players.

Does this mean anything?

I think it might.

I would suggest that there are two kinds of hits. There's a "power" hit, a solid base hit into the outfield gap, generally either a line drive or a sharp grounder. It's hit far out and between the fielders so that any batter can make it safely to first base.

Then there's the "speed" hit. Maybe it isn't hit as far, or it's not as hard for the fielders to get to. Whether or not it becomes a hit depends on the speed of the batter (and possibly other runners). If he can leg it out to first, he's got the hit. Otherwise, he's out.

A reach-on-error is predominantly a "speed" hit. It is predominantly a ground ball, but one which was (apparently) played poorly by the defense. If despite the error the batter is put out, the play is recorded as a normal out - no defense error is recorded. If the batter beats out the throw, however, he has "reached on error" - as if it was not his own skill and speed that got him on base instead of out.

So faster runners are more likely to reach base on error. There is no need to assume (as I erroneously wrote earlier, and as Tom Tippett seems to imply here) that some batters actually have the propensity to cause the defense to commit more fielding errors by hitting the ball in a hard-to-field way. Rather, the actual error rate may be distributed evenly among batters, but only some of them can consistently exploit defensive errors to get to first base. The others just get out, and no error is recorded.

Furthermore, it stands to reason that some error plays - especially at lower levels of play - are so egregious that even the slowest batter can reach base. This is clearly the case for wild throws, for example. So there should be a "background rate" of reaches on error that affects all batters, however fast or slow they are. This may explain the lack of correlation between steal rate and error rate for the bottom of the pack - all we're seeing there is random noise, not batter skill. Also, the sample size is probably too small to be significant, with just 1-3 reaches on error per hitter on the season.

Finally, if you haven't yet, please see Tom Tango's comments on an earlier post about steals and error rates. The salient point is that speed probably peaks at a younger age than strength (i.e., fielder's throwing ability). I would add to that that fielding skill, unlike running speed, is learned through experience and probably also peaks later. So the younger age in lower-level leagues can be expected to produce more steals and errors.

Thursday, November 8, 2007

Reached-on-error leaders

I've talked a bit about the high error rate in the IBL already. About how you can't properly analyze the IBL without taking errors into account.

That's partly why I haven't talked much about assessing batter performance levels. The public stats on the IBL's website only give raw figures for errors by fielder. There is no accounting of how many times each batter reached base on error, or how many runners advanced due to errors. Contrary to what you might think, errors are not just a fielding phenomenon; batters do vary greatly in their ability to reach base on errors. But the conventional baseball stats actually record reaches-on-error as an out for the batter. It actually lowers his batting average to reach base on error!

So I've finally gotten around to parsing the IBL game log files, with the play-by-play accounts of each game. I still have work to do to extract all the data, but I've gotten as far as reached-on-error. Here goes...

Out of 396 errors in the IBL season, 261 of them got the batter on base (including two cases of catcher interference). That's more than the season's 238 hit-by-pitches , and it's equivalent to over a quarter of the 1003 walks.

The league's leaders in reaching base on error (click to enlarge):



Doesn't look like much. But wait. Let's look at that as a rate, in terms of reaches per at-bat (minimum 80 plate appearances). That tells you how much the ROEs would be worth in terms of batting average:



The league leaders gain as much as the equivalent of 81 points in batting average just by reaching base on error.

Notice any similarities betweeen the names on that list and the IBL's stolen base leaders? Not surprisingly, baserunning ability is a key factor in the ability to reach base on error.

If baseball statistics were done right, a base reached on "error" would be counted as a hit, since there's no practical difference between the two. If we do that, ranking hitters by "Batting Average with Errors", we get this:



Batting champ Eladio Rodriguez, who was not among the league leaders in reaches-on-error (or stolen bases), loses his batting title to second place Gregg Raymundo. Most of the batting average leaders remain unchanged, with Doane, Lopez and Franco retaining ranks 3-5. Nate Fish shoots up to fifth place from tenth. Meanwhile, Jeff Hastings and Mike Lyons, down at 31st and 32nd in the batting average rankings, are up at 16th and 18th respectively. Hector De Los Santos is promoted from 20th to 12th, and Ryan Forsythe goes from 24th to 15th.

The league batting average goes from .270 to .311 when errors are counted. Amazingly, Gregg Raymundo breaks the .500 mark in batting average with errors!

Now let's do the same for on-base percentage, calculating on-base percentage including reaches on error:



Here, Josh Doane edges Eladio Rodriguez out of second place. Jeff Hastings rises from eighth to fifth place and Nate Fish from 15th to 11th. Perhaps most impressive, Mike Lyons reaches 18th place, all the way up from 31st, while Sam Marthinsen reaches 20th place from lowly 29th.

Overall, the league on-base percentage was .383; errors bump it up to .416.

And yes, Gregg Raymundo reached base one way or another over 64% of the times he came to the plate. Now that's impressive! (Though not to the Yankees, apparently.)

Wednesday, November 7, 2007

Hold on to your IBL memorabilia...

...since there might not be a season two?

At least according to rumors reported by journalist Elli Wohlgelernter.

No matter. I've got enough stats to keep me busy for a while.

But I'd love to have another season to look forward to!

Wednesday, October 31, 2007

IBL 2007 stolen base leaders

As long as we've been discussing stolen bases, let's glance at the 2007 leaders.

A total of 457 bases were stolen in the entire season. Of them, 314 were taken by the 20 leaders in this chart:



Now let's look at them again, this time emphasizing pure base stealing ability. The next chart is sorted in order of stolen bases per times on base; that is, SB / (H + BB + HBP - HR). It indicates how often a player stole a base given the number of opportunities he had to do so. (The cutoff point for the chart was 80 plate appearances.)



Mike Lyons of Bet Shemesh not only led the league with 32 steals, leaving Netanya's Josh Doane in the dust with 25, but he was in a class of his own in terms of basestealing frequency, stealing on average over 71% of his times on base. That's 46% more often than #2 John Toussas of Raanana, and over four times as high as the IBL league average of 16.5% (compare that with about 5% in the major leagues!). And Lyons was caught just 4 times, in 11% of his attempts.

I don't have any earthshattering conclusions here. Just the stats, ma'am.

Tuesday, October 30, 2007

More on Rodriguez and Rees

As long as I was discussing Eladio Rodriguez and Jason Rees, I should have pointed out that they were also apparently effective fielders. I say apparently because the only fielding stat I currently have available is errors, and those are known to be only a partial reflection of fielding skill. Rees was charged with two errors over the season in this error-prone league, while Rodriguez, a catcher, was charged with one error and two passed balls. Since catcher is the most challenging defensive position after pitcher, that may give Eladio an edge in his career; catchers aren't expected to be good hitters too.

Also noteworthy is that neither player stood out for stealing bases. Rees was successful enough, stealing 14 (and caught twice), putting him in a four-way tie for ninth place and placing him eleventh for his rate of bases stolen per times on base.
Rodriguez, however, stole just one base the entire season.

So, IBL fans, remember where you stashed those autographed game balls, caps, programs, tickets and Burgers Bar hamburger wrappers. Maybe they'll be worth something some day. Maybe.

Sunday, October 28, 2007

What do the Yankees see in Rodriguez and Rees?

While the Red Sox were clobbering the Rockies the other day, IBL fans were treated to a smile when the Yankees announced the signing of IBL batting stars Jason Rees and Eladio Rodriguez, the first IBL position players to sign pro contracts and the first IBL alumni to sign with MLB farm systems.

Congratulations to Jason and Eladio, as well as to the league for giving them the platform from which to get noticed by the big leagues.

But don't expect to see Rees and Rodriguez in Yankees uniforms any time soon. They were signed to minor league contracts, and both have a long way to go before they're likely to make the majors.

Eladio has minor league experience already, having been signed by the Boston Red Sox in 1998. His (incomplete) record in the minors shows him having played in leagues at the A- and A+ levels, playing variously as catcher, outfielder and pitcher. most recently in 2004. Before the IBL, he played in the Dominican Republic Winter League, where he apparently only had seven at bats in as many games in the 2006-7 season. At 28 years old, typically the peak of a ballplayer's career, he would seem to be a long shot for a major league roster.

Update: Eladio's complete minor-league record is here.

Rees's baseball resume is even thinner. He's played college ball, and not even at the higher levels. And he's played in Australia. None of which is to say that he doesn't have what it takes to make it in the big leagues, but neither is it much evidence that he does. He is only 23, however, and his best years may yet be ahead.

So why Rees and Rodriguez? Most obviously, the two were the IBL's home run leaders. Rees led the league with 17, followed closely by Rodriguez at 16. But Rodriguez was injured for about a week of the season, and he actually hit home runs at a faster pace than Rees when he played: 6.4 at bats per home run, compared to 7.6 for Rees.

Beyond that, how did the two do in the IBL? Let's see how they ranked among the 50 batters with at least 80 plate appearances (that's about 2 per game).









As you can see, despite Rees's higher home run total, Rodriguez was a substantially better hitter over his 34 games than Rees over his 41. Rees also walked less often (9.7% of plate appearances vs. 13.6% for Rodriguez) and struck out more (15.3% of PAs vs. 12.7%). And there were several other batters with better overall stats than Rees.

Considering the short season and the small sample size (remember, about one-fifth the length of a major league season), it's hard to see why the Yankees would sign Rees just on the strength of his home runs rather than, say, Gregg Raymundo (12 HRs), Johnny Lopez (14 HRs) or Adalberto Paulino (11 HRs in just 92 PAs). Though of course I'm not privy to any of their personal plans, and perhaps none of them were available or the Yankees turned them down for other reasons.

On the face of it, it looks like the Yanks just signed the IBL's two home run leaders without thinking any further. If that's the case, this may turn out to be more a PR move than anything else in a city with America's largest Jewish population.

Still, it will be good to see how the two hold up in the minors. We'll have two more data points for assessing the IBL's league quality.

Wednesday, October 17, 2007

Long-term league quality indicators

First, credit where credit is due

I don't want anyone to get the idea that using error rates to assess league quality is a new idea. In fact, Bill James himself identified fielding percentage as an indicator of league quality. The error rate and the fielding percentage are just two ways of looking at the same information.


Historical charts of major league stats are available at A Graphical History of Baseball (hat tip: Baseball Musings).

Here's the chart of Errors Per Game (per team):


By this standard alone, the IBL would match the early 1900's with 2.2 errors per nine innings. (If it's any consolation, some of the 2007 rookie leagues are in the same zone.)

Stolen base rates, however, do not track the long-term improvements in league quality. Steals fell to their lowest levels around 1950, then rose until the 1980s, and have declined since then:



I don't know what changes in the game gave rise to these trends in the steal rate - perhaps shifts in runner skill versus pitcher skill? Or maybe it was all Rickey Henderson's fault!

(Update: Duh! Of course, a major factor in the number of steals per game is the overall level of offense - the more baserunners, the more steal opportunities. That's why the relevant steal rate is steals per runner on base, not steals per game.)

It certainly remains possible that the steal rate correlates with league quality at any particular point in time, as my earlier graphs seem to demonstrate. But the steal rate would seem to be a far less reliable gauge of league quality than the error rate, so I'm less inclined to downgrade my assessment of the IBL's quality on the sole basis of its high steal rate. (The IBL's steal rate was 2.5 per nine innings, nearly double the MLB's record levels from the early 1900s!)

Tuesday, October 16, 2007

More on league quality estimation

The previous post on estimating the level of play in the IBL generated some interesting comments, including on the Baseball Fever Sabermetrics Forum and Tom Tango's blog. Also, Rabbi Jason Miller noticed my citation of his game observations, and commented.

I'd like to respond to the comments, and add some more observations of my own.


Why errors and steals?

Tango is surprised that error rates and stolen base rates correlate at all with the level of the league. After all, the reason batting averages, or walk and strikeout rates, don't track the league level is that they are the result of the confrontation between the batter and pitcher/fielders. Better leagues have better hitters, but also better pitchers and fielders. On the whole, they balance each other out, so the majors don't have higher batting averages or walk rates than weaker leagues. Sometimes pitching overpowers hitting or vice versa, but there's no connection between the relative strength of hitters and fielders and the overall level of league play.

You might expect the same to apply to errors and stolen bases. An error is not just the fault of the fielder. Some batters consistently reach base on error far more often than other batters, presumably because they're hitting more hard-to-field balls. Shouldn't that balance out the stronger fielding in the stronger leagues?

A stolen base certainly is not the sole fault of the fielding team; arguably, it's first of all a skill of the baserunner. So why should weaker leagues have higher steal rates? Don't they have less skilled runners?

On the one hand, the graphs speak for themselves. The correlations between league level and error rates per at-bat (0.93) and stolen base rates per runner on base (0.85) are stunningly strong. If you leave out the inconsistent rookie leagues, they're even higher (0.97 and 0.88 respectively). But that doesn't absolve us of an explanation.

The answer, I think, is that the league-level variations we see in both error rate and steal rate are primarily factors of the quality of the fielding. It may be true that some hitters are better able to hit balls that are hard to field, but at lower levels of play that's not the main factor in producing errors. To quote myself:

What I think you're seeing with the top major leaguers is an ability of exceptional batters not just to "hit it where they ain't", but also to "hit it where it's hard to field". What I think we're seeing with high overall league error rates in the minors is at the opposite end of the defensive ability scale - not balls hit where it's hard to play them, but routine plays that the sub-major-leaguers flub: dropped catches, wild throws, bobbled grounders.

That is, I suspect that the further you go down the ability ladder, the more errors reflect unprofessional fielding rather than skillful batting. Hence, overall higher error rates in overall weaker leagues.

A similar argument can be made regarding steals. While running speed is important in baseball, it's not necessarily that much higher in the majors than in weaker leagues. What is substantially higher is fielding ability, as a result of more experience and winnowing out the poor fielders. Plenty of minor league players can run as fast as their major league counterparts, but they aren't as practiced at holding runners on base and picking them off at second.

The upshot of this analysis is that both of these measures are, at least at league level, essentially indicators of fielding ability. We still have no independent measures of league level based on batting ability or pitching ability. The assessment is very one-dimensional. Unfortunately, stats such as wild pitches or hit batters do not seem to be available for the minor leagues; they could be good indexes of pitcher skill.


More about the stats and graphs

Tango is probably right in suggesting that I had the denominators wrong - errors should be measured per at-bat, and steals per runner on base. In practice, though, those changes don't affect the results in any significant way.

On reflection, I would drop the "unearned runs" and "defense efficiency" measures. The former is just a roundabout and unreliable way of measuring the error rate - it might be useful if you don't have error stats, but it's generally better to measure errors directly. The latter measures the defense's success in putting out batters on balls in play. However, the correlation between batting average on balls in play (BABIP = (H - HR) / (AB - HR - SO)) and league level is very weak (see below). In practice, then, the DER graph is also just another way of measuring the error rate. That leaves us with two relevant stats: errors per at bat and stolen bases per runner on base.

We can plot them against each other for another picture of the league quality level (click to enlarge):



In this graph, I've indicated the league level by the plot symbol: blue spheres for the majors, green spheres for AAA, gray spheres for AA, red spheres for A+, gold spheres for A, gray diamonds for A-, orange spheres for rookie leagues. Three independent leagues have been marked with stars: the Atlantic League (red), Canada's Intercounty Baseball League (orange), and the Israel Baseball League (blue). The regression line is based only on the majors and ranked minor leagues, including the rookie leagues but excluding the independents.

With the exception of the steal-frenzied IBL, the relationship between the steal rate and error rate is clear and strong (0.92 for the ranked leagues). Also, the grouping of leagues by level is mostly distinct. AAA and AA seem quite close in level here - maybe fielding levels aren't different enough to distinguish between them. Note that the Atlantic League falls in the AA-AAA area, as both the league and observers generally claim. A and A- leagues are quite close, but A+ is clearly at a rank of its own. And the rookie leagues show a wide range of levels, but they cluster quite close to the SB/E regression line (with the Canadian IBL somewhere in the middle).

Arguably, the distance along this line could be used as an estimate of league quality, at least as indicated by fielding ability. I'll try to calculate those estimates, time permitting.

Without further ado, here's the graph of BABIP I promised. There's a correlation between BABIP and league level, but it's weak (0.33), and not much value in assessing league quality.



A final comment on the stats. Sabermetricians have often derided the error stats and fielding percentage, not without good reason: "Errors and therefore fielding percentage are an inadequate way of measuring fielders because of the subjective nature of the decisions and because they only record failures and thus fail to take into account the fact that good fielders cover more ground and therefore record more outs" - Dan Agonistes.

But in the aggregate, I think I've shown that errors are a relevant measure of league quality level, and one of the few such measures that are widely gathered and published for baseball leagues of all levels of play. Keep that in mind next time someone touts his new top-secret formula for assessing fielding ability or league quality.

And now back to the rabbi.

Rabbi Miller defers to the judgment of Jay Sokol, who attended the IBL game with him:
Jay is the General Manager for the Delaware Cows of the Great Lakes League, which is a summer league dedicated to helping college players get used to the wooden bats they'll use in the minor leagues. Jay thought the level of play in the IBL was very similar to the wood bat summer league. He even recognized an IBL player whom he previously scouted for the Cows.

I certainly defer to Sokol's baseball judgment - I'm just a fan and a novice sabermetrician. I would point out, though, that the game they watched was between Netanya and Raanana, two of the IBL's weaker teams (at least until Netanya's closing weeks). The game's box score and play-by-play log indicate that Raanana committed five errors - high even by their own averages (2.1 errors per game, the highest in the IBL). So I wouldn't rely on a single game to assess the IBL's level of play. But thanks for the input!