Help with simulating distributions

  • Thread starter Thread starter sneaky666
  • Start date Start date
  • Tags Tags
    Distributions
AI Thread Summary
To simulate distributions based on given cumulative distribution functions (c.d.f.s), the key is to express the random variable X in terms of a uniformly distributed variable U. For the first c.d.f, F(x) = x for 0 ≤ x ≤ 1, X can be directly represented as X = U. For the second c.d.f, F(x) = x^2 for 0 ≤ x ≤ 1, the transformation becomes X = √U. For the third c.d.f, F(x) = (x^2)/9 for 0 ≤ x ≤ 3, the formula is X = 3√U. Understanding these transformations allows for effective simulation of the desired distributions.
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


I would start by differentiating the cdf F(x) to get the pdf f(x).
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Back
Top