|
⇤ ← Revision 1 as of 2026-02-07 05:42:08
Size: 585
Comment: Initial commit
|
← Revision 2 as of 2026-02-07 05:47:31 ⇥
Size: 701
Comment: Clarification
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 25: | Line 25: |
| Note that this is effectively the same as calculating the [[MATLAB/Norm|Frobenius product]] as `norm(F-A,"fro")`. | Note that this is effectively the same as calculating the [[MATLAB/Norm|Frobenius product]] as `norm(F-A,"fro")` and then dividing it by the square root of the number of elements. (Recall that it is root ''mean'' squared errors.) |
MATLAB rmse
The rmse function calculates root mean squared errors.
Contents
Usage
To calculate the root mean squared errors between two vectors representing predictions ('forecasts') and actual values, try:
rmse(F,A)
To calculate the root mean squared errors between all elements in two same-sized matrices, try:
rmse(F,A,"all")
Note that this is effectively the same as calculating the Frobenius product as norm(F-A,"fro") and then dividing it by the square root of the number of elements. (Recall that it is root mean squared errors.)
