SAS中文论坛

标题: 请教各位大牛一mixture of 3 normal distribution 的问题 [打印本页]

作者: shiyiming    时间: 2009-10-14 11:08
标题: 请教各位大牛一mixture of 3 normal distribution 的问题
大牛们好,RT

菜鸟我想请教一下怎么generate a random sample of 200 observations from a mixture of 3 normal distribution of 0.5N(3,1), 0.3N(6,1.5),0.2N(10,2)

多谢多谢!!
作者: shiyiming    时间: 2009-10-15 01:40
标题: Re: 请教各位大牛一mixture of 3 normal distribution 的问题
mixture of normal for example in your case, y =0.5x1 +0.3x2 +0.2x3 where
x1 x2 x3 normally distributed.
对于x1 x2 x3 它们是互相独立的吗?很显然y不是正态的
作者: shiyiming    时间: 2009-10-15 23:17
标题: Re: 请教各位大牛一mixture of 3 normal distribution 的问题
请问x3的函数应该怎么写?
x3=10 + sqrt(2)*rannor(seed) 是否正确?
谢谢!
作者: shiyiming    时间: 2009-10-16 00:23
标题: Re: 请教各位大牛一mixture of 3 normal distribution 的问题
试了半天也没有好的办法生成那些数字。
很显然,mixture normal 是连续的多众数的分布。因为不是discrete的,所以生成起来有些麻烦。
我想,是否生成x3也不重要,因为它显然不是三段累加的。




欢迎光临 SAS中文论坛 (https://mysas.net/forum/) Powered by Discuz! X3.2