• Emily Zhang
  • Fiddler

Can You Hack Gymnastics?

2024 Aug 92024 August 9 Problem Back

This Week's Fiddler

Say gymnast A has difficulty score 6 and gymnast B has difficulty score 5. Let their execution scores be aaa and bbb, respectively. Then A wins both scoring methods if a>56ba>\frac{5}{6}ba>65​b and a>b−1a>b-1a>b−1, and B wins with both scoring methods if b>65ab>\frac{6}{5}ab>56​a and b>a+1b>a+1b>a+1.

For A's victory, multiplicative scoring is a stronger requirement up until b=6b=6b=6, where additive scoring becomes a stronger requirement. So we can set up the following integral to represent the probability of a decisive result for A, where the additive and multiplicative scoring methods agree:

1100(∫06(10−56b) db+∫610(11−b) db)\frac{1}{100}\biggl( \int_0^6(10-\frac{5}{6}b)\ db + \int_6^{10}(11-b)\ db \biggl)1001​(∫06​(10−65​b) db+∫610​(11−b) db)

For B's victory, additive is stronger up until a=5a=5a=5, where multiplicative scoring becomes a stronger requirement. Note though that a<10⋅56=253a\lt10\cdot\frac{5}{6}=\frac{25}{3}a<10⋅65​=325​ because bbb can no longer fit the multiplicative requirement beyond that. So the following integral is made for B:

1100(∫05(9−a) da+∫5253(10−65a) da)\frac{1}{100}\biggl( \int_0^5(9-a)\ da + \int_5^{\frac{25}{3}}(10-\frac{6}{5}a)\ da \biggl)1001​(∫05​(9−a) da+∫5325​​(10−56​a) da)

And their sum is the final probability, which is 577600\frac{577}{600}600577​, or about 96.17%.

Answer: 577/600


Extra Credit

Monte-Carlo simulation:

import random

random.seed(12)
T = 10**7

success = 0
for t in range(T):
    a, b = 10 * random.random(), 10 * random.random()
    alpha, beta = 10 * random.random(), 10 * random.random()
    if (alpha + a > beta + b) == (alpha * a > beta * b):
        success += 1

print(success / T)

Output:

0.9166818

Though I suspect an exact integral could work here too 🤔

Answer: 91.7%

Back to Fiddler list
© 2024 Emily Bradon Zhang·Support Gaza Recovery