Question 4 of 8: Continuous Random Variable — Custom pdf
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Notes on this paper
National Examinations, December 2014 — 04-BS-2, Probability and Statistics (2 hours; closed book except one hand-written information sheet and an approved calculator; any 5 of 8 questions constitute a complete paper — all 8 are solved below as a complete study resource).
Reference texts: Walpole, Myers, Myers & Ye, Probability & Statistics for Engineers and Scientists, 9th ed.
Question 4: Continuous Random Variable — Custom pdf (20 marks)
Note: the source prints the last two sub-parts re-using the labels (a)(b); they are treated here as (c) Var(X) and (d) the CDF, matching the marking scheme's four-part 5+5+5+5 split.
Given. $f(x)=K(-x^3+3x^2+4x)$ on $0\le x\le4$, zero elsewhere.
Find. (a) K; (b) E(X); (c) Var(X); (d) F(x) and its sketch.
Approach. Use $\int f(x)\,dx=1$ to fix K, then compute the moments $E(X)=\int xf(x)\,dx$, $E(X^2)=\int x^2f(x)\,dx$, $\mathrm{Var}(X)=E(X^2)-E(X)^2$, and $F(x)=\int_0^x f(t)\,dt$ by direct polynomial integration.
(d) Cumulative distribution function. For $0\le x\le4$,
$$F(x)=\dfrac{1}{32}\int_0^x(-t^3+3t^2+4t)\,dt=\dfrac{1}{32}\left[-\dfrac{x^4}{4}+x^3+2x^2\right]=\boxed{\dfrac{x^2(-x^2+4x+8)}{128}},$$
with $F(x)=0$ for $x<0$ and $F(x)=1$ for $x>4$ (check: $F(4)=\frac{16(-16+16+8)}{128}=\frac{128}{128}=1$).
F(x) rises monotonically from 0 at x=0 to 1 at x=4, with an inflection reflecting the underlying pdf's single interior mode.