大家好,我的问题是这样的:
重复地掷色子1枚! => 先出现5紧接着6, 先出现6紧接着6,请问哪种情况先出现(likelihood更大)
给出了:
data work.dice;
drop i;
call streaming(42);
do i=1 to10000;
x=ceil(rand('uniform')*6);
output; end; run;
every time we obtain 5/6 or 6/6 the game is restarted. using work.dice to create two datasets fivesix and sixsix, each containing a
variable numrolls (number of rolls since last restart)
which event is more likely to occur first,5/6 pair or 6/6pair?? give the probability that 5/6 is rolled before 6/6. use if then do
statement.
不胜感激!!![s:19]