text stringlengths 0 66.2k |
|---|
Which is (N-1)! / ( (N-3)! 2! ), since (N-1)! / ( (N-3)! ) = (N-1)(N-2), divided by 2!. |
Yes, so generalizing, product_{j=1}^{i-1} (N-j)/j = (N-1)! / [ (N -i)! (i-1)! ) ] |
Therefore, the term becomes N/(i) multiplied by that: |
N/(i) * (N-1)! / [ (N -i)! (i-1)! ) ] |
= N! / [ i * (N -i)! (i-1)! ) ] |
= N! / [ i! (N -i)! ) ] |
= C(N,i) |
Therefore, each term in the sum is indeed the combination C(N,i). Therefore, the expectation is E_k = sum_{i=1}^k C(N, i) |
Wait, that's a huge simplification! Therefore, for our problem, starting at k=1, the expected time is E_1 = C(N,1) = N. But that contradicts our earlier examples where for N=2, it was 3, not 2. Wait, this must be a mistake. |
Wait, hold on. Wait in the formula, the sum is from i=1 to k. For k=1, that would be just the first term C(N,1) = N. But in our N=2 case, we had E_1=3, but according to this it would be 2. Which is a discrepancy. So I must have made an error in the derivation. |
Wait let me check the formula again. |
The formula from the theory says: |
E_k = sum_{i=1}^k [1/d_i * product_{j=1}^{i-1} (b_j/d_j) ] |
In our case, d_i = i/N, b_j = (N-j)/N. |
So 1/d_i = N/i, |
and (b_j/d_j) = [ (N-j)/N ] / [j/N ] = (N-j)/j. |
Thus, the product from j=1 to i-1 of (N-j)/j, |
so the term is (N/i) * product_{j=1}^{i-1} (N-j)/j. |
But when we computed this product, we had: |
product_{j=1}^{i-1} (N-j)/j = [ (N-1)(N-2)...(N -i +1) ] / [1*2*...*(i-1) ] |
Which is equal to (N-1)! / [ (N -i)! (i-1)! ) ] |
Wait, let's plug in N=2 and i=1: |
For i=1, the product from j=1 to 0, which is an empty product =1. |
Thus term is (N/1)*1 = N/1 = N. So E_1 = N, but in our example with N=2, E_1 was 3. Therefore, this formula must be wrong, or I applied it incorrectly. |
Alternatively, perhaps the formula is for continuous time, but we are dealing with discrete time? |
Wait, perhaps the formula is for the expected time in continuous time, where the rates are d_i and b_i, but in our case, it's discrete time, so the formula might not apply directly. |
Alternatively, perhaps there's a miscalculation here. |
Wait let me recast the problem in terms of continuous time to see if the formula applies. |
Suppose in continuous time, the transition rates are such that from state k, the rate to go to k-1 is d_k =k, and to go to k+1 is b_k= (N -k). Then the expected time would be as per the formula. However, in our problem, it's discrete time with probabilities instead of rates. |
Alternatively, perhaps there is a scaling factor between continuous and discrete time. |
Alternatively, maybe the formula is correct but I misapplied it. Let me check for N=2: |
According to the formula, E_1 = sum_{i=1}^1 C(2,1)=2. But our manual calculation gave 3. So discrepancy. So clearly, something is wrong. |
Wait, maybe the formula is for the expected time until absorption starting from k, but in continuous time, and in discrete time it's different. |
Alternatively, perhaps the formula is correct but the way I mapped the parameters is wrong. |
Wait let me check the source of the formula. |
According to some references, in 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} |
But in our case, in each step, the transition is happening with probability 1, so it's like each "time step" corresponds to a transition. Therefore, the discrete time process can be considered as a continuous time process with exponentially distributed waiting times, but in our case, the waiting time is always 1. There... |
Alternatively, perhaps in the continuous time version, the rates are such that the total rate from state k is d_k + b_k =k/N + (N -k)/N =1, so the total rate is 1, meaning that the expected time between transitions is 1. Therefore, the discrete time model with transition happening every step corresponds to the continuo... |
Therefore, the formula should apply. But in our N=2 case, it gives 2 instead of 3. So where is the mistake? |
Wait let me recast the N=2 case using the formula: |
E_1 = sum_{i=1}^1 [ (N/i) * product_{j=1}^{i-1} (N-j)/j ] |
For N=2 and i=1: |
product from j=1 to 0 is 1, |
so term is (2/1)*1 =2. So formula gives E_1=2, but manual calculation gave 3. Therefore, discrepancy. |
Hmm, so either the formula is incorrect, or I made a mistake in manual calculation. |
Wait let me recheck the manual calculation for N=2. |
For N=2: |
E_0 =0, |
E_1 =1 + (1/2) E_0 + (1/2) E_2 =1 + (1/2)(0) + (1/2) E_2 => E_1 =1 + (1/2) E_2, |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.