Sampling with replacement- or slightly different?

Hi, I'm looking for a probability distribution that describes a problem I have.

If I have a bag of blank paper slips of number N.
I choose one at random

If it is blank I colour it red and replace.
If it is already coloured I just replace it.

How form does the number of red slips (n) as a function of number of picks (as it approaches N)?
Obviously it grows fastest at the start when all the slips are blank and slows down as you try to get the few remaining.

It seems similar to sampling without replacement but in some sense there is a 'replacement'. or alteration.

Eventually I want to generalize to include three colours per round with an additional rule that I only colour with a certain probability which is different for the three colours.

Thanks for any help


Active Member
I think coupons is darn close. 'cept you sort of have some coupons already selected from the get go, ie there are already some red balls=selected coupons.


Active Member
oh it did start with all blank paper slips, for some reason thought it was mix. well i think it is case closed then pretty much.


Active Member
If you are into a little programming, it should be reasonably easy to write a recursive function P(a,b,c,n) where a, b and c are the number of colours A, B and C after n draws
P(a,b,c,n)=P(a-1,b,c,n-1)*p(choosing a at turn n-1)+P(a,b-1,c,n-1)*p(choosing b at turn n-1)+P(a,b,c-1,n-1)*p(choosing c at turn n-1)+P(a,b,c,n-1)*p(blank at turn n-1) with some suitable stopping points


Active Member
On reflection, although the last post will work, each call call itself 4 times on the level below so the stack will be enormous. It will take forever when you get n up near 20.
It should be ok for just one colour.