All Exams Test series for 1 year @ ₹349 only
Question

The interquartile range of continuous random variable X having PDF f(x) = e -x ; x ≥ 0 is:

This question was previously asked in
SSC CGL 2019 (Tier 2) GS Finance & Economics Previous Year Paper (17-Nov-2020)
The correct answer is

In 3

Calculating Interquartile Range (IQR) for a Continuous Random Variable

The question asks us to find the interquartile range (IQR) for a continuous random variable X whose probability density function (PDF) is given by $f(x) = e^{-x}$ for $x \ge 0$. The IQR is a measure of statistical dispersion, representing the difference between the third quartile ($Q_3$) and the first quartile ($Q_1$).

To find the quartiles $Q_1$ and $Q_3$, we first need to determine the cumulative distribution function (CDF), $F(x)$, of the random variable X. The CDF is defined as $F(x) = P(X \le x)$.

Finding the Cumulative Distribution Function (CDF)

For a continuous random variable with PDF $f(x)$, the CDF $F(x)$ is given by the integral of the PDF from $-\infty$ to $x$.

Given $f(x) = e^{-x}$ for $x \ge 0$ and $f(x) = 0$ for $x < 0$:

  • For $x < 0$: $$F(x) = \int_{-\infty}^{x} f(t) dt = \int_{-\infty}^{x} 0 dt = 0$$
  • For $x \ge 0$: $$F(x) = \int_{-\infty}^{x} f(t) dt = \int_{-\infty}^{0} 0 dt + \int_{0}^{x} e^{-t} dt$$ $$F(x) = 0 + \left[-e^{-t}\right]_{0}^{x} = -e^{-x} - (-e^{-0}) = -e^{-x} + 1 = 1 - e^{-x}$$

So, the CDF is: $$F(x) = \begin{cases} 0 & \text{for } x < 0 \\ 1 - e^{-x} & \text{for } x \ge 0 \end{cases}$$

Calculating the First Quartile ($Q_1$)

The first quartile, $Q_1$, is the value $x_1$ such that the probability of X being less than or equal to $x_1$ is 0.25 (or 25%). Mathematically, $F(x_1) = 0.25$.

Since $Q_1$ for this distribution is non-negative (as $F(x)=0$ for $x < 0$), we use the form $F(x) = 1 - e^{-x}$: $$1 - e^{-Q_1} = 0.25$$ $$e^{-Q_1} = 1 - 0.25$$ $$e^{-Q_1} = 0.75$$ $$e^{-Q_1} = \frac{3}{4}$$ Taking the natural logarithm of both sides: $$-Q_1 = \ln\left(\frac{3}{4}\right)$$ $$Q_1 = -\ln\left(\frac{3}{4}\right)$$ Using the property $\ln(a/b) = \ln a - \ln b$ and $-\ln(y) = \ln(1/y)$: $$Q_1 = \ln\left(\left(\frac{3}{4}\right)^{-1}\right) = \ln\left(\frac{4}{3}\right)$$

Calculating the Third Quartile ($Q_3$)

The third quartile, $Q_3$, is the value $x_3$ such that the probability of X being less than or equal to $x_3$ is 0.75 (or 75%). Mathematically, $F(x_3) = 0.75$.

Using the form $F(x) = 1 - e^{-x}$ for $x \ge 0$: $$1 - e^{-Q_3} = 0.75$$ $$e^{-Q_3} = 1 - 0.75$$ $$e^{-Q_3} = 0.25$$ $$e^{-Q_3} = \frac{1}{4}$$ Taking the natural logarithm of both sides: $$-Q_3 = \ln\left(\frac{1}{4}\right)$$ $$Q_3 = -\ln\left(\frac{1}{4}\right)$$ Using the property $-\ln(y) = \ln(1/y)$: $$Q_3 = \ln\left(\left(\frac{1}{4}\right)^{-1}\right) = \ln(4)$$

Calculating the Interquartile Range (IQR)

The interquartile range (IQR) is the difference between the third quartile ($Q_3$) and the first quartile ($Q_1$).

$$IQR = Q_3 - Q_1$$ $$IQR = \ln(4) - \ln\left(\frac{4}{3}\right)$$ Using the property $\ln a - \ln b = \ln(a/b)$: $$IQR = \ln\left(\frac{4}{\frac{4}{3}}\right)$$ $$IQR = \ln\left(4 \times \frac{3}{4}\right)$$ $$IQR = \ln(3)$$

Therefore, the interquartile range of the continuous random variable X with the given PDF is $\ln 3$.

Quartile Definition Calculation Value
$Q_1$ $F(Q_1) = 0.25$ $1 - e^{-Q_1} = 0.25 \implies Q_1 = \ln(4/3)$ $\ln(4/3)$
$Q_3$ $F(Q_3) = 0.75$ $1 - e^{-Q_3} = 0.75 \implies Q_3 = \ln(4)$ $\ln(4)$
IQR $Q_3 - Q_1$ $\ln(4) - \ln(4/3) = \ln(3)$ $\ln 3$

Revision Table: Key Concepts for IQR Calculation

Concept Description Relevance to IQR
Probability Density Function (PDF) Defines the relative likelihood for a continuous random variable to take on a given value. $f(x)$ Used to derive the CDF.
Cumulative Distribution Function (CDF) Gives the probability that a random variable is less than or equal to a specific value. $F(x) = P(X \le x)$ Essential for finding quartiles ($Q_1$, $Q_3$).
Quartiles ($Q_1$, $Q_2$, $Q_3$) Values that divide the probability distribution into four equal parts (25% each). $Q_1$: 25th percentile, $Q_2$: 50th percentile (Median), $Q_3$: 75th percentile. $Q_1$ and $Q_3$ are the boundaries used to calculate IQR.
Interquartile Range (IQR) The difference between the third quartile and the first quartile ($Q_3 - Q_1$). Measures the spread of the middle 50% of the data. The value we are asked to calculate.
Exponential Distribution A continuous probability distribution often used to model the time until an event occurs. Its PDF is $f(x; \lambda) = \lambda e^{-\lambda x}$ for $x \ge 0$. In this problem, $\lambda=1$. The specific distribution whose IQR is calculated in this problem.

Additional Information: Percentiles and Dispersion

Quartiles are specific types of percentiles. The first quartile ($Q_1$) is the 25th percentile, the second quartile ($Q_2$) is the 50th percentile (which is also the median), and the third quartile ($Q_3$) is the 75th percentile.

The IQR is a measure of statistical dispersion or spread. It is a robust measure because it is not affected by extreme outliers, unlike the standard deviation or variance which consider all data points (or the entire distribution for continuous variables).

For a continuous random variable with CDF $F(x)$, the $p$-th percentile ($P_p$) is the value $x_p$ such that $F(x_p) = p/100$. So, $Q_1 = P_{25}$ and $Q_3 = P_{75}$.

In this case, the distribution is an exponential distribution with rate parameter $\lambda = 1$. The CDF of an exponential distribution with parameter $\lambda$ is $F(x) = 1 - e^{-\lambda x}$ for $x \ge 0$. The quartiles can be found by solving $1 - e^{-\lambda Q_p} = p/100$ for $Q_p$.

  • For $Q_1$ (25th percentile, $p=25$): $1 - e^{-\lambda Q_1} = 0.25 \implies e^{-\lambda Q_1} = 0.75 \implies -\lambda Q_1 = \ln(0.75) \implies Q_1 = -\frac{1}{\lambda}\ln(0.75) = \frac{1}{\lambda}\ln(4/3)$.
  • For $Q_3$ (75th percentile, $p=75$): $1 - e^{-\lambda Q_3} = 0.75 \implies e^{-\lambda Q_3} = 0.25 \implies -\lambda Q_3 = \ln(0.25) \implies Q_3 = -\frac{1}{\lambda}\ln(0.25) = \frac{1}{\lambda}\ln(4)$.

The IQR for an exponential distribution with parameter $\lambda$ is $Q_3 - Q_1 = \frac{1}{\lambda}\ln(4) - \frac{1}{\lambda}\ln(4/3) = \frac{1}{\lambda}(\ln 4 - \ln(4/3)) = \frac{1}{\lambda}\ln(4 / (4/3)) = \frac{1}{\lambda}\ln(3)$.

For this problem, $\lambda=1$, so the IQR is $\frac{1}{1}\ln(3) = \ln 3$. This confirms our earlier calculation.

Was this answer helpful?

Similar Questions

  1. The memory-less property is followed by which of the following continuous distribution:

  2. A Poisson distribution has a double mode at x = 1 and x = 2. The probability for x = 1 or for x = 2 of these two value is:

  3. If a discrete random variable X follows uniform distribution and assume only the values 8, 9, 11, 15, 18, 20, the value of P(|X - 14| < 5) will be:

  4. The probability density function of a random variable X is f(x) = \(\frac{\pi}{10} sin \frac{\pi x}{5}\) ; 0 ≤ x ≤ 5. The first quartile of X is:

  5. The mode of a geometric distribution with parameter p is:

  6. If ten coins are tossed simultaneously, then the probability of getting at most 1 head is:

  7. If the occurrence of events follows Poisson Process with mean rate λ, then inter-occurence time of events will follow:

  8. The PDF of babies’ age is defined as \(f(x)=\dfrac{3}{4}x(2-x);0<x<2\) , The 5 th decile point of X is:

  9. Patients arrive at a clinic following the Poisson process, with the mean rate of 10 customers per hour. The inter-arrival time of a customer follows:

  10. The length of time X, needed by an examinee of competition to complete a 1-hour exam, is a random variable with
    PDF \(f(x)=\dfrac{6}{5}(x^2+x);0 \le x \le 1.\) , The value of F(0.5) is:


Important Questions from Random Variables Basics

  1. The square of a standard normal variate is a

  2. The memory-less property is followed by which of the following continuous distribution:

  3. A Poisson distribution has a double mode at x = 1 and x = 2. The probability for x = 1 or for x = 2 of these two value is:

  4. If a discrete random variable X follows uniform distribution and assume only the values 8, 9, 11, 15, 18, 20, the value of P(|X - 14| < 5) will be:

  5. The probability density function of a random variable X is f(x) = \(\frac{\pi}{10} sin \frac{\pi x}{5}\) ; 0 ≤ x ≤ 5. The first quartile of X is:

Need Expert Advice?
Upcoming Exams
UPSSSC PET
October 25, 2026
SSC JE
November 02, 2026
SSC CPO
November 20, 2026
SSC CHSL
November 30, 2026
Test Series
SSC CGL img
SSC
SSC CGL (Tier I + Tier II) 2026 Mock Test Series - Latest Pattern
2503 Tests 6 Tests Free
7885 Attempts
4.2(906)
English, Hindi

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App