6/28/2014 CSE651C, B. Ramamurthy1.  Classification is placing things where they belong  Why? To learn from classification  To discover patterns  To.

Slides:



Advertisements
Similar presentations
Naïve Bayes. Bayesian Reasoning Bayesian reasoning provides a probabilistic approach to inference. It is based on the assumption that the quantities of.
Advertisements

Naïve-Bayes Classifiers Business Intelligence for Managers.
Data Mining Classification: Alternative Techniques
Ensemble Methods An ensemble method constructs a set of base classifiers from the training data Ensemble or Classifier Combination Predict class label.
Data Mining Classification: Alternative Techniques
Indian Statistical Institute Kolkata
Ch5 Stochastic Methods Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2011.
Chapter 4: Linear Models for Classification
1 Chapter 12 Probabilistic Reasoning and Bayesian Belief Networks.
CS 590M Fall 2001: Security Issues in Data Mining Lecture 3: Classification.
Data-intensive Computing Algorithms: Classification Ref: Algorithms for the Intelligent Web 6/26/20151.
KNN, LVQ, SOM. Instance Based Learning K-Nearest Neighbor Algorithm (LVQ) Learning Vector Quantization (SOM) Self Organizing Maps.
Nearest Neighbor Classifiers other names: –instance-based learning –case-based learning (CBL) –non-parametric learning –model-free learning.
Introduction to machine learning
Naïve Bayes Chapter 4, DDS. Introduction Classification Training set  design a model Test set  validate the model Classify data set using the model.
Ensembles of Classifiers Evgueni Smirnov
Exercise Session 10 – Image Categorization
Advanced Multimedia Text Classification Tamara Berg.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Methods in Medical Image Analysis Statistics of Pattern Recognition: Classification and Clustering Some content provided by Milos Hauskrecht, University.
B. RAMAMURTHY EAP#2: Data Mining, Statistical Analysis and Predictive Analytics for Automotive Domain CSE651C, B. Ramamurthy 1 6/28/2014.
DATA MINING : CLASSIFICATION. Classification : Definition  Classification is a supervised learning.  Uses training sets which has correct answers (class.
Data Mining Joyeeta Dutta-Moscato July 10, Wherever we have large amounts of data, we have the need for building systems capable of learning information.
Processing of large document collections Part 2 (Text categorization) Helena Ahonen-Myka Spring 2006.
Bayesian Networks. Male brain wiring Female brain wiring.
INTRODUCTION TO MACHINE LEARNING. $1,000,000 Machine Learning  Learn models from data  Three main types of learning :  Supervised learning  Unsupervised.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
Machine Learning1 Machine Learning: Summary Greg Grudic CSCI-4830.
DATA MINING LECTURE 10 Classification k-nearest neighbor classifier Naïve Bayes Logistic Regression Support Vector Machines.
1 Data Mining Lecture 5: KNN and Bayes Classifiers.
Introduction to machine learning and data mining 1 iCSC2014, Juan López González, University of Oviedo Introduction to machine learning Juan López González.
Data Mining Practical Machine Learning Tools and Techniques Chapter 4: Algorithms: The Basic Methods Section 4.6: Linear Models Rodney Nielsen Many of.
Empirical Research Methods in Computer Science Lecture 7 November 30, 2005 Noah Smith.
Empirical Research Methods in Computer Science Lecture 6 November 16, 2005 Noah Smith.
Today Ensemble Methods. Recap of the course. Classifier Fusion
Ensembles. Ensemble Methods l Construct a set of classifiers from training data l Predict class label of previously unseen records by aggregating predictions.
Bayesian Classification. Bayesian Classification: Why? A statistical classifier: performs probabilistic prediction, i.e., predicts class membership probabilities.
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/ Statistical Inference (By Michael Jordon) l Bayesian perspective –conditional perspective—inferences.
Classification Techniques: Bayesian Classification
METU Informatics Institute Min720 Pattern Classification with Bio-Medical Applications Lecture notes 9 Bayesian Belief Networks.
1 Chapter 12 Probabilistic Reasoning and Bayesian Belief Networks.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
CHAPTER 6 Naive Bayes Models for Classification. QUESTION????
1Ellen L. Walker Category Recognition Associating information extracted from images with categories (classes) of objects Requires prior knowledge about.
DATA MINING WITH CLUSTERING AND CLASSIFICATION Spring 2007, SJSU Benjamin Lam.
USE RECIPE INGREDIENTS TO PREDICT THE CATEGORY OF CUISINE Group 7 – MEI, Yan & HUANG, Chenyu.
Classification (slides adapted from Rob Schapire) Eran Segal Weizmann Institute.
Chapter 20 Classification and Estimation Classification – Feature selection Good feature have four characteristics: –Discrimination. Features.
KNN & Naïve Bayes Hongning Wang Today’s lecture Instance-based classifiers – k nearest neighbors – Non-parametric learning algorithm Model-based.
A Brief Introduction and Issues on the Classification Problem Jin Mao Postdoc, School of Information, University of Arizona Sept 18, 2015.
Chapter 6. Classification and Prediction Classification by decision tree induction Bayesian classification Rule-based classification Classification by.
Digital Camera and Computer Vision Laboratory Department of Computer Science and Information Engineering National Taiwan University, Taipei, Taiwan, R.O.C.
CS Machine Learning Instance Based Learning (Adapted from various sources)
Naïve Bayes Classifier April 25 th, Classification Methods (1) Manual classification Used by Yahoo!, Looksmart, about.com, ODP Very accurate when.
BAYESIAN LEARNING. 2 Bayesian Classifiers Bayesian classifiers are statistical classifiers, and are based on Bayes theorem They can calculate the probability.
SUPERVISED AND UNSUPERVISED LEARNING Presentation by Ege Saygıner CENG 784.
KNN & Naïve Bayes Hongning Wang
Data-intensive Computing Algorithms: Classification Ref: Algorithms for the Intelligent Web 7/10/20161.
Naïve Bayes CSE651C, B. Ramamurthy 6/28/2014.
Data-intensive Computing Algorithms: Classification
Machine Learning – Classification David Fenyő
Table 1. Advantages and Disadvantages of Traditional DM/ML Methods
Applications of IScore (using R)
Machine Learning. k-Nearest Neighbor Classifiers.
Classification Techniques: Bayesian Classification
Naïve Bayes CSE487/587 Spring /17/2018.
Naïve Bayes CSE651 6/7/2014.
Computer Vision Chapter 4
Naïve Bayes CSE487/587 Spring2017 4/4/2019.
Chapter 4, Doing Data Science
Presentation transcript:

6/28/2014 CSE651C, B. Ramamurthy1

 Classification is placing things where they belong  Why? To learn from classification  To discover patterns  To learn from history as to what our response is to a given class of events, for example. 6/28/2014 2CSE651C, B. Ramamurthy

 Classification relies on a priori reference structures that divide the space of all possible data points into a set of classes that are not overlapping. (what do you do the data points overlap?)  What are the problems it (classification) can solve?  What are some of the common classification methods?  Which one is better for a given situation? (meta classifier) 6/28/2014 3CSE651C, B. Ramamurthy

 Restaurant menu: appetizers, salads, soups, entrée, dessert, drinks,…  Library of congress (LIC) system classifies books according to a standard scheme  Injuries and diseases classification is physicians and healthcare workers  Classification of all living things: eg., Home Sapiens (genus, species)  Classification very large application in automobile domain from services (classes), parts (classes), incidents (classes) etc. 6/28/2014 4CSE651C, B. Ramamurthy

 With respect to underlying technique two broad categories:  Statistical algorithms ◦ Regression for forecasting ◦ Bayes classifier depicts the dependency of the various attributes of the classification problem.  Structural algorithms ◦ Rule-based algorithms: if-else, decision trees ◦ Distance-based algorithm: similarity, nearest neighbor ◦ Neural networks 6/28/2014 5CSE651C, B. Ramamurthy

6/28/2014 6CSE651C, B. Ramamurthy

 Decision tree, simple and powerful, works well for discrete (0,1- yes-no)rules;  Neural net: black box approach, hard to interpret results  Distance-based ones work well for low- dimensionality space .. 6/28/2014 7CSE651C, B. Ramamurthy

 Naïve Bayes classifier  One of the most celebrated and well-known classification algorithms of all time.  Probabilistic algorithm  Typically applied and works well with the assumption of independent attributes, but also found to work well even with some dependencies.  Was discovered centuries ago but is heavily used today in many predictive analytic applications 6/28/2014 8CSE651C, B. Ramamurthy

6/28/2014 9CSE651C, B. Ramamurthy

 Provide classifier with data points for which we have already assigned an appropriate class.  Purpose of this stage is to determine the parameters 6/28/ CSE651C, B. Ramamurthy

 Testing or validation stage we validate the classifier to ensure credibility for the results.  Primary goal of this stage is to determine the classification errors.  Quality of the results should be evaluated using various metrics  Training and testing stages may be repeated several times before a classifier transitions to the production stage.  We could evaluate several types of classifiers and pick one or combine all classifiers into a metaclassifier scheme. 6/28/ CSE651C, B. Ramamurthy

 The classifier(s) is used here in a live production system.  It is possible to enhance the production results by allowing human-in-the-loop feedback.  The three steps are repeated as we get more data from the production system. 6/28/ CSE651C, B. Ramamurthy

 6/28/ CSE651C, B. Ramamurthy

Reference: Suppose there is a school with 60% boys and 40% girls as its students. The female students wear trousers or skirts in equal numbers; the boys all wear trousers. An observer sees a (random) student from a distance, and what the observer can see is that this student is wearing trousers. What is the probability this student is a girl? The correct answer can be computed using Bayes' theorem. The event A is that the student observed is a girl, and the event B is that the student observed is wearing trousers. To compute P(A|B), we first need to know: P(A), or the probability that the student is a girl regardless of any other information. Since the observer sees a random student, meaning that all students have the same probability of being observed, and the fraction of girls among the students is 40%, this probability equals 0.4. P(B|A), or the probability of the student wearing trousers given that the student is a girl. Since they are as likely to wear skirts as trousers, this is 0.5. P(B), or the probability of a (randomly selected) student wearing trousers regardless of any other information. Since half of the girls and all of the boys are wearing trousers, this is 0.5× ×0.6 = 0.8. Given all this information, the probability of the observer having spotted a girl given that the observed student is wearing trousers can be computed by substituting these values in the formula: P(A|B) = P(B|A)P(A)/P(B) = 0.5 * 0.4 / 0.8 = /28/ CSE651C, B. Ramamurthy

6/28/2014 CSE651C, B. Ramamurthy15

 Training set  design a model  Test set  validate the model  Classify data set using the model  Goal of classification: to label the items in the set to one of the given/known classes  For spam filtering it is binary class: spam or nit spam(ham) 6/28/2014 CSE651C, B. Ramamurthy16

 Linear regression is about continuous variables, not binary class  K-nn can accommodate multi-features: curse of dimensionality: 1 distinct word  1 feature  words  features!  Then what can we use? Naïve Bayes 6/28/2014 CSE651C, B. Ramamurthy17

 A rare disease where 1%  We have highly sensitive and specific test that is ◦ 99% positive for sick patients ◦ 99% negative for non-sick  If a patients test positive, what is probability that he/she is sick?  Approach: patient is sick : sick, tests positive +  P(sick/+) = P(+/sick) P(sick)/P(+)= 0.99*0.01/(0.99* *0.01) = 0.099/2*(0.099) = ½ = 0.5 6/28/2014 CSE651C, B. Ramamurthy18

6/28/2014 CSE651C, B. Ramamurthy19

 Enron data:  Enron employee s  A small subset chosen for EDA  1500 spam, 3672 ham  Test word is “meeting”…that is, your goal is label a with word “meeting” as spam or ham (not spam)  Run an simple shell script and find out that 16 “meeting”s in spam, 153 “meetings” in ham  Right away what is your intuition? Now prove it using Bayes 6/28/2014 CSE651C, B. Ramamurthy20

 Lets call good s “ham”  P(ham) = 1- P(spam)  P(word) = P(word|spam)P(spam) + P(word|ham)P(ham) 6/28/2014 CSE651C, B. Ramamurthy21

 P(spam) = 1500/( ) = 0.29  P(ham) = 0.71  P(meeting|spam) = 16/1500=  P(meeting|ham) = 15/3672 =  P(meeting) = P(meeting|spam)P(spam) + P(meeting|ham)P(ham) = * =  P(spam|meeting) = P(meeting|spam)*P(spam)/P(meeting) = *0.29/ =  9.4% 6/28/2014 CSE651C, B. Ramamurthy22

 Learn Naïve Bayes Rule  Application to spam filtering in s  Work the example/understand the example discussed in class: disease one, a spam filter..  Possible question  problem statement  classification model using Naïve Bayes 6/28/2014 CSE651C, B. Ramamurthy23