Naive Bayes Flashcards

1
Q

Naive Bayes

A
Conditional Probability
P(C|A) = P(A|C)P(C)/P(A)
x’ = 
class = arg max P(y|x’)
P(y|x’) = P(x’|y) * P(y) / P(x’)
Normalization
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Zero Frequency Problem

A

If value does not occur. Probability = 0
Posteriori = 0
We add 1 to the count. (Laplace)
0r we can add a constant different. (2+ u/3) / (9+u)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Missing Values

A

Not included in freq count.

Testing: omitted from calculation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Numeric Attributes

A

Assume that attributes have a normal or Gaussian probability
Sample mean: mean = (1/n)sum(xi)
std = sqrt ((1/(n-1)
sum(xi-mean)^2))
density function: gauss

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Bayesian Belief Networks

A

Allows us to specify which pair of attributes are conditionally independent
Graphical representation of probabilistic relationships among a set of random variables
Direct acyclic graph
Probability table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly