PDF to CDF and Inverse CDF

  • Thread starter zzmanzz
  • Start date
  • #1
54
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]
 

Answers and Replies

  • #2
Ray Vickson
Science Advisor
Homework Helper
Dearly Missed
10,706
1,728

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?
 
  • #3
54
0
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?
 
  • #4
Ray Vickson
Science Advisor
Homework Helper
Dearly Missed
10,706
1,728
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}##.
 
  • #5
54
0
Yes, just look at it: you have ##1 + \text{something positive}##.
Thank you!!
 

Related Threads on PDF to CDF and Inverse CDF

  • Last Post
Replies
4
Views
6K
  • Last Post
Replies
4
Views
1K
  • Last Post
Replies
2
Views
26K
  • Last Post
Replies
2
Views
5K
Replies
2
Views
757
  • Last Post
Replies
0
Views
4K
  • Last Post
Replies
1
Views
1K
Replies
3
Views
2K
Replies
2
Views
3K
  • Last Post
Replies
9
Views
1K
Top