The Guru's T-Test
The argument settler. One hitter batted .300 and another .270. Is the first one better, or was it luck? Put in each player's chances and results, and this tells you whether the gap is big enough to count. Compare two players, or a player and his team or his league.
How it works
Luck moves every stat. A .270 hitter can bat .300 over a season without getting any better, so the question is how big a gap luck can make on its own. That depends on the number of chances. The more at-bats or innings, the smaller the gap luck can make, and the smaller the difference you need before it counts.
- Difference needed to count is the gap luck stays under 19 times in 20. A difference bigger than that counts.
- Chance the gap is real is how sure you can be that the two really differ, and aren't just two equal players with different luck. 95% or more counts.
- For averages and rates, where each chance either succeeds or doesn't (a hit in an at-bat, a strikeout of a batter), it's the standard test for two proportions. For ERA, where a pitcher can give up more than one run in an inning, it treats earned runs as a count per inning.
- Comparing a player with his team or league? Check the box so he comes out of the totals first. Otherwise his own numbers pull the team's toward his and shrink the gap.
This replaces the T-Test Gadget I offered as a Windows program. Same idea, and now it runs on your phone.
