Suppose we have $N$ buttons and each button can be clicked with probability $p_i$. The game stops when the player clicks the button with $i = 1$. Once a button is clicked, the player can not click the same button again. What is the expected number of clicks?
I am not able to answer this question for $ N > 2 $
For $N = 1$, $E[x] = 1$
For $N = 2$, suppose $p_1 = 5 / 6$ and $p_2 = 1 / 6$ , then $ E[x] = 1*p_1 + 2 * p_2 = 1.167$
Can anyone please help me to solve for any $N$?
Let the number of buttons be $N$.
And probabilities of buttons are $p_1, p_2, p_3 ... p_n.$
The expected value $E[X] = N - \frac{p_1}{p_1 + p_2} - \frac{p_1}{p_1 + p_3} - \frac{p_1}{p_1 + p_4} .... \frac{p_1}{p_1 + p_n}$
Will update the full derivation in sometime.
UPDATE:
Consider $N = 3$
$E[X] = 1*p_1 + 2*(p_2*\frac{p_1}{p_1 + p_3} + p_3*\frac{p_1}{p_1 + p_2}) + 3*(p_2*\frac{p_3}{p_3 + p_1}*1 + p_3*\frac{p_2}{p_2 + p_1}*1)$
$E[X] = p_1 + 2*p_2*\frac{p_1}{p_1 + p_3} + 2*p_3*\frac{p_1}{p_1 + p_2} + 3*p_2*\frac{p_3}{p_1 + p_3} + 3*p_3*\frac{p_2}{p_1 + p_2}$
Rearranging terms with same denominator...
$E[X] = p_1 + ( 2*\frac{p_2*p_1}{p_1 + p_3} + 3*\frac{p_2*p_3}{p_1 + p_3}) + (2*\frac{p_3*p_1}{p_1 + p_2} + 3*\frac{p_3*p_2}{p_1 + p_2})$
$E[X] = p_1 + ( 3*p_2 - \frac{p_1*p_2}{p_1 + p_3}) + (3*p_3 - \frac{p_1 * p_3}{p_1 + p_2})$
$E[X] = 3 (p_1 + p_2 + p_3) - (2*p_1 + \frac{p_1*p_2}{p_1 + p_3} + \frac{p_1 * p_3}{p_1 + p_2})$
Since, Sum of all probabilities is 1
$E[X] = 3 - p_1*(2* + \frac{p_2}{p_1 + p_3} + \frac{p_3}{p_1 + p_2})$
$E[X] = 3 - p_1*(\frac{2*(p_1 + p_2)*(p_1 + p_3) + p_2*(p_1 + p_2) + p_3*(p_1 + p_3)}{(p_1 + p_2)*(p_1 + p_3)})$
$E[X] = 3 - p_1*(\frac{(p_1 + p_2)*(p_1 + p_3) + (p_1 + p_2)*(p_1 + p_3) + p_2*(p_1 + p_2) + p_3*(p_1 + p_3)}{(p_1 + p_2)*(p_1 + p_3)})$
$E[X] = 3 - p_1*(\frac{(p_1 + p_2)*(p_1 + p_2 + p_3) + (p_1 + p_3)*(p_1 + p_2 + p_3)}{(p_1 + p_2)*(p_1 + p_3)})$
$E[X] = 3 - p_1*(\frac{(p_1 + p_2) + (p_1 + p_3)}{(p_1 + p_2)*(p_1 + p_3)})$
$E[X] = 3 - p_1*(\frac{1}{p_1 + p_3} + \frac{1}{p_1 + p_2})$
$E[X] = 3 - (\frac{p_1}{p_1 + p_2} + \frac{p_1}{p_1 + p_3})$
$E[X] = 1 + \frac{p_2}{p_1 + p_2} + \frac{p_3}{p_1 + p_3}$
If you do the same thing for N = 4 and onwards.. you get the same thing.. but it is messy...