Question:medium

X is a continuous random variable with probability density function given by \(f(x) = \{kx \text{ for } 0 \le x<2; 2k \text{ for } 2 \le x<4; -kx+6k \text{ for } 4 \le x<6\}\). The value of k will be

Show Hint

For piecewise linear PDFs, it's often much faster to calculate the total area using geometry (breaking the shape into triangles and rectangles) than to perform the full integration.
Updated On: Feb 18, 2026
  • 2/3
  • 1
  • 8
  • 1/8
Show Solution

The Correct Option is D

Solution and Explanation

Step 1: State the fundamental property of PDFs.The integral of a Probability Density Function (PDF) over its entire domain equals 1.\[ \int_{-\infty}^{\infty} f(x) dx = 1 \]
Step 2: Define the integral for the piecewise function.The total area, which must equal 1, is the sum of the integrals over the three intervals.\[ \int_{0}^{2} kx \,dx + \int_{2}^{4} 2k \,dx + \int_{4}^{6} (-kx+6k) \,dx = 1 \]Alternatively, calculate the area geometrically as a trapezoid.

Area 1 (Triangle, 0 to 2): Base = 2. Height at x=2 is \(k(2) = 2k\). Area = \(\frac{1}{2} \times \text{base} \times \text{height} = \frac{1}{2} \times 2 \times 2k = 2k\).
Area 2 (Rectangle, 2 to 4): Width = 2. Height = \(2k\). Area = \(2 \times 2k = 4k\).
Area 3 (Triangle, 4 to 6): Base = 2. Height at x=4 is \(-k(4)+6k = 2k\). Height at x=6 is \(-k(6)+6k=0\). Area = \(\frac{1}{2} \times 2 \times 2k = 2k\).

Step 3: Calculate k.Total Area = Area 1 + Area 2 + Area 3\[ 2k + 4k + 2k = 1 \]\[ 8k = 1 \]\[ k = \frac{1}{8} \]
Was this answer helpful?
0