Looking for a simple way to calculate baseball stats while building a side project #203038
Replies: 1 comment
|
Few things that helped me with similar stuff: For the basic stats (ERA, WHIP, OPS) I just wrote the formulas myself, they're like one-liners anyway. Not worth pulling a dependency for those. TLDR: implement the simple formulas yourself, lean on pybaseball for the complex ones, and validate against Baseball-Reference/FanGraphs numbers not a random tool. |
Uh oh!
There was an error while loading. Please reload this page.
Discussion Type
Question
Discussion Content
I'm working on a small baseball-related side project, and I needed to calculate stats like ERA, WHIP, OPS, and a few others without having to write every formula from scratch.
I found plenty of explanations about the formulas, but I was looking for something where I could quickly verify my calculations while testing my code.
For anyone who has built sports analytics projects:
For testing, I came across this calculator, which made it easier to compare my outputs with expected values.
I'm mostly interested in learning what workflow other developers use when validating sports statistics.
All reactions