The continuous random variable $X$ has the probability density function
Which integral is equal to the mean of $X$?
Not quite. You omitted the factor $x$. This integral is the total probability.
Not quite. You replaced the probability density function by its antiderivative $\sin(x)$, which is the cumulative distribution function $P(X\le x)=\displaystyle\int_{0}^{x}\cos(t)\,dt=\sin(x)$ on $\left[0,\frac{\pi}{2}\right]$, giving the integrand $x\sin(x)$.
Not quite. You used $x^{2}p(x)$, the integrand for $E\left(X^{2}\right)$ in $\mathrm{Var}(X)=E\left(X^{2}\right)-\left(E(X)\right)^{2}$, not for $E(X)$.
That is it. Step through the hints below to see why.
Solid curve: the density $p(x)=\cos(x)$. Dashed curve and shading: the integrand of the tested option on $\left[0,\frac{\pi}{2}\right]$.
Choose an option to plot its integrand, shade the area under it and read the value of the integral.
Integrand: $\cos(x)$
This is: the total probability.
Integrand: $x\sin(x)$
This is: an integral that uses the cumulative distribution function, not the density.
Integrand: $x^{2}\cos(x)$
This is: $E\left(X^{2}\right)$.
Integrand: $x\cos(x)$
This is: $E(X)$.
(A) is the total probability, $1$, not the mean.
(B) uses the cumulative distribution function, not the density, so it is not the mean.
(C) is $E\left(X^{2}\right)$, not $E(X)$.
(D) is the mean. The marker at $x\approx0.5708$ sits inside $\left[0,\frac{\pi}{2}\right]$ and left of the midpoint $\frac{\pi}{4}\approx0.7854$ because the density is largest near $x=0$.
Try the question first. Choose a hint above when you want one.
$p(x)=0$ outside $\left[0,\tfrac{\pi}{2}\right]$, so
The mean weights each value $x$ by its density $p(x)$, so the integrand is $x\,p(x)$, and only the interval where $p(x)$ is non-zero contributes.
The mean weights each value $x$ by its density $p(x)$, and $p(x)=0$ outside $\left[0,\tfrac{\pi}{2}\right]$.
Only mark this done when you could do it without help. Reading the solution does not count.
A Tangent Tuition mock exam question. It is not a past QCAA question, and Tangent Tuition is not affiliated with the QCAA.
Spot a mistake on this page? Report it