You are on page 1of 4

Data Mining HW#3

1. (a)

Y X_normal
0 0
0 0.125
0 0.25
0 0.375
0 0.5
0 0.5375
0 0.4375
1 0.4625
1 0.5
1 0.525
1 0.5625
1 0.625
1 0.75
1 0.875
1 1

(b)

Cut off Prob.Val. for Success (Updatable) 0.4

Classification Confusion Matrix


Predicted Class
Actual Class 1 0
1 8 0
0 2 5

Error Report
Class # Cases # Errors % Error
1 8 0 0.00
0 7 2 28.57
Overall 15 2 13.33

Accuracy = 1 – Overall error rate = 1 – 0.1333 = 0.8667

Sensitivity = 1

Specificity = 1 – 0.2857 = 0.7143


Cut off Prob.Val. for Success (Updatable) 0.5

Classification Confusion Matrix


Predicted Class
Actual Class 1 0
1 7 1
0 2 5

Error Report
Class # Cases # Errors % Error
1 8 1 12.50
0 7 2 28.57
Overall 15 3 20.00

Accuracy = 1 - 0.2 = 0.8

Sensitivity = 1 – 0.125 = 0.875

Specificity = 1 – 0.2857 = 0.7143

Cut off Prob.Val. for Success (Updatable) 0.6

Classification Confusion Matrix


Predicted Class
Actual Class 1 0
1 5 3
0 1 6

Error Report
Class # Cases # Errors % Error
1 8 3 37.50
0 7 1 14.29
Overall 15 4 26.67

Accuracy = 1 – 0.2667 = 0.7333

Sensitivity = 1 – 0.375 = 0.625

Specificity: = 1 – 0.1429 = 0.8571


(c)

Cut off = 0.4

Lift chart (training dataset)


12
10 Cumulative Y when
8
Cumulative

sorted using pre-


6 dicted values
4 Cumulative Y using
2 average
0
0 2 4 6 8 10 12
# cases

Cut off = 0.5

Lift chart (training dataset)


12
10 Cumulative Y when
8
Cumulative

sorted using pre-


6 dicted values
4 Cumulative Y using
2 average
0
0 2 4 6 8 10 12
# cases

Cut off = 0.6


Lift chart (training dataset)
12
10 Cumulative Y when
8
Cumulative

sorted using pre-


6 dicted values
4 Cumulative Y using
2 average
0
0 2 4 6 8 10 12
# cases

You might also like