Bayesian Networks and Probabilistic Inference Short Notes for Gate Da
Bayesian Networks and Probabilistic Inference short notes for GATE DA: 2 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practi
Bayesian Networks and Probabilistic Inference short notes
Factorization Decoding: In P(A∣B,C), B and C are parents of A.
Path Blocking Rules (d-separation basics)
Structure
Pattern
Marginally (Unobserved)
Conditioned on Middle Node
Chain
A→B→C
Dependent
Independent (Blocked)
Fork
A←B→C
Dependent
Independent (Blocked)
Collider
A→B←C
Independent (Blocked)
Dependent (Active)
Final Exam Checks
Did I correctly identify all parents from the factorization equation?
Did I check for colliders on the path? (Remember: conditioning on a collider creates dependence).
Are there multiple paths between the variables? (All must be blocked for independence to hold).
Try a question
Answer it here to see how it works. Nothing is recorded until you sign in.
Question 1
Level 1: Warm-up
A Bayesian network consists of n boolean variables. If the network structure is such that every node has at most k boolean parents, what is the minimum number of independent parameters required to specify the full joint distribution using this network?
Question 2
Level 1: Warm-up
A Bayesian network has 6 boolean variables. Each node has at most 2 boolean parents. How many independent parameters are saved compared to specifying the full joint distribution?
Question 3
Level 1: Warm-up
After summing out the hidden variables in a Bayesian network inference, the following unnormalised values are obtained for a boolean query variable A:
ϕ(A=true)=0.15,ϕ(A=false)=0.35.
Find the value of P(A=true∣e), rounded to two decimal places.
Question 4
Level 1: Warm-up
Match each Bayesian network structure in Column I with its correct joint probability factorization in Column II. All variables are boolean.
Column I
(P) A→B→C
(Q) A←B→C
(R) A→B←C
Column II
(1) P(A)P(C)P(B∣A,C)
(2) P(B)P(A∣B)P(C∣B)
(3) P(A)P(B∣A)P(C∣B)
Select the correct matching.
Question 5
Level 1: Warm-up
Consider a node X in a Bayesian network. The node X can take r possible values, and it has k parent nodes, each of which can take d possible values. What is the maximum number of independent parameters required to fully specify the Conditional Probability Table (CPT) for X?
Question 6
Level 1: Warm-up
Consider the following Assertion and Reason regarding computing marginal probabilities in a Bayesian network.
Assertion (A): To compute the marginal probability P(A) where B and E are the parent nodes of A, we use the formula P(A)=∑b∑eP(A∣b,e)P(b)P(e).
Reason (R): The marginal probability is obtained by normalizing the joint distribution P(A,B,E) by dividing it by the evidence probability P(A).
Options:
Question 7
Level 1: Warm-up
A Conditional Probability Table (CPT) for a node X requires 24 independent parameters. The node X can take 4 possible values, and each of its parent nodes can take 2 possible values. How many parent nodes does X have?
Question 8
Level 1: Warm-up
Match each node configuration in Column I with the number of independent parameters required to specify its Conditional Probability Table in Column II.
Column I
(P) A boolean node with 3 boolean parents
(Q) A node with 3 possible values and 2 boolean parents
(R) A node with 4 possible values and 1 parent with 3 possible values
(S) A boolean node with 4 boolean parents
Column II
(1) 8
(2) 9
(3) 16
(4) 32
Select the correct matching.
Question 9
Level 1: Warm-up
After summing out the hidden variables in a Bayesian network inference, the unnormalized values for a boolean query variable Q are found to be ϕ(Q=true)=0.4 and ϕ(Q=false)=0.1.
Find the value of the normalization constant α required to compute P(Q∣e), rounded to two decimal places.
Question 10
Level 1: Warm-up
Match each canonical graph structure in Column I with the truth value of the conditional independence statement X⊥Y∣Z in Column II.
Column I
(P) Chain: X→Z→Y
(Q) Fork: X←Z→Y
(R) Collider: X→Z←Y
Column II
(1) True (Path is blocked by conditioning on Z)
(2) True (Path is blocked by conditioning on Z)
(3) False (Path is activated by conditioning on Z)
Select the correct matching.
Free preview ends here
Login to view the complete short notes
Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.
Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.
Built around you, not around a syllabus PDF
Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.
Revision that hits your weak spots
We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.
Questions calibrated to the real exam
Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.
Notes written for recall, not for volume
Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.
One place for everything
Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.
Honest progress
No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.
Unlock the whole course
Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.
Bayesian Networks and Probabilistic Inference Short Notes for GATE DA
Bayesian Networks and Probabilistic Inference short notes for GATE DA: 2 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice questions.
Factorization Decoding: In P(A∣B,C), B and C are parents of A.
Path Blocking Rules (d-separation basics)
Structure
Pattern
Marginally (Unobserved)
Conditioned on Middle Node
Chain
A→B→C
Dependent
Independent (Blocked)
Fork
A←B→C
Dependent
Independent (Blocked)
Collider
A→B←C
Independent (Blocked)
Dependent (Active)
Final Exam Checks
Did I correctly identify all parents from the factorization equation?
Did I check for colliders on the path? (Remember: conditioning on a collider creates dependence).
Are there multiple paths between the variables? (All must be blocked for independence to hold).
Bayesian Networks and Probabilistic Inference: Solved Questions with Step-by-Step Explanations (10 Problems)
Question 1 · Artificial IntelligenceMCQ
A Bayesian network consists of n boolean variables. If the network structure is such that every node has at most k boolean parents, what is the minimum number of independent parameters required to specify the full joint distribution using this network?
A.
2n−1
B.
n×2k
C.
n×2k−1
D.
2n−k
Correct Answer:
B
Step-by-Step Solution
Key idea: This is a contradiction question highlighting the parameter reduction achieved by Bayesian networks compared to the full joint distribution.
Step 1: Without a network, the full joint distribution of n boolean variables requires 2n−1 parameters.
Step 2: With a Bayesian network, the joint distribution is factorized into n conditional probability tables (CPTs).
Step 3: Each node has at most k boolean parents. The number of independent parameters for each node's CPT is 2k×(2−1)=2k.
Step 4: Summing over all n nodes, the total number of independent parameters is n×2k.
Answer: B
Question 2 · Artificial IntelligenceMCQ
A Bayesian network has 6 boolean variables. Each node has at most 2 boolean parents. How many independent parameters are saved compared to specifying the full joint distribution?
A.
39
B.
33
C.
45
D.
51
Correct Answer:
A
Step-by-Step Solution
Key idea: Full joint needs 2n−1 parameters; Bayesian network needs n×2k parameters (where k is max parents per node).
Step 1: Compute parameters for full joint distribution.
For n=6 boolean variables:
Full joint parameters=2n−1=26−1=64−1=63
Step 2: Compute parameters for Bayesian network.
Each of the 6 nodes has at most 2 boolean parents. For a boolean node with k boolean parents, independent parameters = 2k×(2−1)=2k.
BN parameters=n×2k=6×22=6×4=24
Step 3: Compute savings.
Saved=63−24=39
Answer: A
Question 3 · Artificial IntelligenceNAT
After summing out the hidden variables in a Bayesian network inference, the following unnormalised values are obtained for a boolean query variable A:
ϕ(A=true)=0.15,ϕ(A=false)=0.35.
Find the value of P(A=true∣e), rounded to two decimal places.
Correct Answer:
0.30
Step-by-Step Solution
Key idea: the unnormalised values ϕ must be divided by their sum to obtain a proper conditional distribution.
Step 1: Compute the normaliser Z=ϕ(A=T)+ϕ(A=F)=0.15+0.35=0.50.
Step 2: Compute P(A=T∣e)=ϕ(A=T)/Z=0.15/0.50=0.30.
Step 3: Sanity check — P(A=F∣e)=0.35/0.50=0.70, and 0.30+0.70=1.
Answer: 0.30.
Question 4 · Artificial IntelligenceMCQ
Match each Bayesian network structure in Column I with its correct joint probability factorization in Column II. All variables are boolean.
Column I
(P) A→B→C
(Q) A←B→C
(R) A→B←C
Column II
(1) P(A)P(C)P(B∣A,C)
(2) P(B)P(A∣B)P(C∣B)
(3) P(A)P(B∣A)P(C∣B)
Select the correct matching.
A.
P-3, Q-2, R-1
B.
P-2, Q-3, R-1
C.
P-3, Q-1, R-2
D.
P-1, Q-2, R-3
Correct Answer:
A
Step-by-Step Solution
Key idea: the chain rule factorizes the joint distribution as the product of each node given its parents. The direction of the arrows dictates the conditioning.
Step 1: Network (P) A→B→C. Parents: A has none, B has A, C has B. Factorization: P(A)P(B∣A)P(C∣B). This matches (3).
Step 2: Network (Q) A←B→C. Parents: B has none, A has B, C has B. Factorization: P(B)P(A∣B)P(C∣B). This matches (2).
Step 3: Network (R) A→B←C. Parents: A has none, C has none, B has A and C. Factorization: P(A)P(C)P(B∣A,C). This matches (1).
Matching: P-3, Q-2, R-1.
Answer: Option (A).
Question 5 · Artificial IntelligenceMCQ
Consider a node X in a Bayesian network. The node X can take r possible values, and it has k parent nodes, each of which can take d possible values. What is the maximum number of independent parameters required to fully specify the Conditional Probability Table (CPT) for X?
A.
dk×r
B.
dk×(r−1)
C.
rk×(d−1)
D.
dk×r−1
Correct Answer:
B
Step-by-Step Solution
Key idea: This is an observation question testing the formula for the number of independent parameters in a CPT.
Step 1: The number of possible combinations of the parent values is dk. This determines the number of rows in the CPT.
Step 2: For each row, the child node X can take r values. Since these r probabilities must sum to 1, there are r−1 independent parameters per row.
Step 3: Multiply the number of rows by the independent parameters per row: dk×(r−1).
Answer: B
Question 6 · Artificial IntelligenceMCQ
Consider the following Assertion and Reason regarding computing marginal probabilities in a Bayesian network.
Assertion (A): To compute the marginal probability P(A) where B and E are the parent nodes of A, we use the formula P(A)=∑b∑eP(A∣b,e)P(b)P(e).
Reason (R): The marginal probability is obtained by normalizing the joint distribution P(A,B,E) by dividing it by the evidence probability P(A).
Options:
A.
Both A and R are true, and R is the correct explanation of A.
B.
Both A and R are true, but R is not the correct explanation of A.
C.
A is true, but R is false.
D.
A is false, but R is true.
Correct Answer:
C
Step-by-Step Solution
Key idea: This is a construction question testing the difference between marginalization and conditional normalization.
Step 1: Evaluate Assertion (A). The formula P(A)=∑b∑eP(A∣b,e)P(b)P(e) correctly applies the chain rule and marginalizes out the parents B and E. Thus, A is true.
Step 2: Evaluate Reason (R). Marginalization is the process of summing out variables. Normalization (dividing by the evidence) is used when computing a conditional probability P(X∣e), not a marginal probability P(A). Thus, R is false.
Step 3: Since A is true and R is false, the correct option is C.
Answer: C
Question 7 · Artificial IntelligenceMCQ
A Conditional Probability Table (CPT) for a node X requires 24 independent parameters. The node X can take 4 possible values, and each of its parent nodes can take 2 possible values. How many parent nodes does X have?
A.
3
B.
2
C.
4
D.
5
Correct Answer:
A
Step-by-Step Solution
Key idea: Independent parameters = dk×(r−1) where d = parent domain size, k = number of parents, r = child domain size.
Step 1: Identify given values.
Independent parameters = 24
r=4 (child X has 4 values)
d=2 (each parent has 2 values)
k=? (number of parents)
Step 2: Apply the formula.
dk×(r−1)=24
2k×(4−1)=24
2k×3=24
Step 3: Solve for k.
2k=324=8
2k=23
k=3
Answer: A
Question 8 · Artificial IntelligenceMCQ
Match each node configuration in Column I with the number of independent parameters required to specify its Conditional Probability Table in Column II.
Column I
(P) A boolean node with 3 boolean parents
(Q) A node with 3 possible values and 2 boolean parents
(R) A node with 4 possible values and 1 parent with 3 possible values
(S) A boolean node with 4 boolean parents
Column II
(1) 8
(2) 9
(3) 16
(4) 32
Select the correct matching.
A.
P-1, Q-1, R-2, S-3
B.
P-1, Q-4, R-2, S-3
C.
P-3, Q-1, R-2, S-4
D.
P-1, Q-1, R-4, S-3
Correct Answer:
A
Step-by-Step Solution
Key idea: use the standard CPT-parameter formula independent params=dk×(r−1), where d is the domain size of each parent, k is the number of parents, and r is the domain size of the child.
Step 1: (P) d=2,k=3,r=2⇒23×(2−1)=8×1=8→(1).
Step 2: (Q) d=2,k=2,r=3⇒22×(3−1)=4×2=8→(1).
Step 3: (R) d=3,k=1,r=4⇒31×(4−1)=3×3=9→(2).
Step 4: (S) d=2,k=4,r=2⇒24×(2−1)=16×1=16→(3).
Matching: P-1, Q-1, R-2, S-3.
Answer: Option (A).
Question 9 · Artificial IntelligenceNAT
After summing out the hidden variables in a Bayesian network inference, the unnormalized values for a boolean query variable Q are found to be ϕ(Q=true)=0.4 and ϕ(Q=false)=0.1.
Find the value of the normalization constant α required to compute P(Q∣e), rounded to two decimal places.
Correct Answer:
2.00
Step-by-Step Solution
Key idea: this is a direct application of the normalization step in inference by enumeration.
Step 1: The unnormalized values ϕ(Q) are proportional to the true conditional probabilities. To convert them to a valid distribution, we must divide by their sum.
Step 2: Compute the sum Z=ϕ(Q=true)+ϕ(Q=false)=0.4+0.1=0.5.
Step 3: The normalization constant α is defined as 1/Z. So α=1/0.5=2.00.
Step 4: Verification. P(Q=true∣e)=α⋅ϕ(Q=true)=2.00×0.4=0.8. P(Q=false∣e)=2.00×0.1=0.2. Sum = 0.8+0.2=1.0. Correct.
Answer: 2.00.
Question 10 · Artificial IntelligenceMCQ
Match each canonical graph structure in Column I with the truth value of the conditional independence statement X⊥Y∣Z in Column II.
Column I
(P) Chain: X→Z→Y
(Q) Fork: X←Z→Y
(R) Collider: X→Z←Y
Column II
(1) True (Path is blocked by conditioning on Z)
(2) True (Path is blocked by conditioning on Z)
(3) False (Path is activated by conditioning on Z)
Select the correct matching.
A.
P-1, Q-2, R-3
B.
P-3, Q-1, R-2
C.
P-1, Q-3, R-2
D.
P-2, Q-1, R-3
Correct Answer:
A
Step-by-Step Solution
Key idea: this is a match-the-following on the d-separation rules for the three canonical structures.
Step 1: Chain (P). In X→Z→Y, conditioning on the middle node Z blocks the path. So X⊥Y∣Z is True. Matches (1).
Step 2: Fork (Q). In X←Z→Y, conditioning on the common cause Z blocks the path. So X⊥Y∣Z is True. Matches (2).
Step 3: Collider (R). In X→Z←Y, conditioning on the common effect Z activates the path (explaining away). So X⊥Y∣Z is False. Matches (3).