Verifying Solution for PDF to CDF and Inverse CDF Calculations

  • Thread starter Thread starter zzmanzz
  • Start date Start date
  • Tags Tags
    Cdf Inverse Pdf
zzmanzz
Messages
47
Reaction score
0

Homework Statement



I was hoping someone could just verify this solution is accurate.

p(x) =
0 , x < 0
4x, x < .5
-4x + 4 , .5 <= x < 1

Find CDF and Inverse of the CDF.

Homework Equations

The Attempt at a Solution



CDF =
0 , x < 0
2x^2 , 0 <= x < .5
-2x^2 + 4x - 1 , .5 <= x <= 1
1, x > 1

Inverse of the CDF

0 , x < 0
sqrt( x / 2) , 0 <= x < .5
1 + sqrt ( 1 - x) / sqrt ( 2 ) , .5 <= x <= 1
1, x > 1


Thanks[/B]
 
Physics news on Phys.org
zzmanzz said:

Homework Statement



I was hoping someone could just verify this solution is accurate.

p(x) =
0 , x < 0
4x, x < .5
-4x + 4 , .5 <= x < 1

Find CDF and Inverse of the CDF.

Homework Equations

The Attempt at a Solution



CDF =
0 , x < 0
2x^2 , 0 <= x < .5
-2x^2 + 4x - 1 , .5 <= x <= 1
1, x > 1

Inverse of the CDF

0 , x < 0
sqrt( x / 2) , 0 <= x < .5
1 + sqrt ( 1 - x) / sqrt ( 2 ) , .5 <= x <= 1
1, x > 1


Thanks[/B]
You chose the wrong root for ##.5 \leq x \leq 1##. Can you see why?
 
Ray Vickson said:
You chose the wrong root for ##.5 \leq x \leq 1##. Can you see why?

Thanks for pointing that out. The value for that should also be between .5 and 1, and with that root, it can be greater than 1?
 
zzmanzz said:
Thanks for pointing that out. The value for that should also be between .5 and 1, and with that root, it can be greater than 1?

Yes, just look at it: you have ##1 + \text{something positive}##.
 
Ray Vickson said:
Yes, just look at it: you have ##1 + \text{something positive}##.
Thank you!
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top