As suggested in the title. Suppose $X_1, X_2, \dotsc, X_n$ are continuous i.i.d. random variables with pdf $f$. Consider the event that $X_1 \leq X_2 \dotsc \leq X_{N-1} > X_N$, $N \geq 2$, thus $N$ is when the sequence decreases for the first time. Then what's the value of $E[N]$?
I tried to evaluate $P[N = i]$ first. I have \begin{align*} P[N = 2] & = \int_{-\infty}^{\infty} f(x)F(x)dx \\ & = \frac{F(x)^2}{2}\Large|_{-\infty}^{\infty} \\ & = \frac{1}{2} \\ P[N = 3] & = \int_{-\infty}^{\infty} f(x)\int_x^{\infty}f(y)F(y)dydx \\ & = \int_{-\infty}^{\infty}f(x)\frac{1-F(x)^2}{2}dx \\ & = \frac{F(x)-F(x)^3/3}{2}\Large|_{-\infty}^{\infty} \\ & = \frac{1}{3} \end{align*} Similarly, I got $P[N = 4] = \frac{1}{8}$. As $i$ gets large, the calculation gets more complicated and I can't find the pattern. Can anyone suggest how I should proceed?
[self-study]
tag & read its wiki. $\endgroup$