5 min read

Will Riddler Nation Win Gold In Archery?

Table of Contents

Riddler Express

Riddler Nation is competing against Conundrum Country at an Olympic archery event. Each team fires three arrows toward a circular target 7070 meters away. Hitting the bull’s-eye earns a team 1010 points, while regions successively farther away from the bull’s-eye are worth fewer and fewer points.

Whichever team has more points after three rounds wins. However, if the teams are tied after each team has taken three shots, both sides will fire another three arrows. (If they remain tied, they will continue firing three arrows each until the tie is broken.)

For every shot, each archer of Riddler Nation has a one-third chance of hitting the bull’s-eye (i.e., earning 1010 points), a one-third chance of earning 99 points and a one-third chance of earning 55 points.

Meanwhile, each archer of Conundrum Country earns 88 points with every arrow.

Which team is favored to win?

Extra credit: What is the probability that the team you identified as the favorite will win?

Solution

Let pwp_w be the probability of Riddler Nation winning. Riddler Nation either wins the first time with a probability of pwfp_{wf} or Riddler Nation draws with a probability of pdp_d and then wins with a probability pwp_w. Therefore we have,

pw=pwf+pdpw    pw=pwf1pd\begin{aligned} p_w &= p_{wf} + p_d \cdot p_w \\\\ \implies p_w &= \frac{p_{wf}}{1 - p_d} \end{aligned}

Calculating probabilities

There are a couple of ways by which pwfp_{wf} and pdp_d can be calculated.

One approach is to use brute-force enumeration of all the 333^3 33-tuples of the points earned in each of the 33 shots and count the number of tuples whose sum is greater or equal to 2424. The Python code for counting the tuples is given below:

from itertools import product
sum([1 for p in product(*[[10,9,5]]*3) if sum(p) > 24])

The other approach is to use generating functions\textbf{generating functions} i.e the coefficient of x24x^{24} in (x10+x9+x5)3(x^{10} + x^9 + x^5)^3 gives the count of the number of cases where the sum of the scores of the three shots is 2424.

Computational Solution

From the simulation below, we see that the Riddler Nation\textbf{Riddler Nation} is favoured to win and the probability of win is 0.524\approx \textbf{0.524}.

from random import random

def shot_pts_riddler():
    p = random()
    if p < 0.33333333: 
        return 10
    elif p > 0.33333333 and p < 0.66666666:
        return 9
    else:
        return 5

def shot_pts_conundrum():
    return 8

def prob_win_riddler(runs=1000000):
    total_wins = 0
    for _ in range(runs):
        pts_riddler, pts_conundrum  = 0, 0
        while pts_riddler == pts_conundrum:
            pts_riddler = sum([shot_pts_riddler() for _ in range(3)])
            pts_conundrum = sum([shot_pts_conundrum() for _ in range(3)])
        if pts_riddler > pts_conundrum:
                total_wins += 1
    return total_wins/runs

print(prob_win_riddler())

Riddler Classic

Suppose you have a chain with infinitely many flat (i.e., one-dimensional) links. The first link has length 11, and the length of each successive link is a fraction ff of the previous link’s length. As you might expect, ff is less than 11. You place the chain flat on a table and some ink at the very end of the chain (i.e., the end with the infinitesimal links).

Initially, the chain forms a straight line segment, and the longest link is fixed in place. From there, the links are constrained to move in a very specific way: The angle between each chain and the next, smaller link is always the same throughout the chain. For example, if the NthNth link and the N+1stN+1st link form a 4040 degree clockwise angle, then so do the N+1stN+1st link and the N+2ndN+2nd link.

After you move the chain around as much as you can, what shape is drawn by the ink that was at the tail end of the chain?

Solution

The lengths of the links in the chain for a geometric progression 1,f,f2,1, f, f^2,\dots.

Using the properties of complex numbers\textbf{complex numbers}, the position pip_i for i2i \geq 2 of the end point of each link in the chain can be represented as a complex function of θ\theta (the angle between each chain link measured anticlockwise). We have,

p1=1p2(θ)=1+feiθpn(θ)=1+feiθ++fn1e(n1)iθ=k=0n1fkeikθp(θ)=11feiθ=11fcosθifsinθ\begin{aligned} p_1 &= 1 \\\\ p_2(\theta) &= 1 + fe^{i\theta} \\\\ \vdots\\\\ p_n(\theta) &= 1 + fe^{i \theta} + \dots + f^{n-1}e^{(n-1)i\theta} = \sum_{k=0}^{n-1} f^k e^{i k \theta}\\\\ p_{\infty}(\theta) &= \frac{1}{1 - fe^{i\theta}} = \frac{1}{1-f\cos\theta - if\sin\theta} \end{aligned}

If xx and yy are the coordinates of the end point of the last link in the chain, we have

x=1fcosθ1+f22fcosθy=fsinθ1+f22fcosθ\begin{aligned} x = \frac{1 - f\cos\theta}{1+ f^2 - 2f\cos\theta} \\\\ y = \frac{f\sin\theta}{1+ f^2 - 2f\cos\theta} \end{aligned}

Eliminating θ\theta from the above using brute force, we get

(x11f2)2+y2=(f1f2)2\left(x - \frac{1}{1-f^2}\right)^2 + y^2 = \left(\frac{f}{1-f^2} \right)^2

which is the equation of a circle centered at (11f2,0)\left(\frac{1}{1-f^2},0\right) and radius f1f2\frac{f}{1 - f^2}.

Using Möbius transformation

The mapping 11feiθ\frac{1}{1 - fe^{i\theta}} is a Möbius Transformation of eiθe^{i\theta} a complex number on the unit circle centered at the origin.

Here are a couple of fundamental results related to Möbius Transformations that we will use:

  • Möbius transformations map circles to circles
  • If two points symmetric with respect to a circle, then their images under a Möbius transformation are symmetric to the image circle. This is called the “Symmetry Principle”.

Two end points of a diameter (1,0)(-1,0) and (0,1)(0,1) of the unit circle get mapped to the two end points 11+f\frac{1}{1+f} and 11f\frac{1}{1-f} of a diameter of the mapped circle by the symmetry principle. Therefore the centre of the mapped circle is at

12(11f+11+f)=11f2\frac{1}{2}\left(\frac{1}{1-f} + \frac{1}{1+f}\right) = \frac{1}{1-f^2}

The radius of the circle is given by

12(11f11+f)=f1f2\frac{1}{2} \bigg \lvert \left(\frac{1}{1-f} - \frac{1}{1+f}\right)\bigg \rvert = \frac{f}{1-f^2}