- #1
fignewtons
- 28
- 0
Homework Statement
I want to generate two random variables, one is normally distributed N ~N(10, 25) and the other one, E, is exponentially distributed with mean 1. I was not given a particular correlation coefficient.
Homework Equations
normal cdf, exponential cdf, inverse transform method.
The Attempt at a Solution
First I get two independent standard normals A, B.
Then I generate a correlated normal C, with unknown correlation coefficient p through a linear combination of A, B, C = pA + sqrt{1-p^2}B. To get N, I simply transform A such as N = 10 + 5A. Then I use the normal CDF to get the unif(0,1) variable corresponding with C, F(C) = U where U~unif(0,1). From inverse transform of exponential cdf, I get that E = -ln(1-U). Is this a correct approach? I am also not sure if given the information in the first two lines I could have inferred some correlation coefficient p.