c********q 发帖数: 18 | 1 如题,
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用电脑的时间
试了半天不知道怎么分组?
望解答。。 | H********8 发帖数: 1 | 2 %macro play;
%do i=1 %to 3;
data poi&i;
do j = 1 to 15;
seed=int(time());
values=ranpoi(seed, 3);
output;
end;
drop seed j;
run;
%end;
%mend;
loops,
with
【在 c********q 的大作中提到】 : 如题, : 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用电脑的时间 : 试了半天不知道怎么分组? : 望解答。。
|
|