Processing math: 82%

Sunday, January 24, 2021

Skillful Skiing

You and your skiing opponent will complete two runs down the mountain, and the times of your runs will be added together. You and your opponent have the same, identical, independent normal probability distribution of finishing times for each run.

Given that you are ahead after the first run, what’s the probability that you will still be ahead after the second run and earn your gold medal?

Let your two random run completion times be denoted by X1 and X2, and your opponent's Y1 and Y2. Let Z1 and Z2 denote the difference between your run time and your opponent's. Then regardless of the initial mean and standard deviation of X1, X2, Y1, and Y2, Z1 and Z2 will be identical, independent normal variables with mean zero and some irrelevant but identical variance. Without loss of generality, we may in fact assume that the Z1 and Z2 are unit normals (with variance 1).

Then the answer to the original question is given by P{Z1+Z20Z10}=P{Z1+Z20,Z10}P{Z10}. Geometrically, the set {Z1+Z20,Z10} can be written in polar coordinates as {(ρ,ϑ):π4ϑπ2}, whereas the set {Z10} is given by {(ρ,ϑ):π2ϑπ2}. So by transforming to polar coordinates, we get the straightforward P{Z1+Z20,Z10}=0ρeρ2/2dρπ/2π/4dϑ2π=3π42π=38 and P{Z1+Z20,Z10}=0ρeρ2/2dρπ/2π/2dϑ2π=π2π=12.

Put altogether, you get a conditional win probability after the first run as P{Z1+Z20Z10}=3/81/2=34. Of course, all of this argumentation leaves open not just superliminal but also time-traveling ski runs, so all in all it would be must-see but also potentially not-able-to-be-seen TV!

Sunday, January 17, 2021

Mystery Number Hunt

Find the eight three digit numbers that fill in the grid below such that the product of the digits in the rows and columns equal the numbers in the rightmost column and last row.

2942161359811284245408,890,560156,80055,566

First, we break down each of the entries in the rightmost column and bottom row in terms of prime decompositions, noting that each has no prime factor larger than 7. That is, 294=2372,216=2333,135=335,98=272,112=247,84=2237,245=572,40=235,8,890,560=2634573,156,800=275272,55,566=23473

The third row must have a 5 in the second column, since the second column must have no multiples of 3 in it. Similarly, since 294 can only be expressed as the product of three digits as 6x7x7, not necessarily in that order, the first row must have a 7 in the second column. Also, the second column of the second row can only be a 4 or an 8, since it cannot have a multiple of 3 in it. Additionally, there must be a 7 in the third column of the seventh row as the only other option is 5 and the third column must have no multiples of 5 in it.

In the third column there can be only one multiple of 2 and no more than two additional copies of 7. The possible places for a seven in the third column are in the first, fourth, fifth and sixth rows, while a 2 could be in the fourth, fifth, sixth and eighth rows and a 6 could occur in the first, second and sixth rows. If a 2 or 6 occurs in the second, sixth or eighth rows, then the first, fourth and fifth rows must each have a 7, which is too many. So in particular, we see that there must be a 1 in the third column of the eighth row, leaving the other digits in the eighth row to ba a 5 and an 8. Further, since there cannot be a multiple of 2 in the third column of the second row, the third column must be either a 3 or a 9, which leaves the first column of the second row to either be a 3, 6 or 9.

Similarly, if a 7 is in the third column of the sixth row, then only one additional row of the first, fourth and fifth may have a 7, which leaves at least two multiples of 2, which is too many. Therefore, the third column of the sixth row must be 3, which leaves the remaining digits of the sixth row to be a 4 and a 7. This leaves us with the following grid of possibilities:

{6,7}7{6,7}294{3,6,9}{4,8}{3,9}216{3,9}5{3,9}135{2,7}{2,7}{2,7}98{2,4,7,8}{2,4,7,8}{2,7}112{4,7}{4,7}384{5,7}{5,7}7245{5,8}{5,8}1408,890,560156,80055,566

At this point, I sort of decided that the number of brute force combinations was roughly small enough. Playing around with the possibilities for a while by hand, yielded the solution:

7762949832169531357279882711274384577245851408,890,560156,80055,566

Smart Cats Have 25 Fifes, .... in Expectation

You’re a contestant on the hit new game show, “You Bet Your Fife.” On the show, a random real number (i.e., decimals are allowed) is chosen between 0 and 100. Your job is to guess a value that is less than this randomly chosen number. Your reward for winning is a novelty fife that is valued precisely at your guess.

What number should you guess to maximize the average value of your fifing winnings?

