Skip to content

Instantly share code, notes, and snippets.

@gabriel19913
Created December 9, 2019 16:03
Show Gist options
  • Save gabriel19913/16937c3a07660b90b9e3817039b65705 to your computer and use it in GitHub Desktop.
Save gabriel19913/16937c3a07660b90b9e3817039b65705 to your computer and use it in GitHub Desktop.
def simulate_final_points(final_prediction, std_error, current_points, max_possible_poins):
points_simulated = np.random.normal(final_prediction, std_error)
if points_simulated >= max_possible_points:
points_simulated = max_possible_points
if points_simulated <= current_points:
points_simulated = current_points
return points_simulated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment