Answer:
0.1515 = 15.15% probability that the first two songs that play are both country songs
Explanation:
Songs are not repeated, which means that they are chosen without replacement, and the hypergeometric distribution is used.
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.
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)
His playlist contains 5 country songs, 3 alternative songs, and 4 hip-hop songs. What is the probability that the first two songs that play are both country songs?
5 + 3 + 4 = 12 total musics, which means that
![N = 12](https://img.qammunity.org/2022/formulas/mathematics/high-school/8663e241jkn7s9wgmr0h1calxvebocrjtp.png)
5 country, which means that
![k = 5](https://img.qammunity.org/2022/formulas/mathematics/college/mukvj63iuewmnaad4judhom6ihnqrrswbt.png)
First two, which means that
![n = 2](https://img.qammunity.org/2022/formulas/mathematics/college/2slxt6pjscr85i2bnnkv525k2sii5uwez9.png)
The probability is P(X = 2). 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 = 2) = h(2,12,2,5) = (C_(5,2)*C_(7,0))/(C_(12,2)) = 0.1515](https://img.qammunity.org/2022/formulas/mathematics/college/409mejq6cvmndsc08bik9olpmukujhhyc6.png)
0.1515 = 15.15% probability that the first two songs that play are both country songs