Help with simulating distributions

  • Thread starter Thread starter sneaky666
  • Start date Start date
  • Tags Tags
    Distributions
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
sneaky666
Messages
64
Reaction score
0
Help with simulating distributions...

Homework Statement



For each of the following c.d.f F, find a formula for X in terms of U, such that if U~Uniform[0,1], then X has c.d.f F.

a)
F(x) =
0 if 0 x<0
x if 0<=x<=1
1 if x>1
b)
F(x) =
0 if 0 x<0
x^2 if 0<=x<=1
1 if x>1
c)
F(x) =
0 if 0 x<0
(x^2)/9 if 0<=x<=3
1 if x>3

How do I solve these?

Homework Equations





The Attempt at a Solution


a)
Is it
Y=min(x:F(x)>=u)
Do i need to simplify this more?
 
Physics news on Phys.org