Mandokir said:
I wonder what the avarage outcome of the apple problem would be if it were to be run in a computer simulation a million or so times. And could this be calculated without actually running the simulation?
I think it can be calculated instead of Monte-Carlo'ed but we might need a computer. Your request for "the average outcome" is ambiguous. You have to say precisely what that means. I suggest you develop that definition by considering what data you can actually measure from the real filters. Will you be counting the number of cells that you find in each well? Or will you do some sort of sampling of the wells? What averages will you use to summarize your data?
Whatever your definition of "average" turns out to be, I suspect that the mathematics have been studied by some specialist. But we need a precise definition in order to look it up.
Attemping to analyze the problem from first principles would begin like this:
Assume each bucketl is given a unique number i = 1,2,..100. Assume we measure the number of apples in each bucket and find there are r_i apples in bucket i. The vector of numbers r_1,r_2,...r_{100} is a vector of "occpancy numbers". The probabilty of a particular vector can be calculated as follows.
The number of ways that the 80 apples can produce the occupany numbers is;
\frac {80!} {r_1! r_2!...r_{100}! }
Each of the above ways has probability \frac {1}{ 100^{80}}.
Suppose we only care how many buckets have exactly one apple in them, not which buckets do. To find the probability that 50 of the buckets have exactly 1 apple in them and the rest of the buckets have any other number of apples, you need to add up the probabilities of the vectors of occupany numbers that meet this requirement.
A simplified example of a similar calculation is given in the last example in this PDF:
http://www.google.com/url?sa=t&rct=...sg=AFQjCNFSxiYgXEk5Y7J35bSOXeTmL4Ec8A&cad=rja
To compute the average number of buckets that have exactly 1 apple in them, you need to perform the calculation: (1)(probability exactly 1 bucket has exactly 1 apple) + (2)(probability exactly 2 buckets have exactly 1 apple) + (3)(...) + (80) (probababilty exactly 80 buckets have exactly 1 apple).
(The discussion could get confusing because the typical math example is putting "balls in cells" and you are putting "cells in wells".)