50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

DiceEval (version 1.6.1)

MAE: Mean Absolute Error

Description

The mean of absolute errors between real values and predictions.

Usage

MAE(Y, Ypred)

Value

a real which represents the mean of the absolute errors between the real and the predicted values: MAE=1ni=1n|Y(xi)Y^(xi)|

where xi denotes the points of the experimental design, Y the output of the computer code and Y^ the fitted model.

Arguments

Y

a real vector with the values of the output

Ypred

a real vector with the predicted values at the same inputs

Author

D. Dupuy

See Also

other quality criteia as RMSE and RMA.

Examples

Run this code
X	<- seq(-1,1,0.1)
Y	<- 3*X + rnorm(length(X),0,0.5)
Ypred	<- 3*X
MAE(Y,Ypred)

Run the code above in your browser using DataLab