Created
December 9, 2019 16:03
-
-
Save gabriel19913/16937c3a07660b90b9e3817039b65705 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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