找回密码
 立即注册
搜索
总共850条微博

动态微博

查看: 857|回复: 5
打印 上一主题 下一主题
收起左侧

WXC又掷硬币了

[复制链接]

158

主题

544

帖子

9110

积分

跳转到指定楼层
楼主
发表于 2006-3-8 21:30:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

假设投掷n次才第一次出现连续三次正面。问n的期望值是多少?www.ddhw.com

这题以前争论过很长时间,答案是14。(Oops!说漏了)现在问更一般的问题:www.ddhw.com

难度:+++www.ddhw.com

任给一个正反面的序列,问第一次出现这个序列时投掷次数的期望值是多少?

www.ddhw.com

 www.ddhw.com

 

  本贴由[constant]最后编辑于:2006-3-9 12:14:36  

回复

使用道具 举报

5

主题

168

帖子

1193

积分

沙发
发表于 2006-3-9 06:36:43 | 只看该作者

回复:WXC又掷硬币了


www.ddhw.com
I think what matters is the length of the sequence, not the specific string of heads or tails. We can just assume the sequence in question is 1,1,...,1, with n 1's.
At any time, we can count the number K of consecutive 1's, going back from the lastest toss. For example, after 5 tosses, the sequcence of head/tails is 1 -1 1 1 1, then  K=3. Specifically, if the lastest toss is a -1, then K = 0.
Let A_K be the expected number of more tosses needed to end the game. We have the following system of equations:
A_0 = 1/2(A_0+A_1)+1
A_1= 1/2(A_0+A_2) +1
....www.ddhw.com
A_{n-2} = 1/2(A_0+A_{n-1})+1,
A_{n-1} = 1/2(A_0+A_n) +1
A_n=0
 
n+1 unkowns, n+1 equations, and the final answer is  1/2(A_0+A_1)+1
 
 
 
 
 


 www.ddhw.com

 

  本贴由[QL]最后编辑于:2006-3-8 22:45:14  

回复 支持 反对

使用道具 举报

20

主题

300

帖子

2540

积分

板凳
发表于 2006-3-9 07:38:19 | 只看该作者

回复:WXC又掷硬币了


为什么是14?
www.ddhw.com

 
回复 支持 反对

使用道具 举报

5

主题

168

帖子

1193

积分

地板
发表于 2006-3-9 16:11:46 | 只看该作者

回复:回复:WXC又掷硬币了


www.ddhw.com
"I think what matters is the length of the sequence, not the specific string of heads or tails. We can just assume the sequence in question is 1,1,...,1, with n 1's."
Oops, wrong. So the previous solution is only for 1,1,...,1 case. For general case, the transition between states can be more complicated. 


 www.ddhw.com

 

  本贴由[QL]最后编辑于:2006-3-9 8:27:52  

回复 支持 反对

使用道具 举报

158

主题

544

帖子

9110

积分

5#
 楼主| 发表于 2006-3-9 18:11:35 | 只看该作者

就是问你呢[:D)]


  就是问你呢




回复 支持 反对

使用道具 举报

10

主题

83

帖子

868

积分

6#
发表于 2006-3-9 18:21:24 | 只看该作者

回复:回复:WXC又掷硬币了


sean gave 14 using Markov method.
Anyway it can be solved through simple reasoning similar to that of QL.www.ddhw.com

 
回复 支持 反对

使用道具 举报

24小时热帖
    一周热门
      原创摄影
        美食美文
          您需要登录后才可以回帖 登录 | 立即注册

          本版积分规则

          Archiver|手机版|珍珠湾ART

          Powered by Discuz! X3 © 2001-2013 All Rights Reserved