Expected value of a deterministic function defined on a random domain

177 Views Asked by At

I'm curious of how to find the expected value of the following. Suppose we have a constant function defined on,

$$f(x) = \begin{cases} 1 & if \ \ \ 0 < x< D \\ 0 & if \ \ \ x> D \end{cases}$$

For $$D \sim Exp(2)$$

Is there anyway to compute

$$\mathbb{E}(f(x))=?$$

1

There are 1 best solutions below

0
On BEST ANSWER

Fix $x$. The random variable $Y=f(x)$ can be either $1$, with probability $\Pr(D>x)$ or $0$. Hence, $E(f(x))=\Pr(D>x)=\exp(-2x)$