Naive Bayes ML Lecture
- 22Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
22 questions
- 1In a probabilistic model for machine learning, the parameters are like_____that can be adjusted to make good input-output predictions.
Hint
Think about what you adjust on a physical device to change its behavior.
Answer
sliders
- 2Maximum likelihood estimation (MLE) chooses parameter values that make the training data look as_____as possible.
Hint
The name 'likelihood' gives a clue about the objective.
Answer
likely
- 3MAP estimation is like MLE but includes an additional term that represents how likely you thought the parameter value was_____seeing any data.
Hint
This term is called the prior in Bayesian inference.
Answer
before
- 4For a Bernoulli parameter with a Beta prior, the MAP estimate with Laplace prior (Beta 2,2) is given by (s + 1) / (s + f +_____), where s is number of successes and f is number of failures.
Hint
Laplace prior adds one imaginary success and one imaginary failure.
Answer
2
- 5The Laplace prior corresponds to a Beta distribution with parameters_____.
Hint
It's often written as Beta(α, β). For Laplace, α = β = ?
Answer
2,2
- 6In classification, the training data consists of input-output pairs; each pair is called a_____example because the output is provided.
Hint
The output (label) is given, so the data is said to be what?
Answer
labeled
- 7The number of features in a training dataset is the length of the_____vector for any input.
Hint
Inputs are represented by a bold letter usually, and its size tells the number of features.
Answer
X
- 8In notation, X^{i} denotes the input for the_____person in the training set.
Hint
The superscript i indexes over training examples.
Answer
ith
- 9To refer to the j-th feature of the i-th training example, we write_____.
Hint
Use superscript for example index, subscript for feature index.
Answer
X^i_j
- 10Brute Force Bayes predicts the output by taking the_____over y of P(y | x).
Hint
We choose the y that makes the conditional probability largest.
Answer
argmax
- 11In Brute Force Bayes, the denominator P(x) can be ignored in the argmax because it is a_____across different y values.
Hint
It doesn't depend on y, so it doesn't affect which y gives the maximum.
Answer
constant
- 12For Brute Force Bayes with m binary features, the number of parameters needed grows as O(_____).
Hint
Each feature adds a factor of 2 combinations; think exponential growth.
Answer
2^m
- 13The naive Bayes assumption states that the features of X are conditionally independent given_____.
Hint
The independence is assumed only after conditioning on what we are predicting.
Answer
Y
- 14By applying the naive Bayes assumption, the joint probability P(X|Y) becomes the_____of probabilities of each feature given Y.
Hint
Multiplication of factors, as in ∏.
Answer
product
- 15With MLE, the estimate for P(Y=1) is simply the_____of training examples where Y=1.
Hint
Divide count of Y=1 by total number of examples.
Answer
fraction
- 16MAP with Laplace smoothing adds_____imaginary success and one imaginary failure to the counts for each binomial conditional probability.
Hint
Laplace prior adds one of each outcome.
Answer
one
- 17Laplace smoothing ensures that no estimated probability is ever exactly zero or_____.
Hint
The two extreme probabilities that can cause problems.
Answer
one
- 18To avoid numerical underflow when computing the product of many probabilities, it is common to work with_____probabilities instead.
Hint
Logarithms turn products into sums, which are more stable.
Answer
log
- 19In model evaluation,_____measures the fraction of all predictions that were correct.
Hint
It's a raw score: correct over total.
Answer
accuracy
- 20Precision measures how many of the items predicted as positive are actually_____.
Hint
It asks: out of what the model labeled as positive, how many were truly positive?
Answer
positive
- 21Recall measures how many of the actual positive items were correctly_____by the model.
Hint
It asks: out of all true positives, how many did the model catch?
Answer
predicted
- 22In the spam classification example, each email is represented by a vector of_____indicating whether each word appears in the email.
Hint
Binary indicators: 1 if word present, 0 otherwise.
Answer
0/1

Ask anything
We've read this whole study set, so questions about it get the best answers.