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
€48.10
List Price:  €67.34
You save:  €19.24
£39.96
List Price:  £55.94
You save:  £15.98
CA$71.89
List Price:  CA$100.65
You save:  CA$28.76
A$80.23
List Price:  A$112.33
You save:  A$32.10
S$67.90
List Price:  S$95.07
You save:  S$27.16
HK$388.49
List Price:  HK$543.93
You save:  HK$155.43
CHF 44.72
List Price:  CHF 62.61
You save:  CHF 17.89
NOK kr570.92
List Price:  NOK kr799.33
You save:  NOK kr228.41
DKK kr358.78
List Price:  DKK kr502.32
You save:  DKK kr143.54
NZ$88.75
List Price:  NZ$124.25
You save:  NZ$35.50
د.إ183.61
List Price:  د.إ257.07
You save:  د.إ73.45
৳5,996.77
List Price:  ৳8,395.96
You save:  ৳2,399.18
₹4,247.89
List Price:  ₹5,947.38
You save:  ₹1,699.49
RM225.35
List Price:  RM315.51
You save:  RM90.16
₦77,806.43
List Price:  ₦108,935.23
You save:  ₦31,128.80
₨13,966.08
List Price:  ₨19,553.63
You save:  ₨5,587.55
฿1,722.05
List Price:  ฿2,411.01
You save:  ฿688.96
₺1,759.09
List Price:  ₺2,462.87
You save:  ₺703.77
B$308.73
List Price:  B$432.25
You save:  B$123.52
R918.80
List Price:  R1,286.40
You save:  R367.59
Лв94.14
List Price:  Лв131.81
You save:  Лв37.66
₩72,428.88
List Price:  ₩101,406.23
You save:  ₩28,977.34
₪182.42
List Price:  ₪255.41
You save:  ₪72.98
₱2,941.21
List Price:  ₱4,117.93
You save:  ₱1,176.72
¥7,835.62
List Price:  ¥10,970.49
You save:  ¥3,134.87
MX$1,014.35
List Price:  MX$1,420.18
You save:  MX$405.82
QR183.15
List Price:  QR256.43
You save:  QR73.27
P691.23
List Price:  P967.77
You save:  P276.54
KSh6,461.20
List Price:  KSh9,046.20
You save:  KSh2,585
E£2,545.38
List Price:  E£3,563.73
You save:  E£1,018.35
ብር6,381.64
List Price:  ብር8,934.81
You save:  ብር2,553.16
Kz45,890.82
List Price:  Kz64,250.82
You save:  Kz18,360
CLP$49,572.58
List Price:  CLP$69,405.58
You save:  CLP$19,833
CN¥364.87
List Price:  CN¥510.85
You save:  CN¥145.97
RD$3,051.95
List Price:  RD$4,272.98
You save:  RD$1,221.02
DA6,726.62
List Price:  DA9,417.81
You save:  DA2,691.18
FJ$116.04
List Price:  FJ$162.47
You save:  FJ$46.42
Q386.56
List Price:  Q541.22
You save:  Q154.65
GY$10,499.17
List Price:  GY$14,699.69
You save:  GY$4,200.51
ISK kr6,951.10
List Price:  ISK kr9,732.10
You save:  ISK kr2,781
DH503.65
List Price:  DH705.15
You save:  DH201.50
L920.80
List Price:  L1,289.19
You save:  L368.39
ден2,960.95
List Price:  ден4,145.57
You save:  ден1,184.61
MOP$401.67
List Price:  MOP$562.37
You save:  MOP$160.70
N$917.26
List Price:  N$1,284.24
You save:  N$366.97
C$1,846.97
List Price:  C$2,585.91
You save:  C$738.93
रु6,832.10
List Price:  रु9,565.49
You save:  रु2,733.38
S/187.33
List Price:  S/262.28
You save:  S/74.94
K203.41
List Price:  K284.79
You save:  K81.38
SAR187.84
List Price:  SAR262.99
You save:  SAR75.15
ZK1,388.84
List Price:  ZK1,944.48
You save:  ZK555.64
L239.38
List Price:  L335.15
You save:  L95.77
Kč1,209
List Price:  Kč1,692.70
You save:  Kč483.70
Ft19,898.24
List Price:  Ft27,859.13
You save:  Ft7,960.89
SEK kr551.77
List Price:  SEK kr772.53
You save:  SEK kr220.75
ARS$51,090.27
List Price:  ARS$71,530.46
You save:  ARS$20,440.19
Bs346.77
List Price:  Bs485.50
You save:  Bs138.73
COP$218,877.66
List Price:  COP$306,446.24
You save:  COP$87,568.58
₡25,237.64
List Price:  ₡35,334.71
You save:  ₡10,097.07
L1,273.89
List Price:  L1,783.55
You save:  L509.65
₲392,023.82
List Price:  ₲548,864.71
You save:  ₲156,840.89
$U2,229.98
List Price:  $U3,122.15
You save:  $U892.17
zł204.96
List Price:  zł286.96
You save:  zł82
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.