Answer:
With replacement, 0.2109 = 21.09% probability that there are 2 black balls and 2 white balls in the sample.
Without replacement, 0.2116 = 21.16% probability that there are 2 black balls and 2 white balls in the sample.
Explanation:
For sampling with replacement, we use the binomial distribution. Without replacement, we use the hypergeometric distribution.
Binomial probability distribution
The binomial probability is the probability of exactly x successes on n repeated trials, and X can only have two outcomes.
![P(X = x) = C_(n,x).p^(x).(1-p)^(n-x)](https://img.qammunity.org/2022/formulas/mathematics/college/omnibtgvur9vdm50rvd627fz01ha1ay6di.png)
In which
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)
And p is the probability of X happening.
Hypergeometric distribution:
The probability of x sucesses 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 sucesses.
N is the size of the population.
n is the size of the sample.
k is the total number of desired outcomes.
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)
Sampling with replacement:
I consider a success choosing a black ball, so
![p = (50)/(150+50) = (50)/(200) = 0.25](https://img.qammunity.org/2022/formulas/mathematics/college/vjxg73wumc46gnhnuerp0al57yoyxu66iz.png)
We want 2 black balls and 2 white, 2 + 2 = 4, so
, and we want P(X = 2).
![P(X = x) = C_(n,x).p^(x).(1-p)^(n-x)](https://img.qammunity.org/2022/formulas/mathematics/college/omnibtgvur9vdm50rvd627fz01ha1ay6di.png)
![P(X = 2) = C_(4,2).(0.25)^(2).(0.75)^(2) = 0.2109](https://img.qammunity.org/2022/formulas/mathematics/college/6qcptfrrbatkodhdq3pbetuqfa0w58wsq1.png)
With replacement, 0.2109 = 21.09% probability that there are 2 black balls and 2 white balls in the sample.
Sampling without replacement:
150 + 50 = 200 total balls, so
![N = 200](https://img.qammunity.org/2022/formulas/mathematics/college/9jv21uletrzdr81nudcrqw6knghr5qbj1m.png)
Sample of 4, so
![n = 4](https://img.qammunity.org/2022/formulas/mathematics/college/k7jivgmwix2i4t1a776cxryxppl99q4bvo.png)
50 are black, so
![k = 50](https://img.qammunity.org/2022/formulas/mathematics/high-school/68klz0fi1n9l5xep61qrjodobvvl7wrj0c.png)
We want P(X = 2).
![P(X = 2) = h(2,200,4,50) = (C_(50,2)*C_(150,2))/(C_(200,4)) = 0.2116](https://img.qammunity.org/2022/formulas/mathematics/college/asqj8iec2l6okdyb0ncbyatpgprx8kwiiu.png)
Without replacement, 0.2116 = 21.16% probability that there are 2 black balls and 2 white balls in the sample.