Answer:
0.1108 = 11.08% probability that there are exactly 3 faulty candy bars among the seven.
Explanation:
The bars are chosen without replacement, which means that the hypergeometric distribution is used to solve this question.
Hypergeometric distribution:
The probability of x successes is given by the following formula:
![P(X = x) = h(x,N,n,k) = (C_(k,x)*C_(N-k,n-x))/(C_(N,n))](https://img.qammunity.org/2022/formulas/mathematics/college/9rx8mdll3dvau07qbla1h13xgxq6bm431k.png)
In which:
x is the number of successes.
N is the size of the population.
n is the size of the sample.
k is the total number of desired outcomes.
Combinations formula:
is the number of different combinations of x objects from a set of n elements, given by the following formula.
![C_(n,x) = (n!)/(x!(n-x)!)](https://img.qammunity.org/2022/formulas/mathematics/college/mztppiaohythui2rvvokdfm636pzgsn6x6.png)
In this question:
60 total candies means that
![N = 70](https://img.qammunity.org/2022/formulas/mathematics/college/9agc06isrvctebc3g7ag3ntc5hfn92ybac.png)
12 are faulty, which means that
![k = 12](https://img.qammunity.org/2022/formulas/history/high-school/4alt9bu8ol9zcpmvoq8o6cptio4oc3h91b.png)
Seven are chosen, so
![n = 7](https://img.qammunity.org/2022/formulas/mathematics/college/aq55404rq84p2ds1153yh9qt45ecrk46dc.png)
What is the probability that there are exactly 3 faulty candy bars among the seven?
This is
. So
![P(X = x) = h(x,N,n,k) = (C_(k,x)*C_(N-k,n-x))/(C_(N,n))](https://img.qammunity.org/2022/formulas/mathematics/college/9rx8mdll3dvau07qbla1h13xgxq6bm431k.png)
![P(X = 3) = h(3,70,7,12) = (C_(12,3)*C_(48,4))/(C_(60,7)) = 0.1108](https://img.qammunity.org/2022/formulas/mathematics/college/kdqmvx9p62rj62xjzip4ndy52fx206n5jy.png)
0.1108 = 11.08% probability that there are exactly 3 faulty candy bars among the seven.