Suppose a child plays outside in the yard. On their own, they come back inside at a random time uniformly distributed on the interval [0,1] (Take the units to be hours.) However, if the child is not back in 50 minutes, their mother brings them in. Let X be the time when they come back in.
What is the cumulative distribution function F of X?
Find E[X].
Find Var[X].
My Attempt
The c.d.f. is pretty straight forward from the problem. \begin{equation} F(s)= \begin{cases} 0, & s<0\\ s, & 0\leq s<5/6\\ 1, & s\geq 5/6 \end{cases} \end{equation}
Differentiating the c.d.f. gives us the p.d.f. $f(s)=1$ for $0\leq s <5/6$. Thus, our expectation is $$\mathbb{E}(X)=\int^{5/6}_0xdx=0.3472$$
To find the variance, we also need $\mathbb{E}(X^2)$ $$\mathbb{E}[X^2]=\int^{5/6}_0x^2dx=0.1929$$ So the variance is $$\text{Var}(X)=\mathbb{E}[X^2]-\mathbb{E}[X]^2=0.1929-0.3472^2=0.0723$$
Can I get verification on my answers? I am a little skeptical on the expectation because I was told that the expectation for a uniform distribution, Unif[a, b], can be calculated as $\mathbb{E}(X)=\frac{a+b}{2}=\frac{5/6+0}{2}=0.4167$, which is different from what I got using the integral method.
your distribution is not absolutely continuous thus your expectation is wrong. Your random variable has a positive probability mass in $x=5/6$
An easy way to calculate its expectation is the following purple area $=35/72$
...you calculated only the area of the triangle...$=25/72$
Try yourself to reason about my hint and calculate the variance...