由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Quant版 - another interesting probability question
相关主题
old probability QA probability Q
[合集] probability 问题[合集] interview question (probability)
An interview question of unfair coin's stop timetoss a coin 100 times, what's the probability at least 60 of them are heads?
问一个mathproblems上的coin toss问题[合集] Probability Question
[合集] a question大家来扔硬币-an interview question
coin flip终极版A probability question
coin toss 题【Probability】Coin Problem
[合集] 一道概率题,被问倒了。[合集] a probability question
相关话题的讨论汇总
话题: coins话题: head话题: tail话题: pmatrix
进入Quant版参与讨论
1 (共1页)
h*****a
发帖数: 52
1
1. There are some unbiased coins (equal probability of having head and tail
when tossed). Initially, all the coins are tossed. The following steps are
followed after that:
- turn all the Head up coins to Tail.
- toss all the Tail up coins.
Find the probability of finding the a coin Head up after 'n' pairs of steps,
( or to frame it differently, find the number of coins with Head up) (Hint:
think in terms of ratio)
Ideas?
s*******s
发帖数: 1568
2
没懂,
每次都全部重投?
tail
steps,
Hint:
n****e
发帖数: 629
3
第二步是不包括第一步turn的那些?不然trivial啊……

tail
steps,
Hint:

【在 h*****a 的大作中提到】
: 1. There are some unbiased coins (equal probability of having head and tail
: when tossed). Initially, all the coins are tossed. The following steps are
: followed after that:
: - turn all the Head up coins to Tail.
: - toss all the Tail up coins.
: Find the probability of finding the a coin Head up after 'n' pairs of steps,
: ( or to frame it differently, find the number of coins with Head up) (Hint:
: think in terms of ratio)
: Ideas?

n****e
发帖数: 629
4
如果这样也好算吧
写个转移矩阵就可以了吧

【在 n****e 的大作中提到】
: 第二步是不包括第一步turn的那些?不然trivial啊……
:
: tail
: steps,
: Hint:

h*****a
发帖数: 52
5
对,当然不包括

【在 n****e 的大作中提到】
: 第二步是不包括第一步turn的那些?不然trivial啊……
:
: tail
: steps,
: Hint:

s*******s
发帖数: 1568
6
Markov chain?
Let Sn to be state with n heads up and P is the transition prob,
the finial distribution is Sn*P^m

【在 h*****a 的大作中提到】
: 对,当然不包括
s*******s
发帖数: 1568
7
写了个R程序,
n = 100
m = 5
p = 0.5
v1= 0:n
s0=dbinom(v1,n,p)
Pmatrix = matrix(0, nrow = n+1, ncol = n+1)
for (i in 0:n) {
v1 = 0:i
Pmatrix[i+1,1:(i+1)] = dbinom(v1,i,p)
}

for (i in 1:m) {
s0=s0%*%Pmatrix
}

E = 0;
for (i in 0:n) {
E = E + s0[i+1]*i
}

print(E)

【在 s*******s 的大作中提到】
: Markov chain?
: Let Sn to be state with n heads up and P is the transition prob,
: the finial distribution is Sn*P^m

n****e
发帖数: 629
8
呃呃呃
不能diagonalize一下然后写通式么……

【在 s*******s 的大作中提到】
: 写了个R程序,
: n = 100
: m = 5
: p = 0.5
: v1= 0:n
: s0=dbinom(v1,n,p)
: Pmatrix = matrix(0, nrow = n+1, ncol = n+1)
: for (i in 0:n) {
: v1 = 0:i
: Pmatrix[i+1,1:(i+1)] = dbinom(v1,i,p)

J****g
发帖数: 103
9
这个最后要找的不就是投n次, 次次为正面的概率吗? 还是我理解错了?

【在 s*******s 的大作中提到】
: Markov chain?
: Let Sn to be state with n heads up and P is the transition prob,
: the finial distribution is Sn*P^m

y**k
发帖数: 222
10
有意思。看一个。
p*****k
发帖数: 318
11
just need to consider one coin, since each coin is independent.
one can get (the method is outlined above):
P(H)=1/3+1/6*(-1/2)^n, P(T)=1-P(H)
with the limiting distribution {1/3,2/3} when n is large.
1 (共1页)
进入Quant版参与讨论
相关主题
[合集] a probability question[合集] a question
一个很老的题目了,大伙帮着说一下答案吧!coin flip终极版
问个题coin toss 题
[合集] 请教两个题目?[合集] 一道概率题,被问倒了。
old probability QA probability Q
[合集] probability 问题[合集] interview question (probability)
An interview question of unfair coin's stop timetoss a coin 100 times, what's the probability at least 60 of them are heads?
问一个mathproblems上的coin toss问题[合集] Probability Question
相关话题的讨论汇总
话题: coins话题: head话题: tail话题: pmatrix