Line 25: | Line 25: | ||
However, before we integrate, we can setup our solution by knowing some properties of a cumulative distribution. | However, before we integrate, we can setup our solution by knowing some properties of a cumulative distribution. | ||
− | Since we know that the cumulative distribution varies from 0 to 1 and that the provided pdf has a probability only in the range from a to b, | + | Since we know that the cumulative distribution varies from 0 to 1 and that the provided pdf has a probability (<span style="color:purple"> you mean "non-zero probability"? -pm </span>) only in the range from a to b, |
we can infer that for any x less than a, the CDF will equal 0 and for any x greater than or equal to b, the CDF will equal 1 giving us this solution so far: | we can infer that for any x less than a, the CDF will equal 0 and for any x greater than or equal to b, the CDF will equal 1 giving us this solution so far: | ||
Line 53: | Line 53: | ||
\end{array} | \end{array} | ||
\right. </math> | \right. </math> | ||
− | + | :<span style="color:purple"> Instructor's comment: I like your thought process and it is clearly explained. But I'd like to challenge you to write your answer in a more compact way using math symbols and statements. Note: You also need to find the value of K. -pm </span> | |
===Answer 2=== | ===Answer 2=== | ||
Write it here | Write it here |
Latest revision as of 03:52, 4 March 2013
Contents
Practice Problem: normalizing the probability mass function of a continuous random variable
A random variable X has the following probability density function:
$ f_X (x) = \left\{ \begin{array}{ll} k, & \text{ if } a\leq x \leq b,\\ 0, & \text{ else}, \end{array} \right. $
where k is a constant. Determine the cumulative distribution function of X.
You will receive feedback from your instructor and TA directly on this page. Other students are welcome to comment/discuss/point out mistakes/ask questions too!
Answer 1
To find the CDF given the PDF, we must integrate:
$ F_X(x) = \int_{-\infty}^x \! f(t) \, \mathrm{d}t. $
However, before we integrate, we can setup our solution by knowing some properties of a cumulative distribution. Since we know that the cumulative distribution varies from 0 to 1 and that the provided pdf has a probability ( you mean "non-zero probability"? -pm ) only in the range from a to b, we can infer that for any x less than a, the CDF will equal 0 and for any x greater than or equal to b, the CDF will equal 1 giving us this solution so far:
$ F_X (x) = \left\{ \begin{array}{ll} 0, & \text{ if } x < a,\\ ?, & \text{ if } a\leq x < b,\\ 1, & \text{ if } x \geq b, \end{array} \right. $
To solve for the ? between a and b, we perform the integral, however we do not need to integrate from negative infinity, we can simply integrate from the lower limit of a:
$ \int_{a}^x \! k \, \mathrm{d}t. $
Computing the integral we obtain:
$ kt\vert_a^x = k(x-a) $
Thus, the CDF is:
$ F_X (x) = \left\{ \begin{array}{ll} 0, & \text{ if } x < a,\\ k(x-a), & \text{ if } a\leq x < b,\\ 1, & \text{ if } x \geq b, \end{array} \right. $
- Instructor's comment: I like your thought process and it is clearly explained. But I'd like to challenge you to write your answer in a more compact way using math symbols and statements. Note: You also need to find the value of K. -pm
Answer 2
Write it here
Answer 3
Write it here.