3.5.2.30 mbe


Description

mbe (Mean-Bias-Error) function returns the mean bias error between pridiction and observation vector.

The mbe value between a prediction dataset y of n values \{x_1, \ x_2,..., \ x_n\} and an observation dataset x \{y_1, \ y_2,..., \ y_n\}, is given by:

MBE = \frac{\sum_{i=1}^{n} (x_i-y_i)}{n}

Syntax

double mbe(dataset vobs, dataset vpred)

Parameters

vobs

Input, obsevation vector.

vpred

Input, prediction vector.

Return

Return the mean bias error of a vector.

Note: Missing data, masked data and text in vobs and vpred won't be counted.

Example

//Calculate the mean bias error of column A and B
yr = mbe(col(A),col(B));

See Also

mae, rmse, rms