Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expected Points & Win Probability #316

Open
seanpdwyer7 opened this issue Dec 20, 2019 · 1 comment
Open

Expected Points & Win Probability #316

seanpdwyer7 opened this issue Dec 20, 2019 · 1 comment

Comments

@seanpdwyer7
Copy link

Hi, I'm wondering if any of you have found a way of implementing an Expected Points & Win Probability models into their Postgres Server?

Wondering if any of you have had any luck implementing scripts.

Thanks!

@hardyaf
Copy link

hardyaf commented Sep 9, 2020

Sean,

I have a python script that does win probability. I can share with you, but in reality the fivethirtyeight github (https://fivethirtyeight.com/methodology/how-our-nfl-predictions-work/) explains it better than I can. For EPA, there is a lot of question about what model you want to use. If you want to develop your own, let me know, the math is fairly simple, but its much easier to take a known regression and apply it (EPA is a well studied topic, imo there aren't a ton of gains to be made from developing your own model).

IMO the real answer to these questions is to not implement in your postgres server directly because there are a lot of calculations. It's much better to pull from SQL to python, and push back into SQL tables once the math is done (if you need to, I don't think you really ever need to put it back into SQL, since the NFL data size is actually quite small relatively).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants