Combination/Permutation question Why is my answer wrong?

  • Thread starter tamintl
  • Start date
In summary: Those 100 ways to select the digits can be broken down into four categories, as follows (I'll show you just two of them):Type 1: two even digits + two odd digits: there are 10*9 ways to choose the two even digits and 8*7 ways to choose the two odd digits, making 10*9*8*7 ways to choose the four digits. But this counts each way twice, so the number of ways is 10*9*8*7/2 ways to choose the four digits in this category.Type 2: three even digits + one odd digit: there are 10*9*8 ways to choose the three even digits and 8 ways to
  • #1
tamintl
74
0

Homework Statement


Four numbers are chosen independently at random, with replacement, from the set {1,2,3,4,5,6,7,8,9,10}

Let A be the event that the four numbers are distinct.

Let B be the event that exactly two of them are even.

Calculate P(A) and P(B)

Homework Equations





The Attempt at a Solution



This is easy but I don't know why I am getting the worng answer..

P(A) = (10C1).(9C1).(8C1).(7C1) / (10C1).(10C1).(10C1).(10C1) = 5040/10000 = 0.504 THIS IS CORRECT...

Now for the dodgy one. My attempt:

P(B) = (5C1).(5C1).(5C1).(5C1) / (10C1).(10C1).(10C1).(10C1) = 1/16 = 0.0625

I have the solution and it tells me that P(B) is wrong.. I know what I have missed out but I feel I have done everything needed.
The actual solution is: (4C2).(5C1).(5C1).(5C1).(5C1) / (10C1).(10C1).(10C1).(10C1) = ...

Thanks for any help!
 
Physics news on Phys.org
  • #2
I would do P(A) in a different way: The first number to be drawn can be anything at all. But in order that all 4 be distinct, the second drawn must one of the 9 remaining numbers. The probability of that is 9/10. The third number drawn must not be either of those but one of the 8 remaining numbers. The probability of that is 8/10. Finally, the fourth number drawn must not be any of those three but one of the 7 remaining numbers. The probability of that is 7/10. So the probability of those things happening is (9/10)(8/10)(7/10)= 504/1000= .504.

As for B, the "4C2" is there because "tw0 even out of 4 numbers" can done in 4C2 different orders.

Again, I would have done it differently: you have 10 numbers, 5 even, 5 odd so the probability of drawing an even number is 1/2. The probability of drawing "even, even, odd, odd", in that order, is [itex](1/2)^4= 1/16[/itex]. But there are 4C2= 4!/(2!)(2!)= 6 diferent "orders" or permutations of "even, even, odd, odd" so the probability of two even and 2 odd, in any order, is 6/16= 3/8.
 
  • #3
tamintl said:

Homework Statement


Four numbers are chosen independently at random, with replacement, from the set {1,2,3,4,5,6,7,8,9,10}

Let A be the event that the four numbers are distinct.

Let B be the event that exactly two of them are even.

Calculate P(A) and P(B)

Homework Equations





The Attempt at a Solution



This is easy but I don't know why I am getting the worng answer..

P(A) = (10C1).(9C1).(8C1).(7C1) / (10C1).(10C1).(10C1).(10C1) = 5040/10000 = 0.504 THIS IS CORRECT...

Now for the dodgy one. My attempt:

P(B) = (5C1).(5C1).(5C1).(5C1) / (10C1).(10C1).(10C1).(10C1) = 1/16 = 0.0625

I have the solution and it tells me that P(B) is wrong.. I know what I have missed out but I feel I have done everything needed.
The actual solution is: (4C2).(5C1).(5C1).(5C1).(5C1) / (10C1).(10C1).(10C1).(10C1) = ...

Thanks for any help!

P{A} can be obtained more simply (as HallsofIvy has already pointed out). I would get P{B} by noting that you have two groups of numbers E={2,4,6,8,10} and O={1,3,5,7,9}, each of which has probability 1/2 of being selected at each drawing. You want the probability of getting 2E's in 4 trials, which is just like the probability of getting two heads in 4 tosses of a fair coin.

RGV
 
  • #4
Thanks for that! I see where you guys are coming from using the nicer notation..

Here's my next attemt.. Again I don't see where I am going wrong..

Find P(A n B) = P(A and B) = P(Distinct and exactly 2 even) ... ?

Okay so. Here's my attempt: P(one even #) = 5/10, P(second even #) = 4/9, P(first odd #) = 5/8 since there are still 5 odd numbers remaining after taking out 2 even ones which we have chosen.. , P(second odd #) = 4/7

Therefore P(A and B) = (1/2)(4/9)(5/8)(4/7) BUT since it can be in any order we must multiply by 4C2

Hence: 4C2(1/2)(4/9)(5/8)(4/7) = 10/21

which is wrong :( gahhh i get what your saying and i know this is easy.. What have i done now..

regards jack
 
  • #5
tamintl said:
Thanks for that! I see where you guys are coming from using the nicer notation..

Here's my next attemt.. Again I don't see where I am going wrong..

Find P(A n B) = P(A and B) = P(Distinct and exactly 2 even) ... ?

Okay so. Here's my attempt: P(one even #) = 5/10, P(second even #) = 4/9, P(first odd #) = 5/8 since there are still 5 odd numbers remaining after taking out 2 even ones which we have chosen.. , P(second odd #) = 4/7

Therefore P(A and B) = (1/2)(4/9)(5/8)(4/7) BUT since it can be in any order we must multiply by 4C2

Hence: 4C2(1/2)(4/9)(5/8)(4/7) = 10/21

which is wrong :( gahhh i get what your saying and i know this is easy.. What have i done now..

regards jack

P{B & A} = P{B|A}*P{A}. GIVEN A the problem looks like one of choosing without replacement, so P{B|A| = prob of 2E's in 4 samples drawn *without* replacement. You need the Hypergeometric distribution in this case.

RGV
 
  • #6
In P(A and B) the event is that the four digits are distinct and exactly two of the digits are even. One way to get that is to choose the even digits first, then the two odd digits. The probability that the first digit is even is 5/10= 1/2. Given that happens, the second digit can be any of the remaining 4 even digits out of the 9 remaining digits: probability 4/9. Now we have 8 digits remaining, 3 even and 5 odd. The probability that the third digit is odd is not 5/8. Then the probability the last digit is odd is 4/7. The probability of "even, even, odd, odd" in that order is (1/2)(4/9)(5/8)(4/7).

But now there are [itex]_4C_2= 6[/itex] different orders in which two even and two odd digits can occur so the probability is 6(1/2)(4/9)(5/8)(4/7)= 10/21
 
  • #7
You need to choose two even digits, and you have five to choose from. How many ways can you do that? Similarly, calculate the number of ways you can select the odd digits. You should find there are 100 ways to select the four digits.

Now take into account the number of ways you can select a particular combination in the four draws, e.g. 1234 vs. 1243 vs. 1324, etc.

Then put it all together. How many ways can you select four digits that satisfy the criteria?
 
  • #8
Ray Vickson said:
P{B & A} = P{B|A}*P{A}. GIVEN A the problem looks like one of choosing without replacement, so P{B|A| = prob of 2E's in 4 samples drawn *without* replacement. You need the Hypergeometric distribution in this case.

RGV

The above is wrong. I am trying to edit or remove it, but there seems to no longer be an edit or delete button. So, here is the revision: P{B & A} = P{A}*P{B|A}. Given A the problem is similar to that giving the hypergeometric distribution, the difference being that items are replaced, but previously-drawn items are disallowed. So, for example, P{EEOO|A} = (5/10)(4/10)(5/10)(4/10), and each string of 2Es and 2Os has this same probability. So, P{B|A} = C(4,2)*(1/2)^2 *(4/10^2.

RGV
 
  • #9
tamintl said:
Find P(A n B) = P(A and B) = P(Distinct and exactly 2 even) ... ?

Okay so. Here's my attempt: P(one even #) = 5/10, P(second even #) = 4/9, P(first odd #) = 5/8 since there are still 5 odd numbers remaining after taking out 2 even ones which we have chosen.. , P(second odd #) = 4/7

Therefore P(A and B) = (1/2)(4/9)(5/8)(4/7) BUT since it can be in any order we must multiply by 4C2

Hence: 4C2(1/2)(4/9)(5/8)(4/7) = 10/21

which is wrong :( gahhh i get what your saying and i know this is easy.. What have i done now..

regards jack
In this approach, you're calculating the probability when the digits are selected without replacement. You were asked to find the probability when the digits are selected with replacement. So you should have P(second even) = 4/10, not 4/9, since you still have 10 digits to choose from, and so on.

Note that this approach or the counting approach I outlined above will give you the same result. It's useful to be able to see how to solve the problem both ways. I often try to solve this type of problem multiple ways to make sure I'm not screwing it up.
 
Last edited:

Related to Combination/Permutation question Why is my answer wrong?

1. What is the difference between combination and permutation?

Combination and permutation are both ways of arranging a set of objects, but they differ in one key aspect: order. In a combination, the order of the objects does not matter, while in a permutation, the order does matter. For example, in a combination of three letters from the alphabet, ABC and CAB would be considered the same combination, while in a permutation they would be different.

2. How do I know whether to use combination or permutation in a problem?

The key factor in determining whether to use combination or permutation is whether order matters in the given scenario. If the order of the objects does not affect the outcome, use combination. If the order of the objects does affect the outcome, use permutation.

3. Why do I keep getting the wrong answer when solving a combination or permutation problem?

There are a few common mistakes that can lead to incorrect answers in combination and permutation problems. Some possible reasons include: forgetting to account for repetitions, not using the correct formula, or not considering all possible combinations/permutations. It is important to double check your work and make sure you are following the correct steps.

4. Can I use a calculator to solve combination and permutation problems?

Yes, there are calculators that have functions specifically for solving combination and permutation problems. However, it is important to understand the concept and formulas behind these calculations in order to use the calculator effectively and to check your answers.

5. Are there real-world applications for combination and permutation?

Yes, combination and permutation are used in various fields such as mathematics, computer science, and statistics. In real-world scenarios, they can be used to solve problems related to probability, counting, and data analysis.

Similar threads

  • Programming and Computer Science
Replies
1
Views
1K
Replies
2
Views
3K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
Replies
6
Views
2K
  • Precalculus Mathematics Homework Help
Replies
2
Views
4K
  • Precalculus Mathematics Homework Help
Replies
4
Views
4K
  • Precalculus Mathematics Homework Help
2
Replies
59
Views
4K
  • Calculus and Beyond Homework Help
Replies
8
Views
1K
  • Precalculus Mathematics Homework Help
Replies
9
Views
4K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
Back
Top