At the beginning, 4 frogs sit in the vertices of the tetrahedron, one at each vertex - and then every second they start randomly jumping to adjacent vertices.
Find the average time until the moment when they all gather at one vertex.
Find the average time until the moment when all the frogs are at different vertices of the tetrahedron (there are no two frogs in one vertex)
Find the average time until the moment when all frogs return to their starting positions.
We can use Absorbing Markov chain.
We can use Monte Carlo approach.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
Here's a way to find the expected time until they meet at a single vertex.
Let the vertices of the tetrahedron be labelled P0,P1,P2,P3. We can classify a state by the number of frogs on each vertex; for instance (1,1,0,2).
The expected time until all the frogs meet only depends on the current state (this is why a Markov chain method also works). Say the expected time is T, a function of the current state.
Symmetry reduces the number of states we need to consider. Since T(2,0,0,0)=T(0,2,0,0)=T(0,0,2,0)=T(0,0,0,2), we only need to find the value of T(2,0,0,0), and so on.
So the starting states we're interested in are (1,1,1,1),(2,1,1,0),(2,2,0,0),(3,1,0,0).
At any given step, each frog has three choices of where to jump; so there are a total of 34=81 distinct new configurations after the jump. These can then be classified per the list of states above. Once we reach the (ordered) state (4,0,0,0), they're all at the same vertex and we stop.
Working out the transitions by hand is pretty tedious, so I wrote some simple code to help. As an example, from the state (3,1,0,0), it's possible to reach the state (1,1,1,1) in a total of six ways (the three frogs on the same vertex jump to each of the three other vertices; the remaining frog jumps to the vertex the three started on).
Similarly, we can reach the state (2,1,1,0) in 42 ways; (2,2,0,0) in 12 ways; (3,1,0,0) in 19 ways and (4,0,0,0) in 2 ways. Putting all this together, we get T(3,1,0,0)=1+811(6T(1,1,1,1)+42T(2,1,1,0)+12T(2,2,0,0)+19T(3,1,0,0))
Repeating this for each starting state (and multiplying both sides by 81 for neatness), we get 81T(1,1,1,1)81T(2,1,1,0)81T(2,2,0,0)81T(3,1,0,0)=81+9T(1,1,1,1)+48T(2,1,1,0)+12T(2,2,0,0)+12T(3,1,0,0)=81+8T(1,1,1,1)+47T(2,1,1,0)+11T(2,2,0,0)+14T(3,1,0,0)=81+8T(1,1,1,1)+44T(2,1,1,0)+11T(2,2,0,0)+16T(3,1,0,0)=81+6T(1,1,1,1)+42T(2,1,1,0)+12T(2,2,0,0)+19T(3,1,0,0)
We're after T(1,1,1,1), ie the expected time it takes for the frogs to meet after starting from one frog on each vertex. We can solve the system of equations to get T(1,1,1,1)=704671
This comes out at around 66.7, which is much quicker than I expected. I've written a Monte-Carlo simulation too and this value seems to agree with that. As you might expect, there isn't much difference between the times for each of the starting states; intuitively this is because the frogs shuffle themselves very quickly.
Log in to reply
Beautiful. As simple as that. The same result give Absorbing Markov chain.
Markov chain with absorbing states
Here Python code for calculation probabilities.
Let us take the @Chris Lewis ideas further. There are effectively five states:
and these states are subject to the transition probability matrix P=811⎝⎜⎜⎜⎜⎛3221024191614121812111112364244474806889⎠⎟⎟⎟⎟⎞
Also consider the submatrix Q=811⎝⎜⎜⎛1916141212111112424447486889⎠⎟⎟⎞ obtained by deleting the first row and the first column of P.
Question 1 If Ej is the expected number of jumps to reach State 1, given that we start in State j, then standard conditional probability thinking tells us that ⎝⎜⎜⎛E2E3E4E5⎠⎟⎟⎞=⎝⎜⎜⎛1111⎠⎟⎟⎞+Q⎝⎜⎜⎛E2E3E4E5⎠⎟⎟⎞ Solving this matrix equation gives ⎝⎜⎜⎛E2E3E4E5⎠⎟⎟⎞=(I4−Q)−1⎝⎜⎜⎛1111⎠⎟⎟⎞=⎝⎜⎜⎜⎜⎛1409099352277281847704671⎠⎟⎟⎟⎟⎞ and the desired answer is E5=704671
Question 2 The Markov chain has an invariant distribution π, such that πP=π and the coefficients in π add to 1. We calculate that π=(641163649169323) and standard Markov chain theory tells us that the expected return time to State j is πj−1. We want π5−1=332.
Question 3 Each frog can be seen as following a two-state Markov chain (Home vertex or Away vertex), with transition matrix (031132) If pj is the probability that a frog is at its Home vertex after j jumps, then pj=31(1−pj−1), and hence pj=41(1+3(−31)j)j≥0 Thus pj4 is the probability that all four frogs are at their Home vertices after j jumps, and we can calculate the generating function P(t)=j=0∑∞pj4tj=(81−t)(9−t)(1−t)(3+t)(27+t)59049−44469t−15741t2+1425t3+16t4 If fj is the probability that the four frogs are back at their Home vertices for the first time after j steps, and if F(t)=j=0∑∞fjtj is the generating function of the fj, standard Markov chain theory tells us that P(t)=1+F(t)P(t) and hence F(t)=1−P(t)1 Thus F′(t)=P(t)2P′(t) While P(t) has a singularity at t=1, F′(t) does not, and the expected first return time for all four frogs to be back on their Home vertices is F′(1)=t→1limP(t)2P′(t)=256
Log in to reply
Thanks for attention. It is new approach for me - generating functions. Very interesting.
Isn't the answer to the second question t=0, since the frogs are already at different vertices to start off?
Log in to reply
We are interested in the first nontrivial return time... In other words, how long does it take the frogs to get back to the original position of all being on different vertices, once they have left that position?
Log in to reply
Good point.
What in min value of |z1|^2+|z2|^2+re(z1z2) given that im(z1z2)=0