Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page

# 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:

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

edit retag close merge delete

Sort by ยป oldest newest most voted

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...

more