Skip to content

Instantly share code, notes, and snippets.

@micahmelling
Created March 6, 2018 03:14
Show Gist options
  • Save micahmelling/6ca33a8ba479aef6078ec3151ea9a428 to your computer and use it in GitHub Desktop.
Save micahmelling/6ca33a8ba479aef6078ec3151ea9a428 to your computer and use it in GitHub Desktop.
def run_match_up_simulation(fastball_surrender_prob, curve_surrender_prob, change_surrender_prob, fastball_hit_prob,
curve_hit_prob, change_hit_prob, zero_zero_pitch_probs, zero_zero_hit_surrender_prob,
zero_zero_hit_prob, one_zero_pitch_probs, one_zero_hit_surrender_prob, one_zero_hit_prob,
zero_one_pitch_probs, zero_one_hit_surrender_prob, zero_one_hit_prob, one_one_pitch_probs,
one_one_hit_surrender_prob, one_one_hit_prob, two_zero_pitch_probs,
two_zero_hit_surrender_prob, two_zero_hit_prob, zero_two_pitch_probs,
zero_two_hit_surrender_prob, zero_two_hit_prob, one_two_pitch_probs,
one_two_hit_surrender_prob, one_two_hit_prob, two_one_pitch_probs,
two_one_hit_surrender_prob, two_one_hit_prob, three_zero_pitch_probs,
three_zero_hit_surrender_prob, three_zero_hit_prob, two_two_pitch_probs,
two_two_hit_surrender_prob, two_two_hit_prob, three_one_pitch_probs,
three_one_hit_surrender_prob, three_one_hit_prob, three_two_pitch_probs,
three_two_hit_surrender_prob, three_two_hit_prob, zero_zero_swing_prob,
one_zero_swing_prob, zero_one_swing_prob, one_one_swing_prob,
two_zero_swing_prob, zero_two_swing_prob, one_two_swing_prob,
two_one_swing_prob, three_zero_swing_prob, two_two_swing_prob,
three_one_swing_prob, three_two_swing_prob, swing_produces_out):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment