You are on page 1of 9

Tugas 1 Metode Numerik Soal 6

Nama Aditya Rizky Pratama No


NIM H1051191055 1
Kelas B 2
3
Soal 1 Hitung Nilai Error 4
No Sensor Termometer Error Error Relatif (%) 5
1 29 29.8 0.8 2.6845637583893 6
2 29 29.8 0.8 2.6845637583893 7
3 29 30 1 3.3333333333333 8
4 29 30.1 1.1 3.6544850498339 9
5 29 30.3 1.3 4.2904290429043 10
6 30 30.3 0.3 0.990099009901 11
7 30 30.4 0.4 1.3157894736842 12
8 29 29.8 0.8 2.6845637583893 13
9 29 29.8 0.8 2.6845637583893 14
10 29 30 1 3.3333333333333 15
Jumlah 27.655724276547 16
Rata-rata galat (error) 2.7655724276547 17
18
Soal 2 Hitung Nilai Error 19
Pengukuran (℃) 20
No Error (℃) Error Relatif (%)
Nilai Sensor (℃) Alat Ukur (℃) 21
1 29.1 29.1 0 0 22
2 28.2 28.2 0 0 23
3 29.1 29.8 0.7 2.3489932885906 24
4 29.6 29.3 0.3 1.0238907849829 25
5 30.4 30.2 0.2 0.6622516556291 26
6 29.8 29.7 0.1 0.3367003367003 27
7 29 29 0 0 28
8 30.2 30.3 0.1 0.3300330033003 29
9 30.1 30.6 0.5 1.6339869281046 30
10 28.7 29.1 0.4 1.3745704467354 31
Selisih/Error rata-rata 0.7710426444043 32
33
Soal 3 Hitung Nilai Error 34
Pengukuran 35
No Error Error Relatif (%)
Nilai Sensor Alat Ukur 36
1 77 77 0 0 37
2 78 79 1 1.2658227848101 38
3 79 81 2 2.4691358024691 39
4 81 80 1 1.25 40
5 85 85 0 0 41
6 85 86 1 1.1627906976744 42
7 83 85 2 2.3529411764706 43
8 86 87 1 1.1494252873563 44
9 88 89 1 1.123595505618 45
10 81 79 2 2.5316455696203 46
Selisih/Error rata-rata 1.1 1.3305356824019 47
48
Soal 4 Hitung Nilai Error 49
Pengukuran(C) 50
No Error Error Relatif (%)
Nilai Sensor(cm) Alat Ukur (cm) 51
1 25 25 0 0 52
2 23 23 0 0 53
3 22 21 1 4.7619047619048 54
4 20 20 0 0 55
5 18 19 1 5.2631578947369 56
6 15 15 0 0 57
7 14 14 0 0 58
8 13 12 1 8.3333333333333 59
9 8 10 2 20 60
10 5 4 1 25 61
Selisih/Error rata-rata 0.6 6.3358395989975 62
63
Soal 5 Hitung Nilai Error 64
Pengukuran(C) 65
No Error Error Relatif (%)
Nilai Sensor(cm) Alat Ukur (cm) 66
1 30 30 0 0 67
2 23 22 1 4.5454545454546 68
3 21 21 0 0 69
4 18 16 2 12.5 70
5 16 16 0 0 71
6 15 15 0 0 72
7 12 11 1 9.0909090909091 73
8 10 8 2 25 74
9 8 8 0 0 75
10 6 7 1 14.285714285714 76
Selisih/Error rata-rata 0.7 6.5422077922078 77
78
79
80
81
82
83
84
85
86
87
88
89
90
Hitung Confusion Matrix
Nilai Output Algoritma Nilai Real Error Banyak Data: 90
0 0 0
0 0 0 True=1
0 0 0 False=0
0 0 0
0 0 0
0 0 0
0 0 0 1
Nilai Prediksi
0 0 0 0
0 0 0 Total
0 0 0
0 0 0 Jadi: TP
0 0 0 TN
0 0 0 FP
0 0 0 FN
0 0 0
0 0 0 Precision TP/(TP+FP)
0 0 0 Recall TP/(TP+FN)
0 0 0 Accuracy TP+TN/(TP+TN+FP+FN)
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
0 0 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
0 1 1
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
0 1 1
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
0 1 1
1 1 0
1 1 0
1 1 0
1 1 0
0 1 1
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
1 1 0
Soal 7 Hitung Confusion Matrix dari data multiclass
Expected
1 2 3
1 52 3 7
Predict 2 2 28 2
ed 3 5 2 25
Nilai Sebenarnya 4 1 1 9
Total
1 0 Jumlah 60 34 43
62 0 62
4 24 28 Kelas 1 TP 52
66 24 90 TN 8
FP 12
62 FN 119
24 Jadi:
0 Kelas 2 TP 28
4 TN 6 Kelas
FP 4 1
1 100% FN 153 2
0.9393939394 94% 3
P+TN/(TP+TN+FP+FN) 0.9555555556 96% Kelas 3 TP 25 4
TN 18 Akurasi Rata-r
FP 19
FN 129

Kelas 4 TP 40
TN 14
FP 11
FN 126
Soal 8 Hitung Confusion Matrix dari data multiclass
xpected
4 Jumlah 1 2 3
2 64 1 137 13 3
0 32 2 1 55 1
12 44 3 2 4 84
40 51 4 3 0 1
54 191 Target 5 0 0 3
6 0 0 2
7 0 0 0
8 0 0 0
9 0 0 0
Precision TP/(TP+FP)
Recall TP/(TP+FN) Kelas 1 TP 137 Kelas 6
Accuracy TP+TN/(TP+TN+FP+FN) TN 6
Precision Recall Accuracy FP 18
0.8125 0.3040935673 0.3141361257 FN 582
0.875 0.1546961326 0.1780104712
0.5681818182 0.1623376623 0.2251308901 Kelas 2 TP 55 Kelas 7
0.7843137255 0.2409638554 0.2827225131 TN 17
Akurasi Rata-rata 0.25 FP 9
FN 662

Kelas 3 TP 84 Kelas 8
TN 10
FP 10
FN 639

Kelas 4 TP 153 Kelas 9


TN 2
FP 14
FN 574

Kelas 5 TP 44
TN 9
FP 10
FN 680
data multiclass
Selected Accuracy
4 5 6 7 8 9
0 0 1 1 0 0 0.89
0 0 0 0 6 1 0.86
0 0 0 1 1 2 0.89
153 5 2 1 1 1 0.92
0 44 2 2 1 2 0.82
1 4 35 0 0 1 0.81
0 0 0 61 2 2 0.94
1 0 0 0 69 3 0.95
0 0 0 0 2 26 0.93
Jumlah 743 0.89
TP 35
TN 5 Precision TP/(TP+FP)
FP 8 Jadi: Recall TP/(TP+FN)
FN 695 Accuracy TP+TN/(TP+TN+FP+FN)
Kelas Precision Recall Accuracy
TP 61 1 0.8838709677 0.19054242 0.1924629879
TN 5 2 0.859375 0.0767085077 0.0969044415
FP 4 3 0.8936170213 0.1161825726 0.1265141319
FN 673 4 0.9161676647 0.2104539202 0.2086137281
5 0.8148148148 0.0607734807 0.0713324361
TP 69 6 0.8139534884 0.0479452055 0.0538358008
TN 13 7 0.9384615385 0.083106267 0.0888290713
FP 4 8 0.9452054795 0.0950413223 0.1103633917
FN 657 9 0.9285714286 0.0356652949 0.0511440108
Akurasi Rata-rata 0.1111111111
TP 26
TN 12
FP 2
FN 703

You might also like