Model Evaluation

3 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€47.33
List Price:  €66.27
You save:  €18.93
£39.56
List Price:  £55.39
You save:  £15.82
CA$70.08
List Price:  CA$98.13
You save:  CA$28.04
A$76.94
List Price:  A$107.73
You save:  A$30.78
S$66.97
List Price:  S$93.76
You save:  S$26.79
HK$389.07
List Price:  HK$544.73
You save:  HK$155.66
CHF 44.14
List Price:  CHF 61.80
You save:  CHF 17.65
NOK kr551.91
List Price:  NOK kr772.72
You save:  NOK kr220.80
DKK kr353.08
List Price:  DKK kr494.34
You save:  DKK kr141.26
NZ$84.92
List Price:  NZ$118.90
You save:  NZ$33.97
د.إ183.61
List Price:  د.إ257.06
You save:  د.إ73.45
৳5,945.13
List Price:  ৳8,323.66
You save:  ৳2,378.52
₹4,220.55
List Price:  ₹5,909.11
You save:  ₹1,688.55
RM223.60
List Price:  RM313.06
You save:  RM89.46
₦83,372.82
List Price:  ₦116,728.62
You save:  ₦33,355.80
₨13,820.59
List Price:  ₨19,349.93
You save:  ₨5,529.34
฿1,727.53
List Price:  ฿2,418.69
You save:  ฿691.15
₺1,729.22
List Price:  ₺2,421.05
You save:  ₺691.82
B$290
List Price:  B$406.02
You save:  B$116.02
R903.60
List Price:  R1,265.11
You save:  R361.51
Лв92.69
List Price:  Лв129.77
You save:  Лв37.08
₩69,708.73
List Price:  ₩97,597.80
You save:  ₩27,889.07
₪186.93
List Price:  ₪261.71
You save:  ₪74.78
₱2,944.96
List Price:  ₱4,123.18
You save:  ₱1,178.21
¥7,687.15
List Price:  ¥10,762.63
You save:  ¥3,075.47
MX$1,011.64
List Price:  MX$1,416.38
You save:  MX$404.73
QR181.44
List Price:  QR254.03
You save:  QR72.59
P678.74
List Price:  P950.29
You save:  P271.55
KSh6,461.20
List Price:  KSh9,046.20
You save:  KSh2,585
E£2,476.30
List Price:  E£3,467.03
You save:  E£990.72
ብር6,158.55
List Price:  ብር8,622.47
You save:  ብር2,463.91
Kz45,615.87
List Price:  Kz63,865.87
You save:  Kz18,250
CLP$48,593.25
List Price:  CLP$68,034.44
You save:  CLP$19,441.19
CN¥361.94
List Price:  CN¥506.75
You save:  CN¥144.80
RD$2,997.57
List Price:  RD$4,196.84
You save:  RD$1,199.27
DA6,668.59
List Price:  DA9,336.57
You save:  DA2,667.97
FJ$113.46
List Price:  FJ$158.85
You save:  FJ$45.39
Q384.37
List Price:  Q538.15
You save:  Q153.77
GY$10,408.46
List Price:  GY$14,572.68
You save:  GY$4,164.21
ISK kr6,877.62
List Price:  ISK kr9,629.22
You save:  ISK kr2,751.60
DH498.12
List Price:  DH697.40
You save:  DH199.28
L908.58
List Price:  L1,272.08
You save:  L363.50
ден2,912.59
List Price:  ден4,077.86
You save:  ден1,165.27
MOP$398.90
List Price:  MOP$558.50
You save:  MOP$159.59
N$901.01
List Price:  N$1,261.49
You save:  N$360.47
C$1,831.01
List Price:  C$2,563.56
You save:  C$732.55
रु6,716.80
List Price:  रु9,404.05
You save:  रु2,687.25
S/189.10
List Price:  S/264.76
You save:  S/75.65
K200.13
List Price:  K280.20
You save:  K80.07
SAR187.66
List Price:  SAR262.74
You save:  SAR75.08
ZK1,371.88
List Price:  ZK1,920.74
You save:  ZK548.86
L235.56
List Price:  L329.81
You save:  L94.24
Kč1,198.15
List Price:  Kč1,677.50
You save:  Kč479.35
Ft19,266.03
List Price:  Ft26,973.98
You save:  Ft7,707.95
SEK kr548.53
List Price:  SEK kr767.99
You save:  SEK kr219.45
ARS$49,915.93
List Price:  ARS$69,886.30
You save:  ARS$19,970.36
Bs343.78
List Price:  Bs481.32
You save:  Bs137.54
COP$221,073.29
List Price:  COP$309,520.29
You save:  COP$88,447
₡25,336.89
List Price:  ₡35,473.68
You save:  ₡10,136.78
L1,256.69
List Price:  L1,759.47
You save:  L502.78
₲387,767.04
List Price:  ₲542,904.89
You save:  ₲155,137.84
$U2,146.25
List Price:  $U3,004.92
You save:  $U858.67
zł204.87
List Price:  zł286.84
You save:  zł81.96
Already have an account? Log In

Transcript

Okay, so let's say after we create our model after we train our model from this classification algorithm, prediction algorithm, or regressions or algorithms, or these are clustering algorithms. So how do we evaluate our model? So for let's say regressions all those are prediction model, we can use our r square, or the sum of square of residue or sum of squared error and total sum of squares to evaluate our model to see how accurate our model is. So far, these are some r square residue or sum of squares error is that area. That will be easy to understand. So let's say we have a actual y minus the predicted y Then we square the whole thing.

So, we have the error and then we sum everything. So, we sum all the rows that we have actually are predicted and then we will get a total error. So, this will be the sum of squared residuals sum of square then for r square is small for this simple linear regression. So you for r square will be one minus SS E divided by SST So, SST will be the sum of Y minus the mean of why, and then from these SST and SS, our SS E, we can calculate the R square. And we can use all these to see how accurate our model is or what is the error in our model. So far these are so, S e SS and SS T or r square is more for prediction.

So our prediction is more for predicting those continuous or numerical variables. So if we are predicting ESEA categorical variables, and that is classification, we can use a confusion matrix to evaluate the accuracy of our model. So let's say we predicted No. We predicted yes the actual no the actual Yes. So we predicted no and the answer is also know. We have Pt repre data, yes.

But there actually is no, there is a right hand. we predicted No, the answer is yes, there is a rock fi. we predicted Yes, the answer is yes, there is around 110. From this confusion matrix, we can calculate a sum here. So we'll be picking plus 1065 plus one or 105 10 plus 1110 Vt plus 585. So in this confusion matrix, we can calculate the accuracy and precision and we can also calculate a recall.

So true positive is predicted yes and they have the disease shown activities are predicted no and they don't have the disease. false positive predictor yes and no and they don't have the disease. Pause possible negatives predicted nobody had the disease. So we can use all these two are calculator accuracy and precision.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.