Chap4_EvaluatingPerformance

# Chap4_EvaluatingPerformance - Chapter 4 Evaluating...

This preview shows pages 1–14. Sign up to view the full content.

Chapter 4 – Evaluating Classification & Predictive Performance © Galit Shmueli and Peter Bruce 2008 Data Mining for Business Intelligence Shmueli, Patel & Bruce

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Why Evaluate? Multiple methods are available to classify or predict For each method, multiple choices are available for settings To choose best model, need to assess each model’s performance
Accuracy Measures (Classification)

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Misclassification error Error = classifying a record as belonging to one class when it belongs to another class. Error rate = percent of misclassified records out of the total records in the validation data
Naïve Rule Often used as benchmark: we hope to do better than that Exception: when goal is to identify high-value but rare outcomes, we may do well by doing worse than the naïve rule (see “lift” – later) Naïve rule: classify all records as belonging to the most prevalent class

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Separation of Records “High separation of records” means that using predictor variables attains low error “Low separation of records” means that using predictor variables does not improve much on naïve rule
Confusion Matrix 201 1’s correctly classified as “1” 85 1’s incorrectly classified as “0” 25 0’s incorrectly classified as “1” 2689 0’s correctly classified as “0” Actual Class 1 0 1 201 85 0 25 2689 Predicted Class Classification Confusion Matrix

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Error Rate Overall error rate = (25+85)/3000 = 3.67% Accuracy = 1 – err = (201+2689) = 96.33% If multiple classes, error rate is: (sum of misclassified records)/(total records) Actual Class 1 0 1 201 85 0 25 2689 Predicted Class Classification Confusion Matrix
Cutoff for classification Most DM algorithms classify via a 2-step process: For each record, 1. Compute probability of belonging to class “1” 2. Compare to cutoff value, and classify accordingly Default cutoff value is 0.50 If >= 0.50, classify as “1” If < 0.50, classify as “0” Can use different cutoff values Typically, error rate is lowest for cutoff = 0.50

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Cutoff Table Actual Class Prob. of "1" Actual Class Prob. of "1" 1 0.996 1 0.506 1 0.988 0 0.471 1 0.984 0 0.337 1 0.980 1 0.218 1 0.948 0 0.199 1 0.889 0 0.149 1 0.848 0 0.048 0 0.762 0 0.038 1 0.707 0 0.025 1 0.681 0 0.022 1 0.656 0 0.016 0 0.622 0 0.004 If cutoff is 0.50: eleven records are classified as “1” If cutoff is 0.80: seven records are classified as “1”
Confusion Matrix for Different Cutoffs 0.25 Actual Class owner non-owner owner 11 1 non-owner 4 8 0.75 Actual Class owner non-owner owner 7 5 non-owner 1 11 Cut off Prob.Val. for Success (Updatable) Classification Confusion Matrix Predicted Class Cut off Prob.Val. for Success (Updatable) Classification Confusion Matrix Predicted Class

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Lift
When One Class is More Important Tax fraud Credit default Response to promotional offer Detecting electronic network intrusion Predicting delayed flights In many cases it is more important to identify members of one class In such cases, we are willing to tolerate greater overall error, in return for better identifying the important class for further attention

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern