text stringlengths 0 66.2k |
|---|
Assume that for N, E_{N-1}=2^N -1. Let's see if we can use induction. |
Suppose that for N, E_{N-1}=2^N -1. Now consider N+1. We need to compute E_{N} for N+1. |
Wait, but this might not be straightforward. Alternatively, perhaps there's a better way. |
Wait, let me think of the problem in terms of the number of frogs in the pool. Let me denote the number of frogs in the pool as X_t. We start at X_0 = N-1, and we want the first time T when X_T = N. |
Each step, X_{t+1} = X_t + 1 with probability (N - X_t)/N, |
and X_{t+1}= X_t -1 with probability X_t / N. |
This is a birth-death process with absorbing state at N. |
The expected time to reach N from N-1 is E_{N-1}. |
Now, let me consider the general formula for the expected time in such a process. |
I recall that for a birth-death process with transition probabilities p_k = (N -k)/N and q_k =k/N, |
the expected time to reach N from k is: |
E_k = \sum_{i=1}^k \frac{N}{N - i} + \sum_{j=k+1}^N \frac{N}{j} |
Wait, I might be misremembering, but let me see. |
Alternatively, the formula for the expected time to reach an absorbing state in a birth-death chain can be found by solving the recurrence relation. |
Let me consider the general case where we have states 0,1,...,N, with N absorbing. |
For each state k from 0 to N-1, |
E_k =1 + p_k E_{k+1} + q_k E_{k-1} |
With E_N =0. |
To solve this, let me consider writing the equations for E_k and E_{k-1} and find a telescoping sum. |
Let me rearrange the equation for E_k: |
E_k - p_k E_{k+1} - q_k E_{k-1} =1. |
Similarly, for E_{k-1}: |
E_{k-1} - p_{k-1} E_k - q_{k-1} E_{k-2} =1. |
But this might not help. |
Alternatively, let me consider the difference E_{k} - E_{k+1}. |
Let me denote D_k = E_k - E_{k+1} |
Then, from the equation for E_k: |
E_k =1 + p_k E_{k+1} + q_k E_{k-1} |
Similarly, for E_{k+1}: |
E_{k+1} =1 + p_{k+1} E_{k+2} + q_{k+1} E_k |
Hmm, not sure. |
Alternatively, let me try to express D_k in terms of D_{k-1}. |
From the equation for E_k: |
E_k =1 + p_k E_{k+1} + q_k E_{k-1} |
=> E_k - E_{k+1} =1 + p_k E_{k+1} + q_k E_{k-1} - E_{k+1} |
=1 + (p_k -1) E_{k+1} + q_k E_{k-1} |
But p_k = (N -k)/N, so p_k -1 = -k/N. |
Thus, |
D_k =1 - (k/N) E_{k+1} + (k/N) E_{k-1} |
Hmm, not helpful. |
Alternatively, let me consider the recurrence relation for E_k. |
Let me rearrange the equation: |
E_{k} - p_k E_{k+1} - q_k E_{k-1} =1. |
Let me write this as: |
-p_k E_{k+1} + E_k - q_k E_{k-1} =1. |
This is a linear recurrence relation. To solve such equations, perhaps we can find a particular solution and homogeneous solution. |
First, solve the homogeneous equation: |
-p_k E_{k+1} + E_k - q_k E_{k-1} =0. |
But the coefficients are variable (depend on k), so this complicates things. |
Alternatively, let me consider the case where the transition probabilities are symmetric, but in our case they aren't. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.