Evaluation
Evaluation
• Regression
• Classification
Evaluation of Prediction Model
• BIAS - The arithmetic mean of the errors
𝑛 𝑛
Σ𝑖=1 (𝑦𝑖 − 𝑦ො𝑖 ) Σ𝑖=1 𝑒𝑟𝑟𝑜𝑟
𝐵𝐼𝐴𝑆 = =
𝑛 𝑛
• n is the number of test samples.
𝑛 𝑦𝑖 − 𝑦ො𝑖
Σ𝑖=1 ∗ 100%
𝑦𝑖
𝑀𝐴𝑃𝐸 =
𝑛
Evaluation of Prediction Model
• Root relative squared error - RRSE
𝑛 2
Σ𝑖=1 𝑦𝑖 − 𝑦ො𝑖
𝑅𝑅𝑆𝐸 = 𝑛 2
Σ𝑖=1 𝑦𝑖 − 𝑦ത𝑖
• In general, the lower the error measure (BIAS, MAD, MSE, MAPE,
RRSE) or the higher the 𝑅2 , 𝑟 the better the forecasting model
Which measure?
• Best to look at all of them
• Often it doesn’t matter
• Example:
Prediction Model
• Regression
• Classification
Evaluation of Prediction Model
• Two-class case (yes, no)
1 𝛽 2 +1 𝑃∙𝑅
𝐹𝛽 = 𝛽2
=
∙
1
+
1
∙
1 𝛽 2 𝑃+𝑅
𝛽2 +1 𝑅𝑒𝑐𝑎𝑙𝑙 𝛽2 +1 𝑃𝑟𝑒𝑐𝑖𝑠𝑖𝑜𝑛