Redian新闻
>
Monty Hall problem变种有解吗?
avatar
Monty Hall problem变种有解吗?# Joke - 肚皮舞运动
S*l
1
As a result of changes to federal regulations, we now require all Amazon
Payments accountholders to provide a Tax Identification Number (TIN). For
customers with Personal Accounts, your TIN is your Social Security Number.
From December 31st 2011, accounts without an associated TIN will no longer
be able to receive incoming funds. We apologize for any inconvenience this
may cause.
avatar
s*i
2
学习中! 牛人给讲讲。
avatar
r*n
3
可以用两片偏振片的墨镜叠加旋转一定角度后看,可以保护眼睛
avatar
e*t
4
帅锅老了还是帅锅。。
就是气不足了。
avatar
n*d
5
如果主办方可以在观众选门之后换后面的东西?
avatar
w*n
6
同收到
avatar
s*i
7
要真是个 cup and handle,这个牛还能跑两天。
avatar
r*o
8
或者几张胶片重叠也可以 很好看
avatar
z*e
9
我领导做的monte carlo模拟,你自己稍微改下就能验证你的想法
public class MontyHallDemo {
private static final int ITERATIONS = 1000;
private static final int TESTCOUNT = 20;
private static Random random;
public static void main(String[] args) {
for(int k = 0; k < TESTCOUNT; k++) {
int switchSuccessCount = 0;
for (int i = 0; i < ITERATIONS; i++) {
random = new Random();
int carAt = (int) (random.nextDouble() * 3); // car will be
0, 1 or 2
int initPickAt = (int) (random.nextDouble() * 3);
if (initPickAt != carAt)
switchSuccessCount++; // switch is a fail if and only if
initPick happens to be at the car
}
System.out.println("Round " + k + ": Switch success percentage:
" + switchSuccessCount * 100 / ITERATIONS + "%\n");
}
}
}
avatar
a*o
10
所有人都是么?、、、
avatar
s*n
11
瞎用。

【在 s***i 的大作中提到】
: 学习中! 牛人给讲讲。
avatar
l*0
12
我也是这么看的

【在 r****o 的大作中提到】
: 或者几张胶片重叠也可以 很好看
avatar
z*e
13
输出大概这样,每次1000个样本
Round 0: Switch success percentage: 67%
Round 1: Switch success percentage: 66%
Round 2: Switch success percentage: 66%
Round 3: Switch success percentage: 68%
Round 4: Switch success percentage: 65%
Round 5: Switch success percentage: 68%
Round 6: Switch success percentage: 66%
Round 7: Switch success percentage: 67%
Round 8: Switch success percentage: 64%
Round 9: Switch success percentage: 65%
Round 10: Switch success percentage: 65%
Round 11: Switch success percentage: 63%
Round 12: Switch success percentage: 66%
Round 13: Switch success percentage: 67%
Round 14: Switch success percentage: 66%
Round 15: Switch success percentage: 62%
Round 16: Switch success percentage: 67%
Round 17: Switch success percentage: 69%
Round 18: Switch success percentage: 64%
Round 19: Switch success percentage: 67%
avatar
a*n
14
有ssn IRS就好查税了
avatar
r*n
15
80-90% now
avatar
n*d
16
虽然我看不太懂,不过我没找到博弈的部分。

【在 z*********e 的大作中提到】
: 我领导做的monte carlo模拟,你自己稍微改下就能验证你的想法
: public class MontyHallDemo {
: private static final int ITERATIONS = 1000;
: private static final int TESTCOUNT = 20;
: private static Random random;
: public static void main(String[] args) {
: for(int k = 0; k < TESTCOUNT; k++) {
: int switchSuccessCount = 0;
: for (int i = 0; i < ITERATIONS; i++) {
: random = new Random();

avatar
b*m
17
高潮已经过了,散了吧

【在 r********n 的大作中提到】
: 80-90% now
avatar
z*e
18
// switch is a fail if and only if initPick happens to be at the car

【在 n***d 的大作中提到】
: 虽然我看不太懂,不过我没找到博弈的部分。
avatar
n*d
19
不一定,主办方可能把车换到switch后的门那了

【在 z*********e 的大作中提到】
: // switch is a fail if and only if initPick happens to be at the car
avatar
z*e
20
看帖不仔细,我都说了,你要想验证你的procedure,自己改
提供的代码就是test Monty Hall problem的

【在 n***d 的大作中提到】
: 不一定,主办方可能把车换到switch后的门那了
avatar
n*d
21
明白了,不过主办方完全可以写个一样的程序预测你的随机数模拟结果,然后反着来。

【在 z*********e 的大作中提到】
: 看帖不仔细,我都说了,你要想验证你的procedure,自己改
: 提供的代码就是test Monty Hall problem的

avatar
z*e
22
担心的话可以用SecureRandom替代Random

【在 n***d 的大作中提到】
: 明白了,不过主办方完全可以写个一样的程序预测你的随机数模拟结果,然后反着来。
avatar
n*d
23
不明白。如果不论你写什么程序主办方都可以复制,有区别吗?

【在 z*********e 的大作中提到】
: 担心的话可以用SecureRandom替代Random
avatar
z*e
24
你同样的code跑两遍拿到的伪随机数都不一样,实在不行你还可以自己生成一个长2048
位的私钥抄到自己笔记本里把你的code中间结果加密了

【在 n***d 的大作中提到】
: 不明白。如果不论你写什么程序主办方都可以复制,有区别吗?
avatar
n*d
25
不是保密性的问题。我的意思是host和你一样聪明,可以预测到你写的程序。类似下棋
。我的直觉要算极限

2048

【在 z*********e 的大作中提到】
: 你同样的code跑两遍拿到的伪随机数都不一样,实在不行你还可以自己生成一个长2048
: 位的私钥抄到自己笔记本里把你的code中间结果加密了

avatar
z*e
26
host有full information,观众是有partial information
如果host每次捣乱,那就真不是个数学问题了。

【在 n***d 的大作中提到】
: 不是保密性的问题。我的意思是host和你一样聪明,可以预测到你写的程序。类似下棋
: 。我的直觉要算极限
:
: 2048

avatar
n*d
27
host不是随便捣乱,host就是要猜你的选择然后降低你的胜率。你也要猜host怎么走。
我的直觉是有个算法,但是是不是有极限就不知道了。

【在 z*********e 的大作中提到】
: host有full information,观众是有partial information
: 如果host每次捣乱,那就真不是个数学问题了。

avatar
z*e
28
那就重新建立模型推导,这一类的问题都很成熟吧,没什么特别的
比blackjack什么的容易多了

【在 n***d 的大作中提到】
: host不是随便捣乱,host就是要猜你的选择然后降低你的胜率。你也要猜host怎么走。
: 我的直觉是有个算法,但是是不是有极限就不知道了。

avatar
n*d
29
我就是在求模型嘛

那就重新建立模型推导,这一类的问题都很成熟吧,没什么特别的

【在 z*********e 的大作中提到】
: 那就重新建立模型推导,这一类的问题都很成熟吧,没什么特别的
: 比blackjack什么的容易多了

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。