Skip to content

Bayesian modelling of shot generation and conversion in soccer

License

Notifications You must be signed in to change notification settings

huffyhenry/shot-generation

Repository files navigation

shot-generation

Bayesian modelling of shot generation and conversion in soccer.

Model

The model is described briefly in a blogpost, for full definition consult the shotgen.stan and shotconv.stan files.

Execution

Currently the model is best executed and visualised via IPython, like so:

%run run.py
gen_samples, team_map = run("shotgen.stan")
conv_samples, _ = run("shotconv.stan")

%run analysis.py
team_profiles(gen_samples, conv_samples, team_map)
score_bars(gen_samples)
score_bars(conv_samples)

which produces figures like in the blogpost.

About

Bayesian modelling of shot generation and conversion in soccer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published