# Why can this likelihood be factored into a product of a marginal distribution and a conditional distribution?

From a paper I am reading, I do not think the meanings of the parameters matters here but I can edit if that's useful to know.

$L(\phi, \theta \mid n, \omega) = Pr(n \mid \phi,\theta)Pr(\omega \mid n, \phi, \theta)$

So the likelihood has been factored into the product of the marginal of $n$ and the conditional distribution of $\omega$ given $n$.

I haven't had much formal stats training so I'm thinking there is some pretty standard knowledge that makes it obvious why you can do this but I don't know what to search for.

I've tried messing around with the chain rule and the definition of conditional probability $Pr(A | B) = Pr(A,B) / Pr(B)$ but I can't seem to make it work out. Can I do it just using these or is there something else I need to know about?

• Rewrite the likelihood as a probability and then use $P(a,b) = P(a)P(b|a)$ Commented Dec 6, 2017 at 10:53
• Got it, thanks. My mistake was I forgot to switch the variables and the parameters around when writing the likelihood as a probability. Commented Dec 6, 2017 at 11:00

$L(\phi, \theta \mid n, \omega) = Pr(n, \omega \mid \phi, \theta) = Pr(n \mid \phi, \theta)Pr(\omega \mid n, \phi, \theta)$
using $Pr(A,B) = Pr(A)Pr(B|A)$
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0}