Consider a distribution with the following probability density function $$f(x) = \begin{cases} 0.5, & 0 < x < 2 \\ 0.0, & Otherwise \end{cases}$$ Given that the mean of the above probability distribution is 1, the variance (rounded off to two decimal places) is _______________.
The problem provides a probability density function (PDF) for a continuous random variable $X$:
$f(x) = \begin{cases} 0.5, & 0 < x < 2 \\ 0.0, & \text{Otherwise} \end{cases}$
This describes a uniform distribution on the interval $(0, 2)$. We are given that the mean, $E[X] = 1$, and we need to find the variance, $\text{Var}(X)$.
The variance is calculated using the formula:
$ \text{Var}(X) = E[X^2] - (E[X])^2 $
First, we calculate $E[X^2]$:
$ E[X^2] = \int_{-\infty}^{\infty} x^2 f(x) dx $
Substitute the given PDF:
$ E[X^2] = \int_{0}^{2} x^2 (0.5) dx $
$ E[X^2] = 0.5 \int_{0}^{2} x^2 dx $
$ E[X^2] = 0.5 \left[ \frac{x^3}{3} \right]_{0}^{2} $
$ E[X^2] = 0.5 \left( \frac{2^3}{3} - \frac{0^3}{3} \right) $
$ E[X^2] = 0.5 \left( \frac{8}{3} \right) = \frac{4}{3} $
Now, use the variance formula with $E[X^2] = \frac{4}{3}$ and the given $E[X] = 1$:
$ \text{Var}(X) = E[X^2] - (E[X])^2 $
$ \text{Var}(X) = \frac{4}{3} - (1)^2 $
$ \text{Var}(X) = \frac{4}{3} - 1 $
$ \text{Var}(X) = \frac{1}{3} $
Convert the fraction to a decimal:
$ \text{Var}(X) = \frac{1}{3} \approx 0.3333... $
Rounding to two decimal places, the variance is 0.33.
This value falls between 0.32 and 0.34.
A continuous random variable $x$ has a probability density function given by
$f(x) = e^{-a|x|} \text{ } (-\infty < x < \infty)$
where $a$ is a real constant. The variance of $x$ is __________ (correct up to one decimal place).
People were prohibited ________ their vehicles near the entrance of the main administrative building.