ผลต่างระหว่างรุ่นของ "Probstat/notes/balls and bins"

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
แถว 9: แถว 9:
 
'''Question 2:''' ''What is the probability that bin 1 is empty?''
 
'''Question 2:''' ''What is the probability that bin 1 is empty?''
  
In this case, each ball only have ''n'' - 1 choices (because they have to avoid bin 1); therefore there are <math>(n - 1)^n</math> outcomes where bin 1 is empty.  Since each outcome is equally likely, the probability that bin 1 is empty is <math>\frac{(n-1)^n}{n^n}=\left(\frac{n-1}{n}\right)^n=\left(1-\frac{1}{n})^n</math>.
+
In this case, each ball only have ''n'' - 1 choices (because they have to avoid bin 1); therefore there are <math>(n - 1)^n</math> outcomes where bin 1 is empty.  Since each outcome is equally likely, the probability that bin 1 is empty is <math>\frac{(n-1)^n}{n^n} = \left(\frac{n-1}{n}\right)^n = \left(1-\frac{1}{n}\right)^n</math>.

รุ่นแก้ไขเมื่อ 03:30, 18 กันยายน 2557

This is part of probstat. The materials on this part is from this course at Berkeley.

We consider a balls-and-bins experiment where we throw n balls independently into n bins uniformly at random.

Question 1: How many possible outcomes are there?

Since each ball has n choices and their choices are independent, there are outcomes.

Question 2: What is the probability that bin 1 is empty?

In this case, each ball only have n - 1 choices (because they have to avoid bin 1); therefore there are outcomes where bin 1 is empty. Since each outcome is equally likely, the probability that bin 1 is empty is .