Page 320 - AI Ver 1.0 Class 10
P. 320

The confusion matrix for the same is:

                    The Confusion Matrix                    Reality:1                        Reality: 0


                         Prediction:1                          22                               12


                         Prediction:0                          47                               18


              Calculate Accuracy, Precision, Recall and F1 Score for the above problem.

                                                        TP                 FP


                                                        22                 12


                                                        47                 18




                                                                   (TP+ TN)
                                                  Accuracy  =                     × 100
                                                              (TP+ TN+FP+FN)


                                                                   22 18
                                                                      +
                                                            =                      × 100
                                                              ( 22 18 +  12 +  47)
                                                                 +
                                                               40
                                                            =      × 100 = 40.04%
                                                               99



                                                                 TP                                                                                                                      Exercise
                                                     Recall  =         = .31
                                                               TP +FN
                                                                                                                                                                                     Solved Questions
                                                                  Precision×Recall
                                                   F1 Score  =  2 ×
                                                                  Precision+Recall                                                                                           SECTION A (Objective Type Questions)
                                                                                                                                                   uiz
                                                                    .
                                                                  64 70 . 31
                                                                       ×
                                                            =  2 ×                                                                          A.  Tick ( ) the correct option.
                                                                  64 70 +  . 31
                                                                    .
                                                                                                                                                1.  Which of the following is true for Accuracy?
                                                                  20.057   40.114                                                                  a.  It is defined as the percentage of correct predictions out of all the observations.
                                                            =  2 ×       =         = 0.61
                                                                  65.01     65.01                                                                  b.  It is defined as the percentage of true positive cases versus all the cases where the prediction is true.
                                                                                                                                                   c.  It can be defined as the fraction of positive cases that are correctly identified.
                                                                 TP
                                                  Precision  =         × 100                                                                       d.  None of the above
                                                               TP +FP
                                                                                                                                                2.  What is the formula for Accuracy?
                                                                 22
                                                            =          × 100 = 64.70%                                                                              (TP + TN)                                          (FP + TN)
                                                              22+12                                                                                a.  Accuracy =  (TP + TN + FP + FN)  × 100%       b.  Accuracy =   (TP + TN + FP + FN)   × 100%

                                                                                                                                                                   (FP + FN)                                          (TP + FN)
                                                                                                                                                   c.  Accuracy =               × 100%               d.  Accuracy =                × 100%
                                                                                                                                                               (TP + TN + FP + FN)                                (TP + TN + FP + FN)

                        318   Touchpad Artificial Intelligence-X
   315   316   317   318   319   320   321   322   323   324   325