If you guess x[0,100], then the payoff function in terms of x and the randomly selected YU(0,100) is v(x|Y)={x,if Y>x;0,if Yx. So in expectation, we have V(x)=EY[v(x|Y)]=xP[Y>x]+0P[Yx]=x(1x100).

Since V(x) is continuously differentiable and concave, it is maximized exactly at ˆx which solves V(ˆx)=1ˆx50=0. That is, the optimal solution is to choose ˆx=50, at which point V(ˆx)=50(150100)=25.

Sunday, January 10, 2021

Marian's Olde Archer-e Game

Marian proposes two similar archery-based games for her true love, Dame Robin of Foxely, who has the peculiar ability to uniformly distribute the landing spot of her arrows along a circular target. Dame Robin will score a point in the archery game for each arrow shot, but must stop once one lands ``further away'' from the center of the target. In the main version of the game, the distance from the center is measured using Euclidean distance, whereas in the variant the circular target is discretized into 10 equally-spaced concentric bands and Dame Robin must cease volleying arrows once an arrow lands in the same or a wider band.

On average, what score can Dame Robin expect to achieve in this archery game?

Let's first tackle the main version of the game and then see how the discretized version compares. Let S be Dame Foxely's score, which is synonymous with the total number of arrows shot. Since Marian's game seems to completely ignore the bearing of the arrows, focusing only on the relative distance of successive arrows from the center of the target, we will focus on the radial distribution of Dame Foxely's arrows.

For the main version of the game, we will try to calculate the probability that S=k, that is, the probability that k is the last arrow shot. In particular, assume that the distances from the center of the target for Dame Foxely's k arrows are r1,,rk. The event {S=k} is equal to the event {r1>r2>>rk1,rkrk1}. There are several ways to conclude that P[S=k]=(k1)k!, and we will highlight two:

1. Direct calculus approach:

Given that Dame Foxely arrows fall uniformly over the circular target, the radial distribution is fr(ρ)=2ρ, for ρ[0,1] and 0 elsewhere. So P[S=k]=P[r1>r2>>rk1,rkrk1]=10r10r20rk201rk12kr1r2rkdrkdrk1dr2dr1.

The iterated integral lends itself to a recursive solution. Define the sequense of polynomials pi(t)=ai(t2)i1bi(t2)i with recursion relation pi+1(t)=t02spi(s)ds and initial value p1(t)=1t2, that is a1=b1=1. Since the innermost integral in the formula for the probability is given by p1(rk1)=1rk12rkdrk=1r2k1, by taking the repeated integrals, we see that P[S=k]=pk(1).

We need to find ak and bk by translating the polynomial recursion relation into the relation for the ai and bi sequences. Since pi+1(t)=t02spi(s)ds=t02s(ai(s2)i1bi(s2)i)ds=aii(t2)ibii+1(t2)i+1, we have the recurrence relations ai+1=aiiandbi+1=bii+1. Given that a1=b1=1, we see that pk(t)=1(k1)!(t2)k11k!t2k, so as desired P[S=k]=pk(1)=1(k1)!1k!=k1k!.

2. Combinatorial approach:

An integral-free combinatorial approach can be used as well (once we use exclude the measure zero event of two arrows having the same exact distance to the origin). There are k! possible orderings of k values r1,,rk[0,1]. Since these values are distinct there is exactly one ordering in decreasing order 1r1>r2>r3>>rk1>rk. If instead there we want rkrk1, there are k1 possible places to insert rk. So there are k1 possible orders where r1>r2>>rk1 and rkrk1. The probability is thus the number of desired orderings over the total possible number of orderings, that is P[S=k]=(k1)/k!.

Having established that P[S=k]=(k1)k!, the expected score is simply calculated as E[S]=k=2(k1)k!k=k=21(k2)!=e2.718281828....

Discretized variant

Now that Marian's main game is handled, let's investigate here Firstly, it is clear that discretized version is a lower bound approximation of the main game, as there are clearly shots that might allow Dame Robin to continue shooting in the main game but would land in the same concentric circle thus ending her run in the variant. Further, if we allow the number of concentric bands N to vary and E[SN] is the expected score with N discrete bands, then E[SN]E[S]=e, as N.

Fix some N>1 as the number of discrete bands on the target. Let Bk be the kth band (out of N bands), which encompasses the entire area between the (k1)th and kth concentric circle. Then the probability of an arrow landing in the kth band is pk=P[ABk]=k2(k1)2N2=2k1N2.

For any i=1,,k, let ei=E[SNA1Bi] be the conditional expectation of the score given that the first arrow landed in the ith band. For i=1, since no matter what the 2nd arrow will land in band Bi2 where i21, we have e1=E[SNA1B1]=2.

Assume that instead for some i>1, we have A1Bi. There are then i distinct possible outcomes for where arrow 2 lands: A2Bk for k=1,,i1 or A2Nk=iBk. The last case results in a score of 2, while for each of the former cases, the conditional expectation is E[SNA2Bk]. So from the law of total probability, we get ei=2Nk=ipk+i1k=1pkE[SNA2Bk]. The only difference between the game play conditional on {A1Bk} for some k=1,,i1 and the game play condition on {A2Bk} is that the score will be incremented by 1 for the latter scenario. That is, E[SNA2Bk]=1+E[SNA1Bk]=1+ek, so we have ei=2Nk=ipk+i1k=1pk(1+ek)=2(1i1k=1pk)+i1k=1pk(1+ek)=2+i1k=1pk(ek1). Since this formula holds for all i>1, if i>2, then we have ei=2+i1k=1pk(ek1)=(2+i2k=1pk(ek1))+pi1(ei11)=ei1+pi1(ei11)=(1+pi1)ei1pi1.

Note that e2=2+p1=1+(1+p1). Assume that ei=1+i1k=1(1+pk) for some i>1. Then by applying the above formula we get that ei+1=(1+pi)eipi=(1+pi)(1+i1k=1(1+pk))pi=1+ik=1(1+pi), so by induction we have e1=2 and ei=1+i1k=1(1+pk), for all i=2,,N.

From here, we get E[SN]=Nk=1pkek=2p1+Nk=2pk(1+k1j=1(1+pj))=Nk=1pk+p1+Nk=2pkk1j=1(1+pj)=1+p1+Nk=2pkk1j=1(1+pj)=(1+p1)(1+p2+Nk=3pkk1j=2(1+pj))=(1+p1)(1+p2)(1+p3+Nk=4pkk1j=3(1+pj))==(1+p1)(1+p2)(1+pN2)(1+pN1+pN(1+pN1))=Nk=1(1+2k1N2). Note that for N=10, we get E[S10]=10k=1(1+2k1100)2.150024.... For any N, we have E[SN]=Nk=1(1+2k1N2)exp(Nk=12k1N2)=exp(1)=e, since ln(1+x)x. Furthermore, since x12x2ln(1+x), we additionally have E[SN]exp(Nk=12k1N212Nk=1(2k1N2)2)=exp(112N4N(2N1)(2N+1)3)=exp(123N+16N3). From the squeeze theorem, then we see what we expected that as N, the discretized game approaches the continuous limit lim

Saturday, January 9, 2021

Can't cut squares from here (in the thickest Mainer accent imaginable)

Consider a generic square. It can be subdivided into smaller sub-squares, not necessarily of equal size so that the smaller squares do not overlap. For example, you can slice the big square into four smaller squares, each a quarter of the area of the big square. Or you could slice it into seven squares, if you take one of those four squares and slice it into four yet smaller squares.

What whole numbers of squares can you not slice the big square into?

Let S be the set of whole numbers n \in \mathbb{N}, where the original big square can be partitioned into n not necessarily equally sized smaller squares. The problem setup provides a hint that shows that for any n \in S, by taking any single smaller square and dividing it equally into 4 even smaller squares, we end up with n + 3 subsquares, so n \in S \Rightarrow n+3 \in S. So in particular, since 1 \in S (just the original square with no further cuts), we have (3\mathbb{N} + 1) \subset S.

However, we needn't focus solely on subdividing into 4 equally sized sub-squares. For instance for any k \in \mathbb{N} we can subdivide into k^2 equally sized sub-squares by equally dividing the length and width of the original square into k segments and forming a k by k grid of subsquares. In this case, for any n \in S, we can take any sub-square and replace it with k^2 smaller sub-squares, getting n + k^2 - 1 total sub=squares. In particular, for k = 3, we get (8 \mathbb{N} + 1) \subset S, which implies that for instance 9 \in S and 17 \in S.

Since 9 \equiv 0 \mod 3, by further subdividing squares into equal quarter squares, we get that any multiple of 3 greater than or equal to 9 is included in S. That is, (3 \mathbb{N} \setminus \{0,3,6\} ) \subset S. Similarly, since 17 \equiv 2 \mod 3, we get that ((3 \mathbb{N} + 2) \setminus \{2, 5, 8, 11, 14\}) \subset S. So since all remainders with respect to 3 are covered for large enough values, we see that \begin{align*}S &= (3 \mathbb{N} + 1) \cup (3 \mathbb{N} \setminus \{0, 3, 6\}) \cup ((3 \mathbb{N} + 2) \setminus \{2, 5, 8, 11, 14\})\\ &= \mathbb{N} \setminus \{2, 3, 5, 6, 8, 11, 14\}.\end{align*}

Thus the complement of S is given by S^C = \{2, 3, 5, 6, 8, 11, 14\}.