Model evaluation

Practicing Statistics Interview Questions in R

Zuzanna Chmielewska

Actuary

darts

Practicing Statistics Interview Questions in R

the validation set approach

Practicing Statistics Interview Questions in R

the validation set approach

Practicing Statistics Interview Questions in R

the validation set approach

Practicing Statistics Interview Questions in R

the validation set approach

Practicing Statistics Interview Questions in R

the validation set approach

Practicing Statistics Interview Questions in R

Cross-validation

5-fold cross-validation

Practicing Statistics Interview Questions in R

Cross-validation

5-fold cross-validation

Practicing Statistics Interview Questions in R

Cross-validation

5-fold cross-validation

Practicing Statistics Interview Questions in R

Cross-validation

5-fold cross-validation

Practicing Statistics Interview Questions in R

Cross-validation

5-fold cross-validation

Practicing Statistics Interview Questions in R

Cross-validation

5-fold cross-validation

Practicing Statistics Interview Questions in R

Cross-validation

5-fold cross-validation

Practicing Statistics Interview Questions in R

Confusion matrix

the confusion matrix

Practicing Statistics Interview Questions in R

Confusion matrix

the confusion matrix

Practicing Statistics Interview Questions in R

Confusion matrix

the confusion matrix

Practicing Statistics Interview Questions in R

Confusion matrix

the confusion matrix

Practicing Statistics Interview Questions in R

Classification metrics

the confusion matrix

$\text{accuracy} = \frac{TP+TN}{TP+TN+FP+FN}$

$\text{precision} = \frac{TP}{TP+FP}$

$\text{recall} = \frac{TP}{TP+FN}$

Practicing Statistics Interview Questions in R

Classification metrics

Precision

spam

Recall

virus

Practicing Statistics Interview Questions in R

Regression metrics

errors of a linear regression model

Practicing Statistics Interview Questions in R

Regression metrics

errors of a linear regression model

Practicing Statistics Interview Questions in R

Regression metrics

errors of a linear regression model

Root Mean Squared Error

$RMSE = \sqrt{\frac{1}{n}\sum_{i=1}^{n} (y_i - \hat{y}_i)^2}$

Mean Absolute Error

$MAE = \frac{1}{n} \sum_{i=1}^{n} |y_i - \hat{y}_i|$

Practicing Statistics Interview Questions in R

Regression metrics

Root Mean Squared Error

$RMSE = \sqrt{\frac{1}{n}\sum_{i=1}^{n} (y_i - \hat{y}_i)^2}$

  • high weight to large errors

Mean Absolute Error

$MAE = \frac{1}{n} \sum_{i=1}^{n} |y_i - \hat{y}_i|$

  • straightforward interpretation
Practicing Statistics Interview Questions in R

Summary

  • validation set approach
  • cross-validation
  • confusion matrix
  • classification metrics
  • regression metrics
Practicing Statistics Interview Questions in R

Let's practice!

Practicing Statistics Interview Questions in R

Preparing Video For Download...