Inference in bayes nets Flashcards
1
Q
What is inference in bayes nets?
A
- It is answering probabilistic questions using bayes questions
- The answer is a complete joint probability distribution (Posterior distribution) over the query variables.
- Answer P(Q1, Q2, …| E1, E2)
- Answer argmax(q) P(Q1=q1, Q2=q2…|E1=e1…)
2
Q
What in inference of bayes nets what are evidence, query and hidden variables?
A
- Evidence: Variables we know the value of.
- Query: Variables we want to find the values of
- Hidden: Variables that are neither evidence or query
3
Q
What is in inference Enumeration?
A
- Finds all possibilities, adds them up and comes up with an answer
1) We take a conditional probability and turn it into unconditional probability
2) Enumerate all atomic probabilities and calculate the sum of products. Example: sumsum P(+b,+j,+m,e,a)
3) Turn the sum into the terms of the probability distribution. Example: sumsum P(+b)P(e)P(a|+b,e)P(+j,a)P(+m|a)
4
Q
How to speed up enumeration?
A
- Pull out terms that are constant in the sum:
p(+b) sum (a) p(a). This reduces the cost of doing each row in the table - Max independence
5
Q
Causal direction
A
- The bayes network is more compact and easier to infer something when it follows the causal direction
6
Q
Variable elimination
A
- It is another method for computing a bayes net.
- In practice it is faster than enumeration. But it is NP-hars
- It is about combining parts of the net into smaller parts and then use enumeration and then combine again.
1) Joining factor: A factor is one of the tables of one of the probabilities. Choose two factors and form a new factor with the joint probability of the variables.
2) Eliminatation: the new factor and reduce it buy summing out variables
7
Q
Approximate Inference Sampling
A
- Run experiments, record the results and estimate the probabilities based on the results
- It can calculate the full probability distribution
- To calculate a conditional probability use rejection sampling, that means to use only samples that work with the probability
8
Q
likelihood weighting
A
Way to produce only samples that work