智游城

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

楼主: RichZhu
打印 上一主题 下一主题

对话maomaobiao:有没有用我们一生的时间都无法平衡的波动?

[复制链接]
1#
Howard 发表于 2015-12-8 22:22:57 | 显示全部楼层
今天专门查了一下这个问题。这是个one dimensional random walk的求distance

lim E(|Sn|) = sqrt(2n/π) = sqrt(n) * 0.798
n->无穷

一亿步的随机翻硬币,翻完以后rich和maomaobiao的输赢期望值应该是 0.798 × 根号一亿 = 7980

这根楼上说的直接根号一亿差了一个0.798的系数。我原来也以为就是根号一亿。
但现在还不明白证明的过程。

16楼的模拟结果表明,5次模拟里面有1次大于7980,4次小于。吻合程度比10000要好。当然数据还是有点少,还需要多做。
2#
Howard 发表于 2015-12-8 22:29:00 | 显示全部楼层
又查了一下wolfram,发现Distance ~ sqrt (2n/pi)   for large n 的证明过程及其复杂,要想搞明白可能得好几天时间,先不弄了,就记下结论好了。
3#
Howard 发表于 2015-12-9 22:55:13 | 显示全部楼层
donot 发表于 2015-12-8 17:20
涨落是用root mean square. 平均距离是mean 绝对值,所以差了个系数。

看到root mean square感觉熟悉又陌生,赶紧借此机会查一下,谢谢donot老师

The root mean square (abbreviated RMS or rms 平均平方数), also known as the quadratic mean, in statistics is a statistical measure defined as the square root of the mean of the squares of a sample


给一堆数,比如 {a,b,c,d}


rms = sqrt[1/4  *  (a^2 + b^2 + c^2 + d^2)




您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|智游城论坛

GMT+8, 2024-5-22 12:56 , Processed in 0.041072 second(s), 8 queries , Redis On.

Powered by Discuz! X3.2

© 2001-2012 Comsenz Inc.

返回顶部