βˆ‘GateAndNet
PlannerSign Up
ADVANCEDFrequently Tested 4 min read 3 views

First-Order Logic Resolution, Bayesian Networks, D-Separation & Markov Blankets

Skolemization, Most General Unifier (MGU) & Robinson Resolution Refutation in FOL, Bayesian Network parameter savings, V-structures (Explaining Away), D-separation rules, and Markov Blankets.

1. First-Order Predicate Logic: Skolemization, Unification & Resolution

To prove KB⊨αKB \models \alpha by Resolution Refutation, convert KB∧¬αKB \land \lnot \alpha into Conjunctive Normal Form (CNF) and derive the empty clause β–‘\square:

  1. Skolemization Trap: Existential quantifier βˆƒy\exists y inside universal scope βˆ€xβ€‰βˆƒy P(x,y)\forall x \, \exists y \, P(x, y) must be replaced by a Skolem function P(x,f(x))P(x, f(x)) β€” NOT a Skolem constant cc (which would correspond to βˆƒyβ€‰βˆ€x P(x,y)\exists y \, \forall x \, P(x, y)!).
  2. Unification (MGU) & Occurs Check: Unifying P(x,f(y))P(x, f(y)) and P(g(z),x)P(g(z), x) gives substitution ΞΈ={x/g(z),β€…β€Šf(y)… }\theta = \{x / g(z), \; f(y) \dots\} β€” wait: xx unifies with g(z)g(z) AND f(y)f(y), which fails if fβ‰ gf \neq g! And unifying P(x)P(x) with P(f(x))P(f(x)) fails the Occurs Check (xx appears inside f(x)f(x)).
  3. Decidability: Propositional Logic entailment is Decidable (co-NP-complete); First-Order Logic entailment is Semi-Decidable (Resolution is refutation-complete: halts iff KB⊨αKB \models \alpha, may loop forever if KB⊭αKB \not\models \alpha).

2. Bayesian Networks & The 3 Canonical D-Separation Triples

Whether path Xβˆ’Zβˆ’YX - Z - Y is active or blocked given observed evidence set EE is tested on every GATE DA & UGC NET AI paper:

Canonical MotifStructureWhen Zβˆ‰EZ \notin E (Unobserved)When Z∈EZ \in E (Observed)
Causal ChainXβ†’Zβ†’YX \to Z \to YActive (XβŠ₯ΜΈYX \not\perp Y)Blocked (XβŠ₯Y∣ZX \perp Y \mid Z)
Common Cause (Fork)X←Zβ†’YX \leftarrow Z \to YActive (XβŠ₯ΜΈYX \not\perp Y)Blocked (XβŠ₯Y∣ZX \perp Y \mid Z)
Common Effect (V-Structure / Collider)Xβ†’Z←YX \to Z \leftarrow YBlocked (XβŠ₯YX \perp Y marginally!)ACTIVE! (XβŠ₯ΜΈY∣ZX \not\perp Y \mid Z or any descendant of ZZ in EE)
Common Exam Mistake

Explaining Away (V-Structure Reversal!): Suppose Burglaryβ†’Alarm←Earthquake\text{Burglary} \to \text{Alarm} \leftarrow \text{Earthquake}. Marginally, BurglaryβŠ₯Earthquake\text{Burglary} \perp \text{Earthquake}. The instant you observe Alarm=True\text{Alarm} = \text{True} (or JohnCalls=True\text{JohnCalls} = \text{True}, a descendant of Alarm\text{Alarm}), Burglary\text{Burglary} and Earthquake\text{Earthquake} become conditionally dependent! Observing an earthquake explains away the alarm and lowers P(Burglary∣Alarm,Earthquake)P(\text{Burglary} \mid \text{Alarm}, \text{Earthquake}).

Key Formulas Summary
Bayesian Network Chain Rule Factorization
P(X1,X2,…,Xn)=∏i=1nP(Xiβ€…β€Šβˆ£β€…β€ŠParents⁑(Xi))P(X_1, X_2, \dots, X_n) = \prod_{i=1}^{n} P\big(X_i \;\big|\; \operatorname{Parents}(X_i)\big)
Note: For binary variables with <= k parents each: O(n * 2^k) parameters instead of 2^n - 1 full joint entries!
Markov Blanket of Node X in a Directed Graphical Model (Bayes Net)
MB⁑(X)=Parents⁑(X)β€…β€Šβˆͺβ€…β€ŠChildren⁑(X)β€…β€Šβˆͺβ€…β€ŠCo-Parents⁑(X)\operatorname{MB}(X) = \operatorname{Parents}(X) \;\cup\; \operatorname{Children}(X) \;\cup\; \operatorname{Co-Parents}(X)
Note: Given MB(X), node X is conditionally independent of ALL other nodes in the entire network!
#Artificial Intelligence#First-Order Logic#Unification#Bayesian Networks#D-Separation#GATE DA

Practice Questions on This Chapter (3)

Q1GATE DA Bayes NetMCQMEDIUM
+2M β€’ -0.67

Consider a Bayesian Network over 55 binary random variables with structure Aβ†’C←BA \to C \leftarrow B and Cβ†’D,β€…β€ŠCβ†’EC \to D,\; C \to E. How many independent probability parameters are required to specify all Conditional Probability Tables (CPTs)?

⚑ Click an option above to verify instantly
Q2GATE DA Bayes NetMCQMEDIUM
+2M β€’ -0.67

In the collider (V-structure) Bayesian Network Xβ†’Z←YX \to Z \leftarrow Y with child Zβ†’WZ \to W, under which conditioning set are XX and YY guaranteed conditionally independent?

⚑ Click an option above to verify instantly
Q3UGC NET / GATE FOLMCQMEDIUM
+2M β€’ -0.67

What is the Most General Unifier (MGU) of the two First-Order Logic atomic literals P(f(x),β€…β€Šy)P(f(x),\; y) and P(f(g(z)),β€…β€Šg(x))P(f(g(z)),\; g(x))?

⚑ Click an option above to verify instantly
Previous TopicInformed Search (A*, IDA*), Adversarial Game Trees & CSP Arc Consistency (AC-3)Next Topic Markov Decision Processes (MDP), Bellman Equations & Q-Learning (RL)