How can Naive Bayes be represented as a Bayesian network?

Quick Overview

Asks how a Naive Bayes classifier maps onto a Bayesian network, from the star-shaped graph to the conditional probability tables on each node. Tests understanding of the factorization, d-separation and conditional independence, classification as inference, and extensions such as Tree-Augmented Naive Bayes.

How can Naive Bayes be represented as a Bayesian network?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How can Naive Bayes be represented as a Bayesian network? Describe the graph, the parameters attached to its nodes, the independence assumptions the graph encodes, and how classification works in that view. ```hint Start from the factorization Write the joint distribution $P(Y, X_1, \dots, X_n)$ that Naive Bayes assumes, then draw the directed graph whose parent sets give exactly that product. ``` ```hint Read the graph Use d-separation to check what the graph says about two features when the class is observed and when it is not. ``` ### What a Strong Answer Covers - The graph structure, the direction of the edges, and the generative story it encodes. - The parameters attached to each node for the common feature types. - The independence statements the graph implies with and without the class observed. - How classification becomes inference in the network. - How extensions such as Tree-Augmented Naive Bayes relax the structure. ### Follow-up Questions - What independence would the graph imply if the arrows pointed from the features to the class? - How does the network handle a feature that is missing at prediction time? - How does Tree-Augmented Naive Bayes choose which feature-to-feature edges to add? - What does Laplace smoothing correspond to in Bayesian network terms?

Overview: Asks how a Naive Bayes classifier maps onto a Bayesian network, from the star-shaped graph to the conditional probability tables on each node. Tests understanding of the factorization, d-separation and conditional independence, classification as inference, and extensions such as Tree-Augmented Naive Bayes.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How can Naive Bayes be represented as a Bayesian network?

Describe the graph, the parameters attached to its nodes, the independence assumptions the graph encodes, and how classification works in that view.

What a Strong Answer Covers Guidance

  • The graph structure, the direction of the edges, and the generative story it encodes.
  • The parameters attached to each node for the common feature types.
  • The independence statements the graph implies with and without the class observed.
  • How classification becomes inference in the network.
  • How extensions such as Tree-Augmented Naive Bayes relax the structure.

Follow-up Questions Guidance

  • What independence would the graph imply if the arrows pointed from the features to the class?
  • How does the network handle a feature that is missing at prediction time?
  • How does Tree-Augmented Naive Bayes choose which feature-to-feature edges to add?
  • What does Laplace smoothing correspond to in Bayesian network terms?