Page 1 of 2
Building an NBA Game Simulator
Posted: Fri Jan 23, 2015 7:16 pm
by BigLeagueInsights
Hey all,
Currently working on using 4+ years of play by play data to develop a Markov Model that simulates a regular season game.
More details here:
http://bigleagueinsights.com/simulate-n ... kov-model/
Feedback welcome. If you're interested in obtaining our data or participating in development in any way, please let me know!
Re: Building an NBA Game Simulator
Posted: Fri Jan 23, 2015 8:01 pm
by Crow
Happy to see you running with this. I guess some of those academic articles got read and are useful.
Re: Building an NBA Game Simulator
Posted: Fri Jan 23, 2015 8:05 pm
by BigLeagueInsights
Thanks Crow!
Appreciate all your time and hard work on this site and on twitter, your links are always useful and informative.
Re: Building an NBA Game Simulator
Posted: Fri Jan 23, 2015 8:17 pm
by Crow
Thank you for finding sone of it useful.
By the way, how big would the dataset download be? What format?
I am do not know if I be useful to you on the further development of the model but I am interested in following it and hearing about the issues and strategies employed to address them. Here or by pm (or email if that is strongly preferred). I know I wouldn't be useful for technical modeling issues, but some chance on conceptual level or for results evaluation.
Your openness to sharing is admirable, though it makes me curious also. Did you have a specific use in mind when you started or are you experimenting and will decide later?
Re: Building an NBA Game Simulator
Posted: Fri Jan 23, 2015 8:27 pm
by kohanz
Very interesting project. I will definitely follow closely and am tempted to throw my hat in for developer support, but not sure if I have the time for it. What's your tech-stack looking like?
Crow wrote:Did you have a specific use in mind when you started or are you experimenting and will decide later?
Unless I'm misunderstanding your question, I thought the usage was indicated in the article:
Predictive modeling in sports betting has long been the “holy grail” of gamblers around the world.
Re: Building an NBA Game Simulator
Posted: Fri Jan 23, 2015 8:30 pm
by BigLeagueInsights
Data is in the DB, and can be exported in pretty much any format desired. We typically use CSV.
As far as sharing goes, we feel that the gains from collaboration are greater than the gains of "protecting IP" at this point. Main applications of the simulations will be for sports betting, but we believe there are some interesting possibilities for daily fantasy. Still in "exploration" mode at this point.
Re: Building an NBA Game Simulator
Posted: Fri Jan 23, 2015 8:33 pm
by BigLeagueInsights
kohanz wrote:Very interesting project. I will definitely follow closely and am tempted to throw my hat in for developer support, but not sure if I have the time for it. What's your tech-stack looking like?
Thanks for the interest. DB is MySQL, JSON parser is done in PHP.
Re: Building an NBA Game Simulator
Posted: Fri Jan 23, 2015 8:34 pm
by kohanz
BigLeagueInsights wrote:kohanz wrote:Very interesting project. I will definitely follow closely and am tempted to throw my hat in for developer support, but not sure if I have the time for it. What's your tech-stack looking like?
Thanks for the interest. DB is MySQL, JSON parser is done in PHP.
What's your scraping source? I'm using SI.com.
Re: Building an NBA Game Simulator
Posted: Fri Jan 23, 2015 8:35 pm
by BigLeagueInsights
Straight from NBA.com
Re: Building an NBA Game Simulator
Posted: Fri Jan 23, 2015 8:38 pm
by kohanz
BigLeagueInsights wrote:Straight from NBA.com
Ah. Do you work-around the last name issue, or does it not matter for your purposes?
Re: Building an NBA Game Simulator
Posted: Fri Jan 23, 2015 8:55 pm
by Crow
I wonder how many teams use a by start state possession level Markov chain model in game planning for and against specific teams. I wonder how many use it specifically to optimize lineups for defense to offense and offense to defense transitions. I wonder how many use it for roster construction. I know at least 2 teams that do something with simulations but don't know where specifically and how intensely used.
Re: Building an NBA Game Simulator
Posted: Fri Jan 23, 2015 9:07 pm
by BigLeagueInsights
kohanz wrote:
Ah. Do you work-around the last name issue, or does it not matter for your purposes?
We do have a workaround. If you want more detail, PM me.
Re: Building an NBA Game Simulator
Posted: Fri Jan 23, 2015 9:10 pm
by BigLeagueInsights
Crow wrote:I wonder how many teams use a by start state possession level Markov chain model in game planning for and against specific teams. I wonder how many use it specifically to optimize lineups for defense to offense and offense to defense transitions. I wonder how many use it for roster construction. I know at least 2 teams that do something with simulations but don't know where specifically and how intensely used.
I'm surprised to hear that teams actually do simulations at all.
There are some interesting surprises in the transition matrix. Stuff like, "Does inbounding after a made 3 give us a better chance at scoring than inbounding after a free throw?" I provided a couple examples in the article, but there is a ton of information that can be gleaned if you know how to ask the right questions. I am hoping some smart folks will take a look at the data and offer some insight.
Re: Building an NBA Game Simulator
Posted: Fri Jan 23, 2015 9:21 pm
by Crow
The 2 teams who I hear use simulations may use static, non-start state dependent models. At least the public talk of those models didn't clearly articulate use of start states, to my recollection.
Re: Building an NBA Game Simulator
Posted: Fri Jan 23, 2015 9:28 pm
by BigLeagueInsights
Our developer and data guru is going to jump on here shortly and can offer answers to any technical questions.