| 所在主题: | |
| 文件名: dice.pdf | |
| 资料下载链接地址: https://bbs.pinggu.org/a-771865.html | |
| 附件大小: | |
|
Two players are interested in having a game of dice. A single dice is rolled until either two consecutive unequal even numbers appears, or alternatively, a 2, followed immediately by 3. For example, a 2-4 pair is two consecutive unequal even numbers but a 2-2 pair is not. We are interested in which event is more likely to occur, a pair of two consecutive unequal even numbers, or a 2-3 pair? The players would like to investigate.
The SAS data set called dice contains the result of 10000 rolls of a dice. Every time we obtain a pair of two consecutive unequal even numbers or a 2-3 the game is restarted. Example 1 : rolling 4-6-2 counts as a 4-6 but not as a 6-2. Example 2 : rolling 4-2-3 counts as a 4-2 but not as a 2-3. Example 3 : rolling 4-2-2-3 counts as two pairs; a 4-2 and a 2-3. Example 4 : rolling 4-2-4-6 counts as two pairs; a 4-2 and a 4-6. Using the SAS data set dice, create two new SAS data sets EvenNum and TwoThree, each containing the one variable, NumRolls. The variable NumRolls indicates the number of dice rolls it took since the last restart. Submit code, and appropriate PROC for both EvenNum and TwoThree. Which event appears more likely to occur, a pair of two consecutive unequal even numbers, or a 2-3 pair? Give the probability and the mean numbers of NumRolls for the events. 对不起英文版给大家添加麻烦了。 大概就是说只要碰到2-3组合或者是非等偶数组合 游戏就会从头算起 然后放到两个不同的data set里面因为条件不一样,然后建立一个新的variable 数出每两个重启之间的筛筛数量。 请求高手帮忙啊~~~~ 想破脑袋了。。。。 |
|
熟悉论坛请点击新手指南
|
|
| 下载说明 | |
|
1、论坛支持迅雷和网际快车等p2p多线程软件下载,请在上面选择下载通道单击右健下载即可。 2、论坛会定期自动批量更新下载地址,所以请不要浪费时间盗链论坛资源,盗链地址会很快失效。 3、本站为非盈利性质的学术交流网站,鼓励和保护原创作品,拒绝未经版权人许可的上传行为。本站如接到版权人发出的合格侵权通知,将积极的采取必要措施;同时,本站也将在技术手段和能力范围内,履行版权保护的注意义务。 (如有侵权,欢迎举报) |
|
京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明