Skip to content

Basketball Stat to predict based on each shot how many points a team should have scored in a game.

Notifications You must be signed in to change notification settings

blamb31/expected-score

Repository files navigation

expected-score

Description

This is a basketball stat that I've come up with to show the expected score of a game based on the shooting percentages from certain distances of each shot for the player shooting.

Basic calculation:

  • singleShotExpectedScore = playerShootingPercentageFromDistanceOfShot * ShotPointValue
  • gameExpectedScore = sum of all singleShotExpectedScore for a team

Use

Argv order:

  1. node
  2. String, file to run
  3. String, shootingNumbers file name
  4. Boolean, true to use a gameStats file that already exists, false to create a new one
  5. String, filename of gameStats file to use or gameId to fetch

Example - using a gameId input from the command line

  • node index.js jazzShootingNumbers2020-2021 false {{gameId}}

Example - using a preloaded gameStats file

  • node index.js jazzShootingNumbers2020-2021 true 2021-11-11-jazz-pacers

About

Basketball Stat to predict based on each shot how many points a team should have scored in a game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published