베르누이 분포, 이항 분포, 카테고리 분포, 다항 분포는 모두 이산 확률 분포이며 확률 질량 함수(PMF)로 정의된다.

베르누이 분포

$$ \text{Bern}(x;\theta) \triangleq \begin{cases} \theta & (x = 1) \\ 1 - \theta & (x = 0)\end{cases} $$

$$ \text{Bern}(x;\theta) = \theta^{x}(1-\theta)^{1 - x} $$

$$ \text{Bern}(x;\theta) = \theta^{(1+x) / 2}(1-\theta)^{(1 - x) / 2} $$

$$ \begin{aligned} \mathbb{E}[X] &= \theta \\ \mathbb{V}[X] &= \theta(1-\theta) \end{aligned} $$

베르누이 분포의 Maximum Likelihood Estimation

$$ \mathcal{L}(\theta) = \prod_{i=1}^{N} \theta^{x_i}(1-\theta)^{1-x_i} $$

$$ \ell(\theta) = \sum_{i=1}^{N} [x_i \log \theta + (1-x_i) \log(1-\theta)] $$

$$ \theta_{MLE} = {1 \over N} \sum_{i=1}^{N} x_i $$

이항 분포