text
stringlengths
0
66.2k
In birth-death terms, the "birth" direction is increasing k, and "death" is decreasing k. So from state k,
death rate (probability to go to k-1): d_k = k/N,
birth rate (probability to go to k+1): b_k = (N -k)/N.
Then the expected time to absorption E_k satisfies:
E_k = 1 + d_k E_{k-1} + b_k E_{k+1}
With E_0 =0.
This is exactly the equation we had before.
According to the theory of birth-death processes, the expected time to absorption can be written as:
E_k = \sum_{i=1}^k \frac{1}{d_i} \prod_{j=1}^{i-1} \frac{b_j}{d_j}
Wait, let me check the formula.
Actually, according to some references, for a birth-death process with absorbing state at 0, the expected time to absorption starting from k is:
E_k = \sum_{i=1}^k \frac{1}{d_i} \prod_{j=1}^{i-1} \frac{b_j}{d_j}
Where d_i is the death rate (probability to go down from i) and b_j is the birth rate (probability to go up from j).
In our case, d_i = i/N, and b_j = (N - j)/N.
Therefore, plugging into the formula:
E_k = \sum_{i=1}^k \frac{1}{(i/N)} \prod_{j=1}^{i-1} \frac{(N - j)/N}{(j/N)}}
Simplify:
Each term:
First, 1/(i/N) = N/i
The product term:
prod_{j=1}^{i-1} [ (N -j)/j ]
Because ( (N-j)/N ) / ( j/N ) = (N-j)/j
Therefore, the product is product_{j=1}^{i-1} (N -j)/j
Therefore, the entire term is:
(N/i) * product_{j=1}^{i-1} (N -j)/j
Now, let's compute this product. Let's see:
product_{j=1}^{i-1} (N -j)/j = [ (N-1)(N-2)...(N - (i-1)) ] / [1*2*...*(i-1) ]
The numerator is (N-1)! / (N -i)! )
Denominator is (i-1)!
Therefore, the product is [ (N-1)! / (N -i)! ) ] / (i-1)! ) = (N-1)! / [ (N -i)! (i-1)! ) ]
Therefore, each term in the sum becomes:
(N/i) * [ (N-1)! / ( (N -i)! (i-1)! ) ) ]
= N/(i) * (N-1)! / [ (N -i)! (i-1)! ) ]
= N! / [ i (N -i)! (i-1)! ) ]
= N! / [ (i) (i-1)! (N -i)! ) ]
= N! / [ i! (N -i)! ) ]
= C(N, i)
Because C(N,i) = N! / [i! (N -i)! ]
Therefore, each term in the sum is C(N,i).
Therefore, the total expectation E_k is the sum from i=1 to k of C(N,i).
Wait, that's a key insight! So according to this formula, E_k = sum_{i=1}^k C(N, i)
Wait, let me confirm this step-by-step.
Starting with E_k = sum_{i=1}^k [ N/(i) * product_{j=1}^{i-1} (N -j)/j ]
Then, as above, product_{j=1}^{i-1} (N-j)/j = [ (N-1)(N-2)...(N -i +1) ] / ( (i-1)! )
Which is equal to (N-1)! / ( (N -i)! (i-1)! ))
Wait, let me see for i=2:
product_{j=1}^1 (N-j)/j = (N-1)/1
Which would be (N-1)! / ( (N-2)! 1! ) = (N-1)/1, which matches.
Similarly for i=3:
product_{j=1}^2 (N-j)/j = [(N-1)/1] * [(N-2)/2] = (N-1)(N-2)/(2)