1. The problem statement, all variables and given/known data Let X be a discrete random variable with the p.m.f given in the following table: x 10 20 30 40 p(x) .25 .2 .4 .15 Suppose you can generate a random value, u, from a uniform(0,1) distribution. If u = 0.576, then what is the value of your random value from the distribution of X? 2. Relevant equations F(x) = [tex]\int f(x)[/tex]dx Uniform: f(x) = (a+b)/2 3. The attempt at a solution I've attempted to find the C.D.F of the table: x 10 20 30 40 p(x) .25 .45 .85 1 From here I am at a complete loss at how to use my value of U to get at a random value of X. I did attempt the following but am unsure of its validity: u = [tex]\int[/tex](1/30)dx from 10 to x, finding approximately 27 as the value. This seems very wrong to me as that makes me assume that the table is a uniform distribution which it is not. I could truly use some help. Thanks a lot.