Probabilty of choosing 2 items

  • Thread starter desmond iking
  • Start date
In summary, the probability of at least one out of two items being defective when two items are chosen at random from a batch containing 90 good and 2 defective items is 0.1909. This can be calculated by finding the probability of choosing one defective item and one good item, or two defective items, without replacement. Using the equation P(defective, good) + P(good, defective) + P(defective, defective) = 0.1909 yields the correct answer. Alternatively, the probability can also be calculated by taking the complement of the probability of choosing no defective items, which is also 0.1909.
  • #1
desmond iking
284
2

Homework Statement


Two items are chosen at random from a batch of items containing 90 good and 2 defective ones.
find the probability of at least one out of two items is defective

Homework Equations


The Attempt at a Solution



P(defective , good) +P(good , defective) + P(defective , defective) =
((10/100) x (90/99)) + ((90/100) x (10/99)) + ((10/100) x (9/99))= 0.1909 (correct ans)

why can't i do on this way?
P( 1 defective , i good ) +P (2 defective) = ((2c1 x 90c1)/(92c2)) + (2c2/92c2)= 0.0452
 
Physics news on Phys.org
  • #2
desmond iking said:

Homework Statement


Two items are chosen at random from a batch of items containing 90 good and 2 defective ones.
find the probability of at least one out of two items is defective




Homework Equations





The Attempt at a Solution



P(defective , good) +P(good , defective) + P(defective , defective) =
((10/100) x (90/99)) + ((90/100) x (10/99)) + ((10/100) x (9/99))= 0.1909 (correct ans)

why can't i do on this way?
P( 1 defective , i good ) +P (2 defective) = ((2c1 x 90c1)/(92c2)) + (2c2/92c2)= 0.0452

Because you're answering a different question. You're looking to solve for 90 good and 10 defective items, as opposed to 2. Your solution would work if you account for this.
 
  • #3
desmond iking said:

Homework Statement


Two items are chosen at random from a batch of items containing 90 good and 2 defective ones.
find the probability of at least one out of two items is defective

Homework Equations


The Attempt at a Solution



P(defective , good) +P(good , defective) + P(defective , defective) =
((10/100) x (90/99)) + ((90/100) x (10/99)) + ((10/100) x (9/99))= 0.1909 (correct ans)
Did you copy the problem correctly? With denominators 100 and 99, it looks like they are saying there were 90 good and 10 defective items, not 90 good and 2 defective.

why can't i do on this way?
P( 1 defective , i good ) +P (2 defective) = ((2c1 x 90c1)/(92c2)) + (2c2/92c2)= 0.0452
First, the problem should be, as I said, 90 bad and 10 defective items. Either you or the person who put the problem in the book confused the number of defective items with the number sampled. But also, by using the same denominator, [itex]^{92}C_2[/itex], for both probabilities, drawing a bad item first and a good item second, you are assuming sampling with replacement which is clearly not intended here. Because there are two ways of choosing 1 good and 1 defective item: assuming there were 90 good items and 10 defective, so a total of 100 items, the probability of choosing a good item first is 90/100. Then there are 89 good items left and 10 bad for a total of 99 items. The probability of choosing a defective item is 10/99 so the probability of choosing a good item first then a bad item is (90/100)(10/99), the first fraction above. But you could also choose a bad item first. The probability of that is 10/100. The there are still 90 good items left and 9 bad for a total of 99 so the probability of choosing a good item second is 90/99 and the probability of choosing a bad item first, then a good item is (10/100)(90/99).

Of course, those two products, (90/100)(10/99) and (10/100)(90/99) give the same thing. What's normally done is to note that there are n! ways of ordering n items so multiply by n!. 2!= 2 so instead of (90/100)(10/99)+ (10/100)(90/99), I would write that as 2(90/100)(10/99).
 
  • #4
deleted
 
Last edited:
  • #5
deleted
 
  • #6
HallsofIvy said:
Did you copy the problem correctly? With denominators 100 and 99, it looks like they are saying there were 90 good and 10 defective items, not 90 good and 2 defective. First, the problem should be, as I said, 90 bad and 10 defective items. Either you or the person who put the problem in the book confused the number of defective items with the number sampled. But also, by using the same denominator, [itex]^{92}C_2[/itex], for both probabilities, drawing a bad item first and a good item second, you are assuming sampling with replacement which is clearly not intended here. Because there are two ways of choosing 1 good and 1 defective item: assuming there were 90 good items and 10 defective, so a total of 100 items, the probability of choosing a good item first is 90/100. Then there are 89 good items left and 10 bad for a total of 99 items. The probability of choosing a defective item is 10/99 so the probability of choosing a good item first then a bad item is (90/100)(10/99), the first fraction above. But you could also choose a bad item first. The probability of that is 10/100. The there are still 90 good items left and 9 bad for a total of 99 so the probability of choosing a good item second is 90/99 and the probability of choosing a bad item first, then a good item is (10/100)(90/99).

Of course, those two products, (90/100)(10/99) and (10/100)(90/99) give the same thing. What's normally done is to note that there are n! ways of ordering n items so multiply by n!. 2!= 2 so instead of (90/100)(10/99)+ (10/100)(90/99), I would write that as 2(90/100)(10/99).
sorry . it should be 10 defective ones, do you mean 92C2 is for replacement case? which means after I pick 1 item out of 92 items , then when i choose the 2nd item, i still have 92 options , which means the first ball chosen is put back ?

