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

Discussion Overview

The discussion revolves around finding the constant \( c \) in a probability density function (PDF) defined by \( f(x) = c e^{-|x|} \) and understanding the cumulative distribution function (CDF) related to it. Participants explore the integration process required to ensure the PDF integrates to 1 over its entire domain, as well as the relationship between the PDF and CDF.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant suggests taking the indefinite integral of \( e^{-|x|} \) multiplied by \( c \) to find \( c \), but expresses confusion about the integration process and the resulting values for \( c \).
  • Another participant clarifies that the PDF must integrate to 1 over the entire domain and provides the correct form of the integral to solve for \( c \).
  • Some participants discuss the necessity of using definite integrals for calculating the area under the PDF curve, emphasizing that the integration should be split for \( x < 0 \) and \( x > 0 \).
  • There is a correction regarding the misunderstanding of definite versus indefinite integrals, with emphasis on calculating the area under the curve correctly.
  • Participants express uncertainty about the requirement to find the CDF before the PDF and speculate on potential theorems that might relate the two.

Areas of Agreement / Disagreement

There is no consensus on the initial approach to finding \( c \) and the relationship between the PDF and CDF. Multiple viewpoints and methods are presented, and the discussion remains unresolved regarding the best approach to these calculations.

Contextual Notes

Participants highlight limitations in understanding the bounds of integration and the distinction between definite and indefinite integrals, which affects their calculations. There is also a lack of clarity on the relationship between the CDF and PDF as it pertains to the specific problem.

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: 109
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