由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Science版 - Problem about combinatorial probability
相关主题
Re: a probability problem, anyone can help me?Re: is this probability problem hard?
Engineering: Using 'nature's toolbox,' a DNA compRe: a dumb probability problem, please help
An optimization problemhelp!!--problem of probability
Re: 问个很土的问题(COMBINATORY DISCREPANCY?)Re: help!!--problem of probability: solution
请求帮助关于投递文章Re: 概率题!概率题!请教!
求一篇文章 (in Lecture Notes in Maths) (转载)菜鸟请教一道物理sub题
[转载] RESULTS:学Pattern recog.,data mining的注意了Re: 概率的问题是可以在本版问的吧?
赌场问题: frequentist vs. KaynesianRe: A probability problem
相关话题的讨论汇总
话题: boxes话题: problem话题: when
进入Science版参与讨论
1 (共1页)
t***r
发帖数: 3
1
Suppose m balls are put into n boxes (m>=n) such that each
ball is put with equal probaility (i.e. 1/n) independently
of one another into one of the boxes.
What is the probability that each box contains at least one
ball, i.e the probability of no empty boxes? If there is no
single-term expression, what is the best way to compute the
probability in terms of numerical accuracy? (For example,
use of inclusion-exclusion formula is highly undersirable in
this respect, since it contains substractions
d*z
发帖数: 150
2

1.The probability that the first boxes without balls is
(1-1/n)^m,
and some is the probability that the second boxes and etc.
2.The probability that the first two boxes without balls at
the same time
is (1-2/n)^m.
.....
So the result is
1-C(n,1)(1-1/n)^m + C(n,2) (1-2/n)^m-...+(-1)^k
(1-k/n)^m+...+(-1)^(n-1) (1/n)^m

【在 t***r 的大作中提到】
: Suppose m balls are put into n boxes (m>=n) such that each
: ball is put with equal probaility (i.e. 1/n) independently
: of one another into one of the boxes.
: What is the probability that each box contains at least one
: ball, i.e the probability of no empty boxes? If there is no
: single-term expression, what is the best way to compute the
: probability in terms of numerical accuracy? (For example,
: use of inclusion-exclusion formula is highly undersirable in
: this respect, since it contains substractions

d*z
发帖数: 150
3
I have thought it over and could not find a better way. Then
I test it by computer. Then I found when m is much more than
n, such as more than 2 times of n, then the accuracy of this
formula is acceptable.
#include
#include
#define N 50
double c[N+1];
int n;
void Init2()
{
c[0]=1,c[1]=2,c[2]=1;
n=2;
}
void IncreaseN()
{
int i;
c[n+1]=1;
for(i=n;i>=1;i--)
{
c[i]+=c[i-1];
}
n++;
}
void main()
{
int m;
Init2();
while(n IncreaseN();
for(m=n;m<10*n;m++)
{
int i;
double sum;
doub

【在 t***r 的大作中提到】
: Suppose m balls are put into n boxes (m>=n) such that each
: ball is put with equal probaility (i.e. 1/n) independently
: of one another into one of the boxes.
: What is the probability that each box contains at least one
: ball, i.e the probability of no empty boxes? If there is no
: single-term expression, what is the best way to compute the
: probability in terms of numerical accuracy? (For example,
: use of inclusion-exclusion formula is highly undersirable in
: this respect, since it contains substractions

d*z
发帖数: 150
4
I found a formula without subtract, but the calculation may
be time costing.
Let
U(n,1)=1 when n>=1
U(m,n)=0 when m U(n,n)=1 when n>=1
and
U(m,n)=n U(m-1,n)+U(m-1,n-1) when m>=n>=2.
Then the probability will be
U(m,n)n!/n^m.

【在 t***r 的大作中提到】
: Suppose m balls are put into n boxes (m>=n) such that each
: ball is put with equal probaility (i.e. 1/n) independently
: of one another into one of the boxes.
: What is the probability that each box contains at least one
: ball, i.e the probability of no empty boxes? If there is no
: single-term expression, what is the best way to compute the
: probability in terms of numerical accuracy? (For example,
: use of inclusion-exclusion formula is highly undersirable in
: this respect, since it contains substractions

1 (共1页)
进入Science版参与讨论
相关主题
Re: A probability problem请求帮助关于投递文章
Re: 关于概率估计的一个一般性原理的问题求一篇文章 (in Lecture Notes in Maths) (转载)
我的一个经验公式[转载] RESULTS:学Pattern recog.,data mining的注意了
Standard solution Re: [转载] 概率难题赌场问题: frequentist vs. Kaynesian
Re: a probability problem, anyone can help me?Re: is this probability problem hard?
Engineering: Using 'nature's toolbox,' a DNA compRe: a dumb probability problem, please help
An optimization problemhelp!!--problem of probability
Re: 问个很土的问题(COMBINATORY DISCREPANCY?)Re: help!!--problem of probability: solution
相关话题的讨论汇总
话题: boxes话题: problem话题: when