Skip to Content
BayesiaLabKey ConceptsMaximum Likelihood Estimation

Maximum Likelihood Estimation

Context

BayesiaLab estimates the parameters of a Bayesian network using Maximum Likelihood Estimation. For a node without parents, the estimate is the observed relative frequency of the state. For a node with parents, the estimate is the relative frequency within a given parent configuration.

Example

Let’s consider this simple network:

Loading SVG...

Maximum Likelihood Estimation

Let Pa\mathrm{Pa} denote the parents of XX, and let pak\mathrm{pa}_k be one configuration of those parents. Its marginal probability is estimated as follows.

P^(Pa=pak)=N(Pa=pak)∑ℓN(Pa=paℓ)\widehat{P}(\mathrm{Pa}=\mathrm{pa}_k) = \frac{N(\mathrm{Pa}=\mathrm{pa}_k)}{\sum_\ell N(\mathrm{Pa}=\mathrm{pa}_\ell)}

where N(⋅)N\left( \cdot \right) represents the number of occurrences of the specified configuration in the dataset.

For the conditional probability of state xix_i, sum over the states of XX while holding the parent configuration pak\mathrm{pa}_k fixed.

P^(X=xi∣Pa=pak)=N(X=xi,Pa=pak)∑jN(X=xj,Pa=pak)\widehat{P}(X=x_i \mid \mathrm{Pa}=\mathrm{pa}_k) = \frac{N(X=x_i,\mathrm{Pa}=\mathrm{pa}_k)}{\sum_j N(X=x_j,\mathrm{Pa}=\mathrm{pa}_k)}
Loading SVG...

Each dot is one observation. Select the row for the observed parent state, then divide the number of teal dots by the total number of dots in that row.