Professional Documents
Culture Documents
Naive Bayes, Histogram Approach
Naive Bayes, Histogram Approach
C1,C2,C3areclasses
Prob=Probability
Width=Widthofthebinassumed
Error=MisclassificationErrorin%
10%trainingsamplecase:
Forthefirst5caseIused3binsforeachfeature,equallyspacedbetweenminimumandmaximum.
Forthenext5casewith4binseachforeachfeature,equallyspacedbetweenminimumandmaximum.
Resultwasbetterinthecaseof3bins(Trialnumber4)eachwhichisexpectedasthetrainingsizeis
small.
30%case:
Forthefirst5caseIused4binsforeachfeature,equallyspacedbetweenminimumandmaximum.
Forthenext5casewith5binseachforeachfeature,equallyspacedbetweenminimumandmaximum.
Resultwasbetterinthecaseof5bins.(Trialnumber7)
50%case:
Forthefirst5caseIused5binsforeachfeature,equallyspacedbetweenminimumandmaximum.
Forthenext5casewith6binseachforeachfeature,equallyspacedbetweenminimumandmaximum.
Resultwasbetterinthecaseof6bins(Trialnumber9).Averageclassificationerrorwasbetter
with#bins=6.
10%
Trial
1
2
3
4
5
6
7
8
9
10
30%
Trial
1
2
3
4
5
case
WidthF1 WidthF2 WidthF3 WidthF4 Error
ProbC1
ProbC2
ProbC3
1.2
0.73
2.96
0.8
3.7037036
0.46666667
0.2
0.33333334
1.2
0.73
2.96
0.8
4.4444447
0.33333334 0.46666667
0.2
1.2
0.73
2.96
0.8
4.4444447
0.33333334 0.26666668
0.4
1.2
0.73
2.96
0.8
2.9629629
0.26666668 0.33333334
0.4
1.2
0.73
2.96
0.8
4.4444447
0.4
0.26666668 0.33333334
0.9
0.55
1.48
0.6
15.555556
0.2
0.13333334
0.6666667
0.9
0.55
1.48
0.6
14.814815
0.26666668
0.2
0.53333336
0.9
0.55
1.48
0.6
14.814815
0.2
0.33333334 0.46666667
0.9
0.55
1.48
0.6
16.296295
0.33333334 0.26666668
0.4
0.9
0.55
1.48
0.6
15.555556
0.46666667 0.33333334
0.2
case
WidthF1 WidthF2 WidthF3 WidthF4 Error
ProbC1
ProbC2
ProbC3
0.9
0.55
1.48
0.6
18.095238
0.35555556 0.35555556
0.2888889
0.9
0.55
1.48
0.6
12.380953
0.4
0.31111112
0.2888889
0.9
0.55
1.48
0.6
13.333334
0.37777779 0.24444444 0.37777779
0.9
0.55
1.48
0.6
15.238096
0.37777779 0.24444444 0.37777779
0.9
0.55
1.48
0.6
15.238096
0.24444444 0.35555556
0.4
6
0.72
0.48
1.36
0.48
7.619048
0.31111112
0.4
0.2888889
7
0.72
0.48
1.36
0.48
4.7619047
0.37777779 0.35555556 0.26666668
8
0.72
0.48
1.36
0.48
6.666667
0.35555556
0.2888889
0.35555556
9
0.72
0.48
1.36
0.48
5.714286
0.37777779
0.2888889
0.33333334
10
0.72
0.48
1.36
0.48
6.666667
0.31111112 0.37777779 0.31111112
50% case
Trial
WidthF1 WidthF2 WidthF3 WidthF4 Error
ProbC1
ProbC2
ProbC3
1
0.72
0.48
1.36
0.48
8
0.28
0.33333334 0.38666666
2
0.72
0.48
1.36
0.48
6.666667
0.37333333 0.34666666
0.28
3
0.72
0.48
1.36
0.48
2.6666667
0.34666666 0.33333334
0.32
4
0.72
0.48
1.36
0.48
2.6666667
0.38666666
0.32
0.29333332
5
0.72
0.48
1.36
0.48
8
0.24
0.33333334 0.42666668
6
0.6
0.36
0.98
0.4
2.6666667
0.30666667 0.34666666 0.34666666
7
0.6
0.36
0.98
0.4
4
0.34666666 0.42666668 0.22666667
8
0.6
0.36
0.98
0.4
5.3333335
0.36
0.33333334 0.30666667
9
0.6
0.36
0.98
0.4
2.6666667
0.32
0.37333333 0.30666667
10
0.6
0.36
0.98
0.4
4
0.28
0.4
0.32
Histogramsforthebestcases.
For10%case:
Trialnumber4with#bins=3foreachfeature.CorrespondstoTrialnumber4intheabovetable.
For30%case:
Trialnumber7with#bins=5foreachfeature.CorrespondstoTrialnumber7intheabovetable.
For50%case:
Trialnumber9with#bins=6foreachfeature.