I'm given a nucleotide counts $ \{ n_X : X \in \Omega \} $ to model a DNA sequence $y$ where $ \Omega $ denotes the DNA alphabet with an independent model.
Also we suppose that the prior density of nucleotide probabilities $ p = \{ p_X : X \in \Omega \}$ is given by a Dirichlet distribution with parameters $ \{ \beta_X : X \in \Omega \}$ and we set $n = \sum_{ \in \Omega} n_X$ and $\beta=\sum_{X\in\Omega} \beta_X$.
I derived the likelihood $f(y|p)$ to be a multinomial distribution with parameters $n$ and $p$ and then we have that $ \displaystyle f(y|p) = \frac{n!}{\prod_{X \in \Omega} n_X!} \prod_{X \in \Omega} p_X^{n_X}$ and then given that the prior has a Dirichlet distribution we also have that $\displaystyle f(p)=\frac{\Gamma(\beta)}{\prod_{X \in \Omega} \Gamma(\beta_X)} \prod_{X \in \Omega} p_X^{\beta_X-1}$ and I derived the joint density to be equal to $ \displaystyle f(y,p)= \frac{\Gamma(\beta)}{\prod_{X \in \Omega} \Gamma(\beta_X)} \frac{n!}{\prod_{X \in \Omega} n_X!}\prod_{X \in \Omega} p_X^{n_X+\beta_X-1} $
Then using the fact that on $ \Delta = \{ p_X > 0 : \sum_{ X \in \Omega} p_X = 1 \} $ we have $ \displaystyle \int_\Delta \prod_{X \in \Omega} p_X^{n_X+\beta_X-1} dp = \frac{ \prod_{X \in \Omega} \Gamma(n_X+\beta_X)}{\Gamma(n+\beta)}$ then I computed the marginal density $\displaystyle f(y) = \int_\Delta f(y,p) dp = \frac{n! \Gamma(\beta) }{\Gamma(n+\beta)} \prod_{X \in \Omega} \frac{\Gamma(n_X+\beta_X)}{\Gamma(\beta_X)n_X!} = \frac{1}{ {n+\beta-1 \choose n} } \prod_{X \in \Omega} { {n_X+\beta_X-1 \choose n_X} } $
(which seems to be the pmf of a Dirichlet-multinomial distribution if we check on wikipedia)
However in this exercise it seemed the answer should be $\displaystyle f(y)=\frac{1}{ {n+\beta \choose n} } \prod_{X \in \Omega} { {n_X+\beta_X \choose n_X} }$
Where is my mistake ?
Thanks in advance!