(EViews 9) A histogram of two normal random variables
Posted: Thu Oct 22, 2015 1:58 pm
I am new to the software and was directed to this forum whilst searching for help. I was wondering if anyone could help me?
Let's say that I want to generate a random sample of n observations from a distribution where X is a random variable which takes on Y1 with probability a and Y2 with probability b, where p(a)+p(b)=1.
In addition to this, both Y1 and Y2 are normally distributed. For instance, Y1~ N(3,1/5) and Y2 ~ N(2,1/4).
Could anyone tell me how I could go about doing this?
Thanks.
Let's say that I want to generate a random sample of n observations from a distribution where X is a random variable which takes on Y1 with probability a and Y2 with probability b, where p(a)+p(b)=1.
In addition to this, both Y1 and Y2 are normally distributed. For instance, Y1~ N(3,1/5) and Y2 ~ N(2,1/4).
Could anyone tell me how I could go about doing this?
Thanks.