Combination With Replacement
- is the number of UNORDERED ways of selecting π items from π possible items with replacement after each selection
Formula

Formula Intuition
Click here to expand...
Suppose:
- π = 10
- π = 9
We want to figure out the number of UNORDERED ways of selecting π=9 items from π=10 possible items with replacement after each selection
In the figure below, we draw a circle for each time object #1 is sampled, then draw a separating bar, then a circle for each time object #2 is sampled, etc. Two bars next to each other mean that the corresponding object has never been sampled.
the figure above represents:
- object #1 chosen 2 times
- object #2 chosen 1 time
- object #3 chosen 0 times
- object #4 chosen 3 times
- object #5 chosen 0 times
- object #6 chosen 0 times
- object #7 chosen 2 times
- object #8 chosen 1 time
- object #9 chosen 0 times
- object #10 chosen 0 times
The resulting picture will always have:
- π circles for a sample of size π
- (π β 1) bars separating π objects
Each picture with these conditions represents an outcome. How many outcomes are there?
It is the number of allocations of π circles among (π + π β 1) slots available for them
In other words, there are (π + π - 1) distinct items and we want to choose π of them. Also, the order doesnβt matter!
Hence, hence this can be reduced to a Combination WITHOUT ReplacementΒ (π+π-1) choose (π) problem
Thereβs another way to derive the πΆπ(π,π) formula. Instead of choosing the allocations of π circles, we could choose the allocations of (π β 1) bars among (π + π - 1) slots available for them. This would result in the same formula!
