Finding the CDF: Solving for c & Understanding Results

  • Context: MHB 
  • Thread starter Thread starter nacho-man
  • Start date Start date
  • Tags Tags
    Cdf
Click For Summary
SUMMARY

The discussion centers on finding the cumulative distribution function (CDF) and the constant \( c \) for the probability density function (PDF) \( f(x) = c e^{-|x|} \). Participants clarify that the integral of the PDF must equal 1 over its entire domain, leading to the equation \( \int_{-\infty}^{+\infty} c e^{-|x|} \, \mathrm{d}x = 1 \). The correct approach involves calculating a definite integral by splitting it into two parts for \( x < 0 \) and \( x > 0 \). The confusion regarding indefinite integrals and the relationship between the CDF and PDF is resolved, emphasizing the necessity of understanding definite integrals in this context.

PREREQUISITES
  • Understanding of probability density functions (PDFs)
  • Knowledge of cumulative distribution functions (CDFs)
  • Proficiency in integral calculus, specifically definite integrals
  • Familiarity with the exponential function and its properties
NEXT STEPS
  • Learn how to calculate definite integrals of exponential functions
  • Study the relationship between PDFs and CDFs in probability theory
  • Explore the properties of the Laplace transform and its applications in probability
  • Review the concept of normalization in probability distributions
USEFUL FOR

Students and professionals in statistics, data science, and mathematics who are working with probability distributions and need to understand the derivation of CDFs and PDFs.

nacho-man
Messages
166
Reaction score
0
Please refer to the attached image.

For part a)

when I want to find the CDF, don't I simply take the indefinite integral of e^-|x|, multiply it by c and solve for that = 1?

I am unsure of how to take the integral for this, am i correct in saying it is -e^-x, for all x ?

that would leave me with c* -e^-x = 1, and c = 1/(-e^-x), wolfram says there are two separate results, but i am not sure why. and in that case, I would also have two separate results for c. how can that make sense?

for part b) i am unsure as to how to approach the question. could someone please guide me?

As always, your help is very much appreciated and invaluable.

Thanks
 

Attachments

  • Assignment2 question.png
    Assignment2 question.png
    5.9 KB · Views: 106
Physics news on Phys.org
Hello nacho,
for part a), that's not what you are meant to do. Remember that probability density functions must integrate to 1 over the entire domain, that is:

$$\int_{-\infty}^{+\infty} c e^{- |x|} ~ \mathrm{d} x = 1$$

Can you solve for $c$ now? (you don't need to know what a CDF is for this part of the question)

Next, the CDF is by nature a definite integral, since when you say "the CDF of $f_X$ is $F(x)$" then you are saying that:

$$F(x) = \int_{- \infty}^x f_X (t) ~ \mathrm{d} t$$

Note the variable $t$, it is not the same as $x$. Basically summing up the PDF from negative infinity to $x$, the CDF variable. So in your case:

$$F(x) = \int_{-\infty}^x c e^{- |t|} ~ \mathrm{dt}$$

Which will give you an expression for the CDF in terms of $x$, and then finding its mean and variance should be straightforward.



For part b), I am not sure why you are asked to find the CDF first instead of the PDF, but there is probably some sort of theorem that relates the CDF of the transform of a random variable with the CDF of that random variable (which you found previously). Do your notes say anything?
 
Last edited:
Bacterius said:
Hello nacho,
for part a), that's not what you are meant to do. Remember that probability density functions must integrate to 1 over the entire domain, that is:

$$\int_{-\infty}^{+\infty} c e^{- |x|} = 1$$

Can you solve for $c$ now? (you don't need to know what a CDF is for this part of the question)


For part b), I am not sure why you are asked to find the CDF first instead of the PDF, but there is probably some sort of theorem that relates the CDF of the transform of a random variable with the CDF of that random variable (which you found previously). Do your notes say anything?

Thanks

What I wanted to clarify was, for part a)
this is what I did:

split up the integral to:

$$ C(int\e^x dx + \int e(^-x)dx) = 1 $$

which gives

$$ c = 1/{e^x-e^(-x)} $$
Is this correct?


god I'm bad at latex.

What i meant was c(int e^x dx + int e^-x dx) = 1
thus c = 1/(e^x -e^(-x)) ?looking at my notes for part b) I can't seem to find any relationship.
 
Last edited:
No, it's not correct. You cannot find $c$ in terms of $x$, that doesn't make sense. Remember what I mentioned earlier: a PDF always has an area (under its curve) of $1$. That means that if you integrate your PDF from negative infinity to positive infinity and you get, say, $2c$, then you know that $2c = 1$ and so $c = \frac{1}{2}$. Basically the fact that the probability density function must integrate to $1$ puts conditions of what values $c$ can take (and, in fact, it can only take one value).

So it's a definite integral. Can you integrate $f(x) = c e^{-|x|}$ from negative infinity to positive infinity (find the area under this function's curve, in terms of $c$)? What do you get?

Rereading your post you are pretty close, but again you are not calculating a definite integral but only an indefinite one. You want to calculate:

$$\int_{-\infty}^{+\infty} c e^{-|x|} ~ \mathrm{d} x = 1$$

And you correctly identified that you should split it for $x < 0$ and $x > 0$. So:

$$\int_{-\infty}^{+\infty} c e^{-|x|} ~ \mathrm{d} x = \int_{-\infty}^{0} c e^{x} ~ \mathrm{d} x + \int_{0}^{+\infty} c e^{-x} ~ \mathrm{d} x = 1$$

I think this is what you were missing. Can you complete it now?

You are mixing up definite and indefinite integrals.
 
Last edited:
ahhh,
thank you
that makes sense now, I see what you mean.

I was having trouble with the bounds when i split it up, so I thought it was just supposed to calculate the indefinite integral.

i understand now though!
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 36 ·
2
Replies
36
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K