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!
 
Thread 'Use greedy vertex coloring algorithm to prove the upper bound of χ'
Hi! I am struggling with the exercise I mentioned under "Homework statement". The exercise is about a specific "greedy vertex coloring algorithm". One definition (which matches what my book uses) can be found here: https://people.cs.uchicago.edu/~laci/HANDOUTS/greedycoloring.pdf Here is also a screenshot of the relevant parts of the linked PDF, i.e. the def. of the algorithm: Sadly I don't have much to show as far as a solution attempt goes, as I am stuck on how to proceed. I thought...
Back
Top