In an article I'm reading the probability of an observed point falling in bin i is written as:
$P_i=\frac{m_i}{\sum\limits_j m_j}$
where $m_i$ is the number of model points in bin i. Then, the cumulative probability of obtaining the entire data set $n_i$ is written as:
$P=\prod\limits_i \left( \frac{m_i}{\sum\limits_j m_j} \right)^{n_i}$
where $n_i$ if the observed value of bin i.
My question is: how was equation 2 obtained?
Edit: this is the article in question. I didn't add much information in the question because I wanted to keep it as simple as possible. Equations in the article are (14) and (15).