Bayesian Network Structure Learning
- Previous chapters, we know in advance the networks structure, or we decide on one. In this part, we consider learning in situations where we do not know the structure.
- Strong assumption: the data set is fully observed.
- We assume the data
are generated i.i.d from an underlying distribution , is induced by some Bayesian networks over .
- Reasons for learning
- knowledge discovery: learn the dependency structure relating variables by examining the dependencies in the learned network.
- density estimation: to estimate a statistical model of the underlying distribution
- Other method for correlations:
- statistical independence test
- BN reveals finer structure: distinguish between direct and indirect dependencies.
- Even if two events are independent, we do not expect the observed empirical distribution to satisfy independence.
- toss two coins 100 times: 27HH, 22 HT, 25 TH, 26 TT
- It is hard to be sure the true underlying model has an edge between them or not.
if 'rain' appears in the article, if not if 'football' appears in the article, otherwise. - We suspect that there is some weak connection.
- We hope for equivalence class:
- include more edges: a model contains spurious edges
- include fewer edges, we may miss dependencies. It is better, with an overly complex structure, we can still capture underlying distribution
- the decision of whether it is better to have spurious correlations or spurious independencies depends on the application.
- Data fragmentation issue
- 20 data case: 3HH, 6HT, 5TH, 6TT. First toss
, second toss - 20 instances:
, - 9 instances:
- 11 instances:
- The standard deviation of the MLE behaves as
. When we add more parents to the variable Y, the data used to estimate the CPD fragment into more bins, leaving fewer instances in each bin to estimate the parameters and reducing the quality. - In the CPD, the number of bins grows exponentially with the number of parents, so the statistical cost of adding a parent can be very large.
- 20 data case: 3HH, 6HT, 5TH, 6TT. First toss
Constraint-based structure learning
- test for conditional dependence and independence in the data
- and then find a network that best explains these dependencies and independencies.
- find the best minimal I-map for the domain.
- Build-PDAG procedure: independence tests, deviance measure
Score-based structure learning
- model selection
- hypothesis space of potential models:
- superexponential number of structures
, hard - heuristic search techniques
- superexponential number of structures
- scoring function: measure how well the model fits the observed data.
- disadvantage: they may not have an efficient and elegant solution
Maximum likelihood parameters:
- a pair
, to find both a graph and parameters that maximize the likelihood.
find the graph structure
- Score
P(\mathcal{G} | D) = \frac{P(D | \mathcal{G}) P(\mathcal{G})}
score_B(\mathcal{G} : D) = \log P(D | \mathcal{G}) + \log P(\mathcal{G})
\log P(D | \mathcal{G}) = \int_{\theta_{\mathcal{G}}} P(D | \theta_{\mathcal{G}}, \mathcal{G}) P(\theta_{\mathcal{G}} | \mathcal{G}) d\theta_{\mathcal{G}}