Question 21
In Gaussian Naive Bayes, how is the class conditional probability density P(x_i | y = c) modeled for a continuous feature $x_i$?
Original solution basis:
Continuous features in Gaussian Naive Bayes are modeled as 1D Gaussians P(x_i | c) = (1 / sqrt(2 pi sigma_c^2)) $\exp(-(x_i - mu_c)^2 / (2 sigma_c^2))$.
Deep Dive
Gaussian Naive Bayes models each continuous feature, conditional on a class c, using a normal density with class-specific mean \mu _c and variance $\sigma _c²$. The density is [1/√(2$\pi \sigma _c²)] exp[-(x-\mu _c)²/(2\sigma _c²)]$. Parameters are estimated separately for each feature and class; conditional independence is then used to combine the densities.
Key Points to Remember:
• Gaussian NB uses a univariate Gaussian likelihood per feature and class.
• Each class-feature pair has its own mean and variance.
• The class posterior combines prior probability with the product of feature likelihoods.Exam tip:
Identify the governing definition or theorem first, write the formula, substitute the given values, and check dimensions/signs before selecting the option.