A continuous random variable can take on any real number value, and often we need to determine the probability of this variable falling within a specific interval. For instance, we might want to find the probability that the daily average temperature in April is between 75 and 81 degrees Fahrenheit. To calculate such probabilities, we utilize a probability density function (PDF), denoted as \( f(x) \), which describes the likelihood of a continuous random variable, represented by \( X \), taking on a value within a given interval.
Since continuous random variables have an infinite number of possible outcomes, the probability of a specific value occurring is represented as an infinite sum, which can be calculated using definite integrals. A function qualifies as a PDF if it meets two essential criteria: first, \( f(x) \) must be greater than or equal to zero for all \( x \), ensuring that the function remains positive. Second, the integral of \( f(x) \) from negative infinity to positive infinity must equal one, indicating that the total area under the curve of the PDF is one, which corresponds to the sum of probabilities of all possible outcomes.
For example, if we know that the daily average temperature in April ranges from 0 to 100 degrees Fahrenheit, we typically seek the probability of the temperature falling within a narrower range, such as between 75 and 81 degrees. To find this probability, we integrate the PDF \( f(x) \) over the interval from 75 to 81 degrees, expressed mathematically as:
\[P(c < X < d) = \int_{c}^{d} f(x) \, dx\]
In a practical scenario, consider a piecewise function defined as \( f(x) = \frac{3}{2}x^2 + 2x^3 \) for \( x \) in the interval [0, 1], and \( f(x) = 0 \) otherwise. To verify that this function is a valid PDF, we first check that \( f(x) \geq 0 \) for all \( x \). Since the function is non-negative within the specified interval and zero elsewhere, it satisfies the first condition. Next, we compute the integral of \( f(x) \) from 0 to 1:
\[\int_{-\infty}^{\infty} f(x) \, dx = \int_{0}^{1} \left( \frac{3}{2}x^2 + 2x^3 \right) \, dx\]
Applying the power rule for integration, we find:
\[\int_{0}^{1} \left( \frac{3}{2}x^2 + 2x^3 \right) \, dx = \left[ \frac{1}{2}x^3 + \frac{1}{2}x^4 \right]_{0}^{1} = \frac{1}{2} + \frac{1}{2} = 1\]
This confirms that the function meets the second condition for being a PDF. Now, to find the probability that \( X \) lies between 0.1 and 0.3, we set up the integral:
\[P(0.1 < X < 0.3) = \int_{0.1}^{0.3} f(x) \, dx = \int_{0.1}^{0.3} \left( \frac{3}{2}x^2 + 2x^3 \right) \, dx\]
Using the power rule again, we evaluate this integral from 0.1 to 0.3:
\[= \left[ \frac{1}{2}x^3 + \frac{1}{2}x^4 \right]_{0.1}^{0.3}\]
Calculating the upper and lower bounds gives us:
\[= \left( \frac{1}{2}(0.3)^3 + \frac{1}{2}(0.3)^4 \right) - \left( \frac{1}{2}(0.1)^3 + \frac{1}{2}(0.1)^4 \right)\]
After performing the arithmetic, we find that the probability is approximately 0.017. This process illustrates how to use a probability density function to compute probabilities for continuous random variables effectively.
