If there are $5$ balls : $b_1, b_2, b_3, b_4, b_5$ that have been randomly arranged, what is the probability
- $1$ ball occurs between $b_1$ and $b_2$
- three balls occur between $b_1$ and $b_2$
Here is my attempt :
- There are $5!$ ways to arrange $5$ balls. $b_3$, $b_4$ or $b_5$ can be between $b_1$ and $b_2$. Therefore, the probability $1$ ball occurs between $b_1$ and $b_2$ is $$\frac{5!}{3}$$
- There are $5!$ ways to arrange $5$ balls. $b_2$, $b_3$ or $b_3,b_4$ or $b_3,b_2$ or $b_4,b_3$ or $b_2,b_4$ or $b_4,b_2$ can be between $b_1$ and $b_2$. Therefore, the probability $2$ ball occurs between $b_1$ and $b_2$ is $$\frac{5!}{6}$$
Is my logic correct ? Can this be generalized to number of probability of $n$ balls occurring between $b_1$ and $b_2$?
There are ${5\choose2}=10$ pairs of balls. Given any two slots $\{s_1,s_2\}\subset\{1,2,3,4,5\}$ the probability that these slots will be occupied by the pair $\{b_1,b_2\}$ therefore is ${1\over10}$, by symmetry.
(i) The probability that one of the pairs of slots $\{1,3\}$, $\{2,4\}$, $\{3,5\}$ is occupied by $\{b_1,b_2\}$ is ${3\over10}$.
(ii) The probability that the pair of slots $\{1,5\}$ is occupied by $\{b_1,b_2\}$ is ${1\over10}$.