Condition 1 is already met since C can be chosen to be non-negative. For condition 2, we calculate the integral of f(x) over its entire range to equal 1:
Thus, for f(x) to be a density function, C must be equal to 31.
In TeX, you would write the solution as:
To ensure $f(x)$ is a density function, it must satisfy the condition $\int_{-\infty}^{\infty} f(x) \, dx = 1$.
Given:
\[ f(x) = \begin{cases} C, & \text{for } 2 \le x < 5 \\ 0, & \text{otherwise} \end{cases} \]
We calculate:
\[ \int_{-\infty}^{\infty} f(x) \, dx = \int_{2}^{5} C \, dx = C \cdot (5-2) = 3C \]
For $f(x)$ to be a density function, this integral must equal $1$. Therefore, we set $3C = 1$ and solve for $C$:
\[ 3C = 1 \longrightarrow C = \frac{1}{3} \]
Hence, to make $f(x)$ a density function, $C$ must be $\frac{1}{3}$.
σ2
[ \sigma^2 = E[X^2] - (E[X])^2 ]
where E[X] is the expectation (or mean) of X and E[X2] is the expectation of X2.
Therefore, the variance of the probability density function f(x) is 0.75.
In TeX:
To calculate the variance $\sigma^2$, we first determine $E[X]$ and $E[X^2]$:
\[ E[X] = \int_{2}^{5} x \cdot \frac{1}{3} \, dx = 3.5 \]
\[ E[X^2] = \int_{2}^{5} x^2 \cdot \frac{1}{3} \, dx = 13 \]
Thus, the variance $\sigma^2$ is:
\[ \sigma^2 = E[X^2] - (E[X])^2 = 13 - (3.5)^2 = 0.75 \]
Therefore, the variance of the distribution is $0.75$.