Learn R Programming

Sabermetrics (version 1.0)

pyth: Pythagorean Expectation

Description

Pythagorean expectation is a formula invented by Bill James to estimate how many games a baseball team "should" have won based on the number of runs they scored and allowed.

Usage

pyth(RS, RA)

Arguments

RS
Runs Scored
RA
Runs Allowed

Value

  • Returns (RS*RS)/((RS*RS)+(RA*RA))

References

http://en.wikipedia.org/wiki/Pythagorean_expectation