Possible Permutations for Drawing with Replacement and Unordered Results

  • Thread starter Thread starter zeion
  • Start date Start date
  • Tags Tags
    Probability
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 2K views
zeion
Messages
455
Reaction score
1

Homework Statement



I don't understand the equation for drawing with replacement and considering results to be unordered.

So with replacement and no attention to order all we see is the number of each color drawn. So this is represented by o's and x's where o's is the number of that color drawn and x is a separator for the next color.

If # of different colors is n and # of draws is k then # of o's is k and # of x's is n - 1.
So now I need to find all the possible permutation of this set of x's and o's.

I don't understand why it is k + n - 1 choose n - 1 (?)

(k + n - 1)! / (n - 1)! (k + n - 1 - (n - 1))! (?)



Homework Equations





The Attempt at a Solution

 
Physics news on Phys.org
I like to think of "a choose b" as "the number of ways to pick b places from a total of a".
In that case, it is easy to see if you imagine the following; suppose you have k o's and (n - 1) x's. Imagine k + n - 1 empty spots on the table, which is just enough to hold all the o's and x's. Now you can fix any order, if you pick (n - 1) places where all the x's will go. Since all the x's are indistinguishable, and the all o's are too, if you have n - 1 places for the x's the o's will have to in the remaining k places. So you want to answer the question "in how many ways can I pick n - 1 spots from the total of k + n - 1 to place my x's on?" which is -- almost by definition -- (k + n - 1) choose (n - 1)
 
So if I do something like 2 choose 3 I get a negative.
Does that mean it's impossible?
 
CompuChip said:
Ihow do you get a negative?

I think he's referring to getting the factorial of a negative number on the denominator. This is consistent with zero combinations anyway.
 
zeion said:
So if I do something like 2 choose 3 I get a negative.
Does that mean it's impossible?
The formula for "n choose i" is [itex]_nC_i= \begin{pmatrix}n \\ i\end{pmatrix}= \frac{n!}{i!(n- i)!}[/itex].

For "2 choose 3" it is [itex]\frac{2!}{3!(-1)!}[/itex] but (-1)! is undefined. It is a convention that assigns a value of 0 to it.

But the answer to your question is "yes". It should be obvious that if you only have two objects, you cannot choose three of them!