Possible Permutations for Drawing with Replacement and Unordered Results

  • Thread starter Thread starter zeion
  • Start date Start date
  • Tags Tags
    Probability
AI Thread Summary
The discussion centers on understanding the equation for drawing with replacement and unordered results, specifically the formula for permutations of o's and x's. It is clarified that with k draws and n different colors, the number of o's is k and the number of x's is n - 1, leading to the expression (k + n - 1) choose (n - 1). The confusion arises when calculating combinations, particularly when attempting to compute cases like "2 choose 3," which results in a negative due to factorial of a negative number being undefined. The conclusion emphasizes that it is impossible to choose more objects than available, reinforcing the concept of combinations in this context. Understanding these principles is crucial for correctly applying the formula in similar problems.
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?
 
If you do 2 choose 3 you should get zero: How many ways are there to pick 3 objects from a set of 2?
(That's also what my "calculator" gives, how do you get a negative?)
 
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 _nC_i= \begin{pmatrix}n \\ i\end{pmatrix}= \frac{n!}{i!(n- i)!}.

For "2 choose 3" it is \frac{2!}{3!(-1)!} 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!
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Essentially I just have this problem that I'm stuck on, on a sheet about complex numbers: Show that, for ##|r|<1,## $$1+r\cos(x)+r^2\cos(2x)+r^3\cos(3x)...=\frac{1-r\cos(x)}{1-2r\cos(x)+r^2}$$ My first thought was to express it as a geometric series, where the real part of the sum of the series would be the series you see above: $$1+re^{ix}+r^2e^{2ix}+r^3e^{3ix}...$$ The sum of this series is just: $$\frac{(re^{ix})^n-1}{re^{ix} - 1}$$ I'm having some trouble trying to figure out what to...
Back
Top