全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2561 3
2015-11-08
悬赏 30 个论坛币 已解决
如题,
Finding the sampling distribution of a Poisson distribution. Using do-loops, generate 20 samples of size n= 15 from a Poisson Distribution (ranpoi) with a mean of 3.  Use the computer clock as the seed number. Find the mean of each of your samples. (You don't have to show me this values)

用do-loops生成20组随机数,每组15个数字,并且符合柏松分布,mean=3
另外seed用电脑的时间
试了半天不知道怎么分组?
望大神解答。。。

最佳答案

sas那个石家庄人 查看完整内容

data samples; seed1=date(); do sample = 1 to 20; do i=1 to 15; call ranpoi(seed1, 3, number); output; end; end; drop i seed1; run;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-11-8 04:08:10
data samples;
seed1=date();
do sample = 1 to 20;
do i=1 to 15;
call ranpoi(seed1, 3, number);
output;
end;
end;
drop i seed1;
run;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-11-10 03:32:53
sas那个石家庄人 发表于 2015-11-10 01:43
data samples;
seed1=date();
do sample = 1 to 20;
正解。就是把date()改成time()
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2015-11-21 09:58:09
computer clock as the seed number == seed(0). Jingju
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群