Coin $i$ has probability $P_i=\frac{i}{10}$ of heads, where $i=1,...,9$. A coin is randomly chosen (each of the 9 coins is equally likely to be chosen), and the randomly chosen coin is flipped 4 times, resulting in 3 heads and 1 tail. Find the conditional probability that coin 5 was the chosen coin. Hint: Bayes rule
My Attempt:
Let's define T = getting the given flip combination
Let's define 5 = getting coin 5
Following from Bayes' Formula: $P(5 \mid T)=\frac{P(T\mid 5)P(5)}{P(T \mid 5)P(5)+P(T \mid 5^\mathsf{c})P(5^\mathsf{c})}$
$P(5^\mathsf{c})=\frac{8}{9}$
P(coin 1 getting the testing combination) $=(\frac{1}{10})^3\times\frac{9}{10}$
This is where I'm confused. Is the below correct? Because for each coin, the probability of choosing that coin is $\frac{1}{9}$, and then we multiply by the probability of getting the given combination.
$P(T and 5^\mathsf{c})=\frac{1}{9}\times[(\frac{1}{10})^3\times\frac{9}{10}+(\frac{2}{10})^3\times\frac{8}{10}+(\frac{3}{10})^3\times\frac{7}{10}+(\frac{4}{10})^3\times\frac{6}{10}+(\frac{6}{10})^3\times\frac{4}{10}+(\frac{7}{10})^3\times\frac{3}{10}+(\frac{8}{10})^3\times\frac{2}{10}+(\frac{9}{10})^3\times\frac{1}{10}]=something$
I'm very confused. Thanks for any help!