SlideServe
Menu
Préférences
© SlideServe · v2026

Bayes Classifier , Linear Regression

stevie avatar
14 diapositives · 503 Views · Sep 04, 2012

Bayes Classifier , Linear Regression. 10701 /15781 Recitation Jan uary 29, 2008. Parts of the slides are from previous years’ recitation and lecture notes, and from Prof. Andrew Moore’s data mining tutorials. Classification and Regression. Classification

Bayes Classifier , Linear Regression - slide 1
01 / 14Bayes Classifier , Linear Regression
1 / 17

Télécharger la présentation

Bayes Classifier , Linear Regression
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Bayes Classifier,Linear Regression 10701/15781 Recitation January 29, 2008 Parts of the slides are from previous years’ recitation and lecture notes, and from Prof. Andrew Moore’s data mining tutorials.

  2. Classification and Regression • Classification • Goal: Learn the underlying function f: X (features)Y (class, or category) e.g. words  “spam”, or “not spam” • Regression f: X (features)  Y (continuous values) e.g. GPA  salary

  3. Supervised Classification • How to find an unknown function f: X Y (features  class) or equivalently P(Y|X) • Classifier: • Find P(X|Y), P(Y), and use Bayes rule - generative • Find P(Y|X) directly - discriminative

  4. Classification Learn P(Y|X) 1. Bayes rule: P(Y|X) = P(X|Y)P(Y) / P(X) ~ P(X|Y)P(Y) • Learn P(X|Y), P(Y) • “Generative” classifier 2. Learn P(Y|X) directly • “Discriminative”(to be covered later in class) • e.g. logistic regression

  5. Generative Classifier: Bayes Classifier Learn P(X|Y), P(Y) • e.g. email classification problem • 3 classes for Y = { spam, not spam, maybe } • 10,000 binary features for X = {“Cash”, “Rolex”,…} • How many parameters do we have? • P(Y) : • P(X|Y) :

  6. Generative learning:Naïve Bayes • Introduce conditional independence P(X1,X2|Y) = P(X1 |Y) P(X2 |Y) P(Y|X) = P(X|Y)P(Y) / P(X) for X=(Xi,…,Xn) = P(X1|Y)…P(Xn|Y)P(Y) / P(X) = prodi P(Xi|Y) P(Y) / P(X) • Learn P(X1|Y), … P(Xn|Y), P(Y) instead of learning P(X1,…, Xn |Y) directly

  7. Naïve Bayes • 3 classes for Y = {spam, not spam, maybe} • 10,000 binary features for X = {“Cash”,”Rolex”,…} • Now, how many parameters? • P(Y) • P(X|Y) • fewer parameters • “simpler” – less likely to overfit

  8. Full Bayes vs. Naïve Bayes P(Y=1|(X1,X2)=(0,1))=? • Full Bayes: P(Y=1)=? P((X1,X2)=(0,1)|Y=1)=? • Naïve Bayes: P(Y=1)=? P((X1,X2)=(0,1)|Y=1)=? • XOR

  9. Regression • Prediction of continuous variables • e.g. I want to predict salaries from GPA. •  I can regress that … • Learn the mapping f: X  Y • Model is linear in the parameters (+ some noise)  linear regression • Assume Gaussian noise • Learn MLE Θ

  10. 1-parameter linear regression • Normal linear regression or equivalently, • MLEΘ? • MLE σ2 ?

  11. Multivariate linear regression • What if the inputs are vectors? • Write matrix X and Y : (n data points, k features for each data) • MLE Θ =

  12. Constant term? • We may expect linear data that does not go through the origin • Trick?

  13. The constant term

  14. Regression: another example • Assume the following model to fit the data. The model has one unknownparameter θ to be learned from data. • A maximum likelihood estimation of θ?