Skip to main content

 Sự khác nhau giữa độ chính xác (Precision) và độ nhắc lại (Recall). (Viết lại)


Predicted \Fact:           Positives  |    Negatives

Positives        ||               TP            |       FN 

-------------   ---------------------------

Negatives       ||               FP            |       TN



Độ chính xác mô tả ý nghĩa như sau: 

Giả sử ta có một quần thể cần tìm ra trong quần thể có bao nhiêu cá thể dương tính (Positives) và bao nhiêu cá thể âm tính (Negatives). 

Một phương pháp A có độ chính xác (precision) 80% có nghĩa là nếu ta thực hiện 100 mẫu kiểm định và phát hiện ra 40 mẫu có phát hiện  có dương tính trong đó, thì với độ chính xác 80%, khả năng là 40*0.8 = 32  mẫu là dương tính thật còn 8 mẫu dương tính đó khả năng là dương tính giả.

Cũng phương pháp A đó, nếu nó có độ nhắc lại (recall) là 70% có nghĩa là trong quần thể giả sử có 50 dương tính thật thì phương pháp này cho phép phân lập nhiều nhất có thể là  50*0.7 = 35 phần tử trong quần thể đó là có dương tính. Vì cách tính này dựa trên số lượng Dương tính thật của quần thể cho nên để thực hiện tính nó cần thực hiện một nhóm thử nghiệm để xác định tổng số dương tính thực trong quần thể.

Về mặt định nghĩa thì ta sẽ có công thức như sau:

Precision = TP/(TP + FP)

Recall = TP/(TP + FN)

Ta có thể thấy Độ chính xác liên quan tới số cá thể có thể phát hiện ra từ một kiểm định, trong khi độ nhắc lại phản ánh độ phân loại trong nhóm thử nghiệm. Do đó ta có thể dùng thay thế bởi hai từ thuật ngữ khác là 

Độ nhạy(Sensitivity) thay cho độ nhắc lại

Độ đặc hiệu(Specificity)  cho phép đánh gia công dụng của một phương pháp tác động lên quần thể thoongqua số lượng âm tính mà phương pháp tạo ra được.

Specificity = TN/(TN + FP)


Comments

Popular posts from this blog

Arduino Code for test Heart Rate 7 Click

Heart Rate 7 Click is the newest module from MikroE which uses VEM8080 photodetector has a wide range spectrum from 300nm - 1000nm. To control and acquisition data, AFE4404 from TI inc. is adopted. This chip permits control 3 LED channels, and sample heart rate default 100 SPS.  A 22-bit ADC permit collecting very small changed voltage from a PD sensor. In this example we config Arduino Mega  2650 as below: Pin 4 for RST PIN 5 CLK PIN 6 INT PIN 20 SDA PIN 21 SCL Config registers follow the default of AFE4404 datasheet Page 27 with some minor changes. 1. Config Internal Clock through  AFE_CONTROL2 register addr.: 0x23 value: 0x104218  // setup all dynamic power to save energy 2. Control LED2 current through AFE_LEDCNTRL register addr: 0x22 value: 0x000100 3. Read data using PROG_TG_EN signal through AFE_TIA_GAIN register addr: 0x21 value: 0x000125 Time to start and end of PROG_TG setup through two registers: AFE_PROG_TG_STC register (...
Serial Port Profile with CC2650 and CC2640R2 (part 2) Modified to transfer ADC values up to PC Step 1:  Include ACD.h library #include <ti/drivers/ADC.h>  Step 2: Insert period event in order to update ADC read values from the potentiometer #define SSSS_ICALL_EVT                         ICALL_MSG_EVENT_ID // Event_Id_31 #define SSSS_QUEUE_EVT                         UTIL_QUEUE_EVENT_ID // Event_Id_30 #define SSSS_PERIODIC_EVT                      Event_Id_00 //SOLUTION // Bitwise OR of all events to pend on #define SSSS_ALL_EVENTS                        (SSSS_ICALL_EVT        | \                                ...
Programing on Launchpad MSP432 Interrupt button Prerequisite: Hardware: Launchpad MSP432P401 IDE software: IAR/CCS/KEIL Tool: Simplelink SDK MSP432 v3.20.00.06 Description: Simple program using two buttons connected to P1.0  and P1.4 to turn on or turn off LED on P1.0 Step1. Open example of Simplelink SDK without RTOS Step2. modify the code as below Step3. Compile and debug the program /* DriverLib Includes */ #include <ti/devices/msp432p4xx/driverlib/driverlib.h> /* Standard Includes */ #include <stdint.h> #include <stdbool.h> volatile uint32_t SW1, SW2; //semaphores void VectorButtons_Init(void){   __disable_interrupt;   //DisableInterrupts();          // set the I bit during initialization   SW1 = 0; SW2 = 0;             // clear semaphores   P1->SEL0 &= ~0x12;   P1->SEL1 &= ~0x12;      P1->D...