What is the probability that eventually it will rain forever?
- Probability of raining today is 60%.
- If it rains today, the probability of raining tomorrow will increase by 10%.
- If it doesn't rain today, the probability raining tomorrow will decrease by 10%.
Rule 2 and 3 can be applied to future days.
What is the probability that eventually, it will rain forever?
(I tried using binomial option pricing model but couldn't solve it because the probability isn't fixed. I saw this question in Chinese as an interview question for a quant position. I couldn't find an answer online. So please help me smart people!)
Interesting problem! These are simply the partial sums of rows of Pascal's triangle. So in this case, the answer is just the sum of the first six elements of the $n = 9$ row (divided by $2^9 = 512$):
$$ p_6 = \frac{1+9+36+84+126+126}{2^9} = \frac{382}{512} = \frac{191}{256} $$
Here's how this comes about: There are only two possible final states: certain drought, and certain rain. For any $k, 0 \leq k \leq 10$, let $p_k$ be the probability that the final state will be certain rain, given that the initial probability of rain is $\frac{k}{10}$. (Here, initial only means "current" since the process is homogeneous in time.)
Then, there is a simple set of linear equations relating the $p_k$. Suppose $k = 1$ initially. That is, the current rain probability is $\frac{1}{10}$. Then with probability $\frac{1}{10}$, the next rain probability will be $\frac{2}{10}$, and with probability $\frac{9}{10}$, the next rain probability will be $0$ (and the final state is certain drought). We can represent this as follows:
$$ p_1 = \frac{1}{10} p_2 + \frac{9}{10} p_0 $$
where $p_0 = 0$, naturally.
Now, let us suppose that $k = 2$ initially. Then with probability $\frac{2}{10}$, the next rain probability will be $\frac{3}{10}$, and with probability $\frac{8}{10}$, the next rain probability will be $\frac{1}{10}$. We can represent this as follows:
$$ p_2 = \frac{2}{10} p_3 + \frac{8}{10} p_1 $$
Proceeding along these lines, we can write equations of the form
$$ p_k = \frac{k}{10} p_{k+1} + \frac{10-k}{10} p_{k-1} \qquad 1 \leq k \leq 9 $$
with boundary conditions $p_0 = 0, p_{10} = 1$.
Now, interestingly, because for any $k$ the coefficients of $p_{k-1}$ and $p_{k+1}$ sum to $1$, we can view each of the $p_k$ as a weighted mean of $p_{k-1}$ and $p_{k+1}$. That is to say,
- $p_0 = 0$
- $p_1$ is $\frac{1}{10}$ of the way from $p_0$ to $p_2$
- $p_2$ is $\frac{2}{10}$ of the way from $p_1$ to $p_3$
- $p_3$ is $\frac{3}{10}$ of the way from $p_2$ to $p_4$
and so on. This permits us to find $p_2$ in terms of $p_1$, $p_3$ in terms of $p_2$, etc. In particular, if we let $p_1 = q$, where $q$ is some quantity currently unknown, then
$$ p_2-p_1 = \frac{9}{1} (p_1-p_0) = \frac{9}{1}q $$ $$ p_3-p_2 = \frac{8}{2} (p_2-p_1) = \frac{9 \times 8}{2 \times 1}q $$ $$ p_4-p_3 = \frac{7}{3} (p_3-p_2) = \frac{9 \times 8 \times 7}{3 \times 2 \times 1} q $$
and for any $k$,
$$ p_{k+1}-p_k = \binom{9}{k} q $$
And since
$$ \sum_{k=0}^9 p_{k+1}-p_k = p_{10}-p_0 = 1 $$
it must therefore be the case that $q = \frac{1}{2^9}$, and
$$ p_k = \frac{1}{2^9} \sum_{i=0}^{k-1} \binom{9}{i} $$
So your intuition that the binomial coefficients were involved was not far off; it's just that they represent not the actual probabilities themselves, but their first differences. An obvious generalization of this yields a similar expression when the probability of rain is $\frac{k}{n}$, with increments of size $\frac{1}{n}$:
$$ p_k = \frac{1}{2^{n-1}} \sum_{i=0}^{k-1} \binom{n-1}{i} $$
Alas, this question suggests that no further simplification is likely for general $k$ and $n$. (Obviously, closed forms for some special cases may be obtained.)
ETA: The relatively simple form of the answer makes me wonder if there is a cleverer answer that relies on some analogy between selecting no more than $k$ of $n$ objects and the probability of certain rain starting with a rain probability of $\frac{k}{n}$. But I confess nothing quickly comes to mind.
[nvm, wrong answer. There should be only 2 states.]
I just came up with a way to solve it. Correct me if I'm wrong.
I'll denote rain days as R, and no rain days as N,
There are three possible results: eternal R, eternal N, alternating between R&N.
-
By drawing a binary tree, I observed that to reach eternal R, we need 4 days of R + n days of R + n days of N, meaning 4R+n(N+R). (n can be any non-negative integer and can be infinitely large.)
The change in probability caused by 1N and 1R cancel each other (+10%-10% = 0).
For that 4 days of R, regardless of their order or whether they are consecutive or not, the probabilities of the 4R are 0.6, 0.7, 0.8, and 0.9.
Thus the probability of eternal R is 0.6*0.7*0.8*0.9*P(n(N+R) with all possible n's)
-
Same rule applies to N days. To reach eternal N, we need 6 days of N + n days of R + n days of N, meaning 6N+n(N+R).
Same here, for that 6 days of N, the probabilities of the 6N are 0.4, 0.5, 0.6, 0.7, 0.8, and 0.9.
Thus the probability of eternal N is 0.4*0.5*0.6*0.7*0.8*0.9*P(n(N+R) with all possible n's)
(From this point, I will denote P(n(N+R) with all possible n's) as P.
-
For the alternating state, we have 9 sub-states: nNR, R+nNR, 2R+nNR, 3R+nNR, N+nNR, 2N+nNR, 3N+nNR, 4N+nNR, 5N+nNR
Respectively, the probabilities are P, 0.6*P, 0.6*0.7*P, 0.6*0.7*0.8*P, 0.4*P, 0.4*0.5*P, 0.4*0.5*0.6*P, 0.4*0.5*0.6*0.7*P, 0.4*0.5*0.6*0.7*0.8*P
Adding the probability of all three states, we should get 1. Thus we can solve for P = 625/2017
Thus probability of eternal R = 0.6*0.7*0.8*0.9*P = 189/2017
(The assumption here is that because we are summing the probability for all possible n, from 0 to infinity, I assumed that P stays the same for all three states.)