2

CalibrationReport CV-RMSE and NMBE computation

In the UtilityBill measure, the formulas for computing NMBE and CV-RMSE include an 'n-1' rather than just an 'n' in the denominator. For example:

Source: https://github.com/NREL/OpenStudio/bl...

result = 100.0 * std::pow(squaredError / (n - 1), 0.5) / ybar;
result = 100.0 * (sumError / (n - 1)) / ybar;

Why doesn't the formula just use 'n' as described in the definition, e.g. https://www.kw-engineering.com/how-to...

Thank you

rimas-maalka's avatar
41
rimas-maalka
asked 2021-11-16 15:20:58 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2022-02-07 14:20:57 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

4

In this case, when you are estimating the variance you don't know what the real mean is so you have to use an estimate of the mean instead of the true mean. Estimating the mean reduces the degrees of freedom (number of samples) by one so you use N-1 instead of N which results in a slightly larger estimate of the variance. This link might help a bit:

https://stats.libretexts.org/Bookshel...

macumber's avatar
12k
macumber
answered 2021-11-16 20:15:45 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments