O'Reilly logo

Practical Data Science Cookbook by Abhijit Dasgupta, Benjamin Bengfort, Sean Patrick Murphy, Tony Ojeda

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Simulating a single game with outcomes decided by calculations

Now that we have calculated offensive and defensive strength indexes for each team in the league, we can start having teams play each other and, using our strength calculations, determine which team should win each game. The team that wins will be the stronger team overall, as measured by our recently created indices. We are going to do this by comparing the offensive strength of one team to the defensive strength of another team and vice versa. The general idea is that the team with the largest offense-to-defense difference should be the stronger of the two.

Getting ready

If you successfully calculated the offensive and defensive strengths for each team, you should have everything you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required