Generating a Random Variable with a Specific Distribution Function

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
twoski
Messages
177
Reaction score
2

Homework Statement



Give a method for generating a random variable with distribution function

F(x) = 1/2[itex](x+x^{2})[/itex]

0<x<1

The Attempt at a Solution



From what i can tell i am supposed to do something like:

Let U be a uniformly distributed random variable over (0,1).

U = 1/2[itex](x+x^{2})[/itex]

2U = [itex]x+x^{2}[/itex]

Am i on the right track?
 
Physics news on Phys.org
twoski said:

Homework Statement



Give a method for generating a random variable with distribution function

F(x) = 1/2[itex](x+x^{2})[/itex]

0<x<1

The Attempt at a Solution



From what i can tell i am supposed to do something like:

Let U be a uniformly distributed random variable over (0,1).

U = 1/2[itex](x+x^{2})[/itex]

2U = [itex]x+x^{2}[/itex]

Am i on the right track?

You can answer that for yourself. Does your method match something in your course notes or textbook or in a web page?