Maximum Likelihood Estimation with Priors
Context
BayesiaLab can also take into account Priors when estimating parameters using Maximum Likelihood Estimation. Priors reflect any a priori knowledge of an analyst regarding the domain, in other words, expert knowledge. See also Prior Knowledge for Structural Learning. These priors are expressed with an analyst-specified, initial Bayesian network (structure and parameters) plus analyst-specified Prior Samples. Prior Samples represent the analyst’s subjective degree of confidence in the Priors.
For each fixed parent configuration , the numerator combines the observed and prior counts for state . The denominator sums those combined counts over the states of .
- is the number of prior samples and reflects the analyst’s confidence in the prior.
- is the joint probability returned by the prior Bayesian network.
- BayesiaLab uses these two terms to generate virtual samples that are subsequently combined with the observed samples from the dataset.
Of 10 prior samples, the prior model assigns 40% to parent state A. Within A it assigns 25% to X = 1. This adds one count for X = 1 and three for X = 0, moving the estimate from 80% to 64.3%.
Virtual Database Generator
- With your current Bayesian network, you can generate Priors.
- Select Menus > Data > Prior Samples > Generate.
- You can specify by setting the number of Prior Samples.

-
BayesiaLab uses the current Bayesian network to compute .
-
A Virtual Database icon appears in the lower-right corner of the Graph Window, next to the dataset icon .
-
Right-clicking on the Virtual Database icon displays the structure of the prior knowledge that was used for generating the Virtual Samples.
-
BayesiaLab combines these Virtual Samples with the observed samples during learning.
Number of Uniform Prior Samples
- Edit Number of Uniform Prior Samples allows you to define prior knowledge in such a way that all the variables are marginally independent (fully unconnected network), and the marginal probability distributions of all nodes are uniform.
- For instance, if the number of Prior Samples is set to 1, BayesiaLab distributes one observation evenly across the states of each node.
Two parent states and two child states give four cells, each receiving a quarter of a virtual observation. For parent state B, the data contain zero cases of X = 1 in five observations. The prior adds 0.25 to that cell and 0.50 across the row.
-
To apply Smoothed Probability Estimation, select Menus > Edit > Edit Number of Uniform Prior Samples.
-
Specify the number of Prior Samples.