I'm trying to solve the following question:
Let $Y_1, Y_2, \ldots , Y_n$ be independent and uniformly distributed R.V on $[0, 1]$. Let $x, x \in [0, 1]$, be fixed and write $N = \min\{k \ge 1 | Y_1 + Y_2 + \dots + Y_k > x\}$. What is the probability of the event $N = n$.
My solution is as the following:
The probability of the event $N = n$:
$P(Y_1+Y_2+\dots+Y_n > x)$ AND $P(Y_1+Y_2+\dots +Y_{n-1} < x)$ AND $P(Y_1+Y_2+\dots +Y_{n-2} + Y_n < x) \dots $
Where in the second term, I excluded $Y_n$ and in the third term I excluded $Y_{n-1}$. I am not sure whether I should do this permutation or I should just stick with the following solution:
The probability of the event $ N = n$:
$P(Y_1+Y_2+ \dots +Y_n > x)$ AND $P(Y_1+Y_2+\dots +Y_{n-1} < x)$
If $Y$'s are not random variables and they represent drawing a ball that has a certain number, I think the first solution is the way to go, isn't it? However, in the case of the random variable, I'm not sure what the correct way.