Line 36: | Line 36: | ||
\end{align} | \end{align} | ||
</math></center> | </math></center> | ||
− | <br> | + | <br>For two-class case, generate the discriminant function as |
− | <center><math>g\left(x\right) = g_{1}\left(x\right) - g_{2}\left(x\right);</math><br></center> <center>decide w<sub>1</sub> if <br></center> | + | <center><math>g\left(x\right) = g_{1}\left(x\right) - g_{2}\left(x\right);</math><br></center> <center>decide w<sub>1</sub> if g(x) > 0;<br></center> <center>else decide w<sub>2</sub>.</center> |
Revision as of 11:58, 21 April 2014
Bayes rule in practice
A slecture by Lu Wang
(partially based on Prof. Mireille Boutin's ECE 662 lecture)
1. Bayes rule for Gaussian data
Given data x ∈ Rd and N categories {wi}, i=1,2,…,N, we decide which category the data corresponds to by computing the probability of the N events. We’ll pick the category with the largest probability. Mathematically, this can be interpreted as:
According to Bayes rule:
In our case, the data is distributed as Gaussian. So we have,
Let
Now we have,
For two-class case, generate the discriminant function as