The square root of MSE. \[ MSE=\frac{1}{n}\sum^n_{i=1}(y_i-y_i^{'})^2 \]
library(caret)
## Loading required package: lattice
## Loading required package: ggplot2
observed <- c(52, 19, 98)
predicted <- c(53, 30, 31)
RMSE(predicted, observed)
## [1] 39.20459
R\(^2\):
R2(predicted, observed)
## [1] 0.003160913
Rank correlation takes the ranks of the observed outcome values and evaluates how close these are to ranks of the model predictions.
cor(predicted, observed)
## [1] -0.056222
cor(predicted, observed, method = "spearman")
## [1] 0.5
To mitigating problem of collinearity by increasing model bias to reduce model variance.
Squared model bias reflects how closely the model can echo real relationship between predictors and the outcome. Simple models tend to under-fit and thus have high bias.
Variance increases with models complexity acommpanied with over-fitting or due to highly correlated predictors.