Questions: Example 2
Consider the function f with the rule:
f(x) =
1.5(1-x^2) if 0 ≤ x ≤ 1
0 if x > 1 or x < 0
a Sketch the graph of f.
b Show that f is a probability density function.
c Find Pr(X > 0.5), where the random variable X has probability density function f.
Solution
a For 0 ≤ x ≤ 1, the graph of y=f(x) is part of a parabola with intercepts at (0,1.5) and (1,0).
Transcript text: Example 2
Consider the function $f$ with the rule:
\[
f(x)=\left\{\begin{array}{ll}
1.5\left(1-x^{2}\right) & \text { if } 0 \leq x \leq 1 \\
0 & \text { if } x>1 \text { or } x<0
\end{array}\right.
\]
a Sketch the graph of $f$.
b Show that $f$ is a probability density function.
c Find $\operatorname{Pr}(X>0.5)$, where the random variable $X$ has probability density function $f$.
Solution
a For $0 \leq x \leq 1$, the graph of $y=f(x)$ is part of a parabola with intercepts at $(0,1.5)$ and $(1,0)$.
Solution
Solution Steps
Step 1: Sketch the graph of f
For 0≤x≤1, the function f(x)=1.5(1−x2) is a downward-opening parabola.
The graph has intercepts at (0,1.5) and (1,0).
For x>1 or x<0, f(x)=0.
Step 2: Show that f is a probability density function
A function f is a probability density function if:
f(x)≥0 for all x.
The integral of f(x) over all possible values of x is 1.
For 0≤x≤1, f(x)=1.5(1−x2)≥0.
For x>1 or x<0, f(x)=0.
Calculate the integral:
∫−∞∞f(x)dx=∫011.5(1−x2)dx=1.5∫01(1−x2)dx=1.5[x−3x3]01=1.5(1−31)=1.5(32)=1
Therefore, f(x) is a probability density function.
Step 3: Find Pr(X>0.5)
Calculate the probability:
Pr(X>0.5)=∫0.51f(x)dx=∫0.511.5(1−x2)dx=1.5∫0.51(1−x2)dx=1.5[x−3x3]0.51=1.5((1−31)−(0.5−30.53))=1.5(32−(0.5−30.125))=1.5(32−(0.5−0.0417))=1.5(32−0.4583)=1.5(0.2083)=0.3125