can i do on this way?
(10C1 x 9C1)/100C2) +( 10C2/100C2) = 0.1909 , but by doing so , i am assuming , the selection is with replacement am i right? but suprisingly, i also gt the same ans
 
  • #7
If ##X \in \left\{0,1,2\right\}## is the number of defective items chosen, then one way to obtain the answer is to simply compute ##P(X \geq 1) = 1 - P(X < 1) = 1 - P(X=0)##. This is quite a standard practice employed when you see the words 'at least'.
 
  • #8
desmond iking said:
sorry . it should be 10 defective ones, do you mean 92C2 is for replacement case? which means after I pick 1 item out of 92 items , then when i choose the 2nd item, i still have 92 options , which means the first ball chosen is put back ?

can i do on this way?
(10C1 x 9C1)/100C2) +( 10C2/100C2) = 0.1909 , but by doing so , i am assuming , the selection is with replacement am i right? but suprisingly, i also gt the same ans

This is a problem involving the hypergeometric distribution; it is something you will see over and over again, so is worth learning about once and for all. You already have the germ of the idea in some of your workings.

If you have a population of ##N_1## items of type 1 and ##N_2## items of type 2 (with ##N = N_1 + N_2## items altogether), say you pick ##n## items at random without replacement. Then the probability of having ##k## type-1 items in your sample is
[tex] P\{ k\: \text{ type 1 }\} = \frac{{N_1 \choose k} {N_2 \choose n-k}}{{N \choose n}}= \frac{_{N_1}C_k \, \times \, _{N_2}C_{n-k}}{_NC_n} [/tex]
This is not hard to get: what is the probability of 11...122...2 in that specific order (with k type 1s and n-k type 2s)? Well, it is
[tex] p = \frac{N_1}{N} \frac{N_1 - 1}{N-1} \cdots \frac{N_1 - k+1}{N - k+1}
\frac{N_2}{N-k} \frac{N_2-1}{N-k-1} \cdots \frac{N_2 - (n-k)+1}{N- n+1} [/tex]
The probability of any other string of k 1s and (n-k)2s is the same; so for example, the probability of 1221...122211...2 is also p, etc. This is because for each such string, when we compute the probability we have numerators ##N_1, N_1-1, \ldots, N_1 - k+1## and ##N_2, N_2 -1 , \ldots, N_2 - (n-k)+1## all multiplied together in some order, and we have denominators ##N, N-1, \ldots N-n+1## all multiplied together. So, the total numerators and denominators are the same, hence the probability is p. So, to get the probability of k type Is we need only multiply p by the number of different strings of k 1s and n-k 2s, which is ##_nC_k##. By manipulation, you end up with the formula given above.

For more details about the hypergeometric distribution, see, eg.,
http://en.wikipedia.org/wiki/Hypergeometric_distribution or
http://www.math.uah.edu/stat/urn/Hypergeometric.html
 

Related to Probabilty of choosing 2 items

1. What is the probability of choosing 2 items from a set?

The probability of choosing 2 items from a set depends on the size of the set and the method of selection. If the items are chosen randomly with replacement, the probability is simply (1/n)^2, where n is the size of the set. If the items are chosen randomly without replacement, the probability is (n-1)/n * (n-2)/(n-1), or (n-2)/n, as the first item has n-1 possible choices and the second item has n-2 possible choices.

2. How does the number of items in a set affect the probability of choosing 2 items?

The number of items in a set directly affects the probability of choosing 2 items. As the size of the set increases, the probability of choosing any specific 2 items decreases. This is because there are more possible combinations of 2 items within a larger set, making it less likely for any specific 2 items to be chosen.

3. Can the probability of choosing 2 items be greater than 1?

No, the probability of choosing 2 items cannot be greater than 1. This is because probability is defined as a number between 0 and 1, with 0 representing impossibility and 1 representing certainty. Therefore, the probability of choosing 2 items must be a decimal less than or equal to 1.

4. How does the method of selection affect the probability of choosing 2 items?

The method of selection can greatly affect the probability of choosing 2 items. If the items are chosen randomly with replacement, the probability will remain the same for each selection, as each item has an equal chance of being chosen. However, if the items are chosen randomly without replacement, the probability will change with each selection, as the number of possible choices decreases with each item chosen.

5. How can the probability of choosing 2 items be calculated?

The probability of choosing 2 items can be calculated using the formula P = (n-1)/n * (n-2)/(n-1), where n is the size of the set. This formula is used for randomly choosing 2 items without replacement. For randomly choosing 2 items with replacement, the formula is P = (1/n)^2. It is important to note that these formulas assume that all items in the set are equally likely to be chosen.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
4
Views
2K
Replies
2
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
3K
  • Calculus and Beyond Homework Help
Replies
19
Views
6K
  • Calculus and Beyond Homework Help
Replies
1
Views
4K
  • Precalculus Mathematics Homework Help
Replies
4
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
4K
Replies
6
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • General Math
Replies
2
Views
2K
Back
Top