chapter

    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

    Summary: Inference and CPT Cheat Sheet

    Summary: Inference and CPT Cheat Sheet

    Core Formulas

    • Joint Distribution:
    • Inference by Enumeration:
    • Independent Parameters:

    Algorithm Comparison

    Feature Inference by Enumeration Variable Elimination
    Mechanism Generate full joint, sum out hidden Push sums inward, compute factors
    Redundancy High (recomputes sub-expressions) Low (caches intermediate factors)
    Complexity , where is max factor size

    Final Exam Checks

    1. Did I use from the table, not the reverse?
    2. Did I sum over all possible states of the hidden variables?
    3. Did I normalize the final vector so it sums to 1?

    Summary: Factorization and Independence Cheat Sheet

    Summary: Factorization and Independence Cheat Sheet

    Core Rules

    • Markov Condition:
    • Factorization Decoding: In , and are parents of .

    Path Blocking Rules (d-separation basics)

    Structure Pattern Marginally (Unobserved) Conditioned on Middle Node
    Chain Dependent Independent (Blocked)
    Fork Dependent Independent (Blocked)
    Collider Independent (Blocked) Dependent (Active)

    Final Exam Checks

    1. Did I correctly identify all parents from the factorization equation?
    2. Did I check for colliders on the path? (Remember: conditioning on a collider creates dependence).
    3. 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 boolean variables. If the network structure is such that every node has at most 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 :

    Find the value of , 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)

    (Q)

    (R)

    Column II

    (1)

    (2)

    (3)

    Select the correct matching.

    Question 5
    Level 1: Warm-up

    Consider a node in a Bayesian network. The node can take possible values, and it has parent nodes, each of which can take possible values. What is the maximum number of independent parameters required to fully specify the Conditional Probability Table (CPT) for ?

    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 where and are the parent nodes of , we use the formula .

    Reason (R): The marginal probability is obtained by normalizing the joint distribution by dividing it by the evidence probability .

    Options:

    Question 7
    Level 1: Warm-up

    A Conditional Probability Table (CPT) for a node requires 24 independent parameters. The node can take 4 possible values, and each of its parent nodes can take 2 possible values. How many parent nodes does 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 are found to be and .

    Find the value of the normalization constant required to compute , 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 in Column II.

    Column I

    (P) Chain:

    (Q) Fork:

    (R) Collider:

    Column II

    (1) True (Path is blocked by conditioning on )

    (2) True (Path is blocked by conditioning on )

    (3) False (Path is activated by conditioning on )

    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.

    Explore complete test series, official past papers, and chapter-wise study tools.

    Why MastersUp

    Personalised first. High quality throughout.

    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.

    Summary: Inference and CPT Cheat Sheet

    Summary: Inference and CPT Cheat Sheet

    Core Formulas

    • Joint Distribution:
    • Inference by Enumeration:
    • Independent Parameters:

    Algorithm Comparison

    Feature Inference by Enumeration Variable Elimination
    Mechanism Generate full joint, sum out hidden Push sums inward, compute factors
    Redundancy High (recomputes sub-expressions) Low (caches intermediate factors)
    Complexity , where is max factor size

    Final Exam Checks

    1. Did I use from the table, not the reverse?
    2. Did I sum over all possible states of the hidden variables?
    3. Did I normalize the final vector so it sums to 1?

    Summary: Factorization and Independence Cheat Sheet

    Summary: Factorization and Independence Cheat Sheet

    Core Rules

    • Markov Condition:
    • Factorization Decoding: In , and are parents of .

    Path Blocking Rules (d-separation basics)

    Structure Pattern Marginally (Unobserved) Conditioned on Middle Node
    Chain Dependent Independent (Blocked)
    Fork Dependent Independent (Blocked)
    Collider Independent (Blocked) Dependent (Active)

    Final Exam Checks

    1. Did I correctly identify all parents from the factorization equation?
    2. Did I check for colliders on the path? (Remember: conditioning on a collider creates dependence).
    3. 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 Intelligence MCQ

    A Bayesian network consists of boolean variables. If the network structure is such that every node has at most boolean parents, what is the minimum number of independent parameters required to specify the full joint distribution using this network?

    1. A.

    2. B.

    3. C.

    4. D.

    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 boolean variables requires parameters.

    Step 2: With a Bayesian network, the joint distribution is factorized into conditional probability tables (CPTs).

    Step 3: Each node has at most boolean parents. The number of independent parameters for each node's CPT is .

    Step 4: Summing over all nodes, the total number of independent parameters is .

    Answer: B

    Question 2 · Artificial Intelligence MCQ

    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?

    1. A.

      39

    2. B.

      33

    3. C.

      45

    4. D.

      51

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: Full joint needs parameters; Bayesian network needs parameters (where is max parents per node).

    Step 1: Compute parameters for full joint distribution.

    For boolean variables:

    Step 2: Compute parameters for Bayesian network.

    Each of the 6 nodes has at most 2 boolean parents. For a boolean node with boolean parents, independent parameters = .

    Step 3: Compute savings.

    Answer: A

    Question 3 · Artificial Intelligence NAT

    After summing out the hidden variables in a Bayesian network inference, the following unnormalised values are obtained for a boolean query variable :

    Find the value of , 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 .

    Step 2: Compute .

    Step 3: Sanity check — , and .

    Answer: 0.30.

    Question 4 · Artificial Intelligence MCQ

    Match each Bayesian network structure in Column I with its correct joint probability factorization in Column II. All variables are boolean.

    Column I

    (P)

    (Q)

    (R)

    Column II

    (1)

    (2)

    (3)

    Select the correct matching.

    1. A.

      P-3, Q-2, R-1

    2. B.

      P-2, Q-3, R-1

    3. C.

      P-3, Q-1, R-2

    4. 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) . Parents: has none, has , has . Factorization: . This matches (3).

    Step 2: Network (Q) . Parents: has none, has , has . Factorization: . This matches (2).

    Step 3: Network (R) . Parents: has none, has none, has and . Factorization: . This matches (1).

    Matching: P-3, Q-2, R-1.

    Answer: Option (A).

    Question 5 · Artificial Intelligence MCQ

    Consider a node in a Bayesian network. The node can take possible values, and it has parent nodes, each of which can take possible values. What is the maximum number of independent parameters required to fully specify the Conditional Probability Table (CPT) for ?

    1. A.

    2. B.

    3. C.

    4. D.

    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 . This determines the number of rows in the CPT.

    Step 2: For each row, the child node can take values. Since these probabilities must sum to 1, there are independent parameters per row.

    Step 3: Multiply the number of rows by the independent parameters per row: .

    Answer: B

    Question 6 · Artificial Intelligence MCQ

    Consider the following Assertion and Reason regarding computing marginal probabilities in a Bayesian network.

    Assertion (A): To compute the marginal probability where and are the parent nodes of , we use the formula .

    Reason (R): The marginal probability is obtained by normalizing the joint distribution by dividing it by the evidence probability .

    Options:

    1. A.

      Both A and R are true, and R is the correct explanation of A.

    2. B.

      Both A and R are true, but R is not the correct explanation of A.

    3. C.

      A is true, but R is false.

    4. 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 correctly applies the chain rule and marginalizes out the parents and . 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 , not a marginal probability . Thus, R is false.

    Step 3: Since A is true and R is false, the correct option is C.

    Answer: C

    Question 7 · Artificial Intelligence MCQ

    A Conditional Probability Table (CPT) for a node requires 24 independent parameters. The node can take 4 possible values, and each of its parent nodes can take 2 possible values. How many parent nodes does have?

    1. A.

      3

    2. B.

      2

    3. C.

      4

    4. D.

      5

    Correct Answer:

    A

    Step-by-Step Solution

    Key idea: Independent parameters = where = parent domain size, = number of parents, = child domain size.

    Step 1: Identify given values.

    • Independent parameters = 24
    • (child has 4 values)
    • (each parent has 2 values)
    • (number of parents)

    Step 2: Apply the formula.

    Step 3: Solve for .

    Answer: A

    Question 8 · Artificial Intelligence MCQ

    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.

    1. A.

      P-1, Q-1, R-2, S-3

    2. B.

      P-1, Q-4, R-2, S-3

    3. C.

      P-3, Q-1, R-2, S-4

    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 , where is the domain size of each parent, is the number of parents, and is the domain size of the child.

    Step 1: (P) .

    Step 2: (Q) .

    Step 3: (R) .

    Step 4: (S) .

    Matching: P-1, Q-1, R-2, S-3.

    Answer: Option (A).

    Question 9 · Artificial Intelligence NAT

    After summing out the hidden variables in a Bayesian network inference, the unnormalized values for a boolean query variable are found to be and .

    Find the value of the normalization constant required to compute , 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 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 .

    Step 3: The normalization constant is defined as . So .

    Step 4: Verification. . . Sum = . Correct.

    Answer: 2.00.

    Question 10 · Artificial Intelligence MCQ

    Match each canonical graph structure in Column I with the truth value of the conditional independence statement in Column II.

    Column I

    (P) Chain:

    (Q) Fork:

    (R) Collider:

    Column II

    (1) True (Path is blocked by conditioning on )

    (2) True (Path is blocked by conditioning on )

    (3) False (Path is activated by conditioning on )

    Select the correct matching.

    1. A.

      P-1, Q-2, R-3

    2. B.

      P-3, Q-1, R-2

    3. C.

      P-1, Q-3, R-2

    4. 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 , conditioning on the middle node blocks the path. So is True. Matches (1).

    Step 2: Fork (Q). In , conditioning on the common cause blocks the path. So is True. Matches (2).

    Step 3: Collider (R). In , conditioning on the common effect activates the path (explaining away). So is False. Matches (3).

    Matching: P-1, Q-2, R-3.

    Answer: Option (A).

    More short notes in this unit