How can I apply the likelihood ratio test when I have the following hypothesis for collocation discovery:
$$H_{1}: P(w^{2}|w^{1}) = p = P(w^{2}| \neg w^{1})$$ $$H_{2}: P(w^{2}|w^{1}) = p_1 \neq p_{2} = P(w^{2}| \neg w^{1})$$
Basically, $H_{1}$ describes the hypothesis that the second word ($w^{2}$) in a possible collocation is independent from the first one ($w^{1}$) and $H_{2}$ is the opposite, that the second word depends on the first one.
It's assumed that these bigrams follow a binomial distribution $$b(k;n,x) = \displaystyle \binom{n}{k}x^{k}(1-x)^{(n-k)}$$
However, the book I'm following says that the likelihood for $H_{1}$ is $$L(H_{1})=b(c_{12};c_{1},p)b(c_{2}-c_{12};N-c_{1},p)$$ and for $H_{2}$ is $$L(H_{2})=b(c_{12};c_{1},p_{1})b(c_{2}-c_{12};N-c_{1},p_{2})$$
where $c_{1}$, $c_{2}$ and $c_{12}$ is the number of occurrences of $w^{1}$, $w^{2}$ and $w^{1}w^{2}$, respectively.
Why is that the case? I understand that the likelihood is defined as $L(p, x)$ where $p$ is a given parameter and $x$ is some observation or data, which is the opposite question one would ask when dealing with a probability mass function $f(x, p)$, that is, the probability of having $x$ given some parameter $p$. Moreover, I also know that when we have a probability mass function of a series of observations $f(x_{i}, p)$ then, assuming that the observations are independent from each other, the likelihood of a parameter $p$ given those observations is $L(p, x_{i}) = \prod_{i} f(x_{i}, p) $, but I don't comprehend why the example described above apparently is multiplying the probability of getting a $w^{1}w^{2}$ and $\neg w^{1}w^{2}$ in both hypothesis. Can someone explain that to me?