MATLAB Answers

MSE, RMSE and any other useful evaluation metrics

8 views (last 30 days)
Sadiq Akbar
Sadiq Akbar on 22 Oct 2019
Edited: KALYAN ACHARJYA on 22 Oct 2019
If I have 100 vectors of error and each error vector has got four elements, then how can we we find its MSE, RMSE and any other performance metric? e.g. If I have my desired vector as u=[0.5 1 0.6981 0.7854] and I have estimated vectors like as: Est1=[0.499 0.99 0.689 0.779], Est2=[0.500 1.002 0.699 0.77], Est3=[0.489 0.989 0.698 0.787],---Est100=[---],
Then Error1=u-Est1; Error2=u-Est2 and so on up to Error100=u-Est100. Now how can we find the MSE, RMSE and tell me others as well that are used to indicate the perofrmance of the algorithm. please tell me in the form of easy code.
Regards,
Sadiq Akbar

  0 Comments

Sign in to comment.

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 22 Oct 2019
Edited: KALYAN ACHARJYA on 22 Oct 2019
The u vector as follows (As per question)
u=[0.5 1 0.6981 0.7854];
Est1=[0.499 0.99 0.689 0.779],
Est2=[0.500 1.002 0.699 0.77];
Est3=[0.489 0.989 0.698 0.787];
% So on......
% Save all Est in cell array, help easy to call
Est={Est1,Est1,Est1};
for i=length(Est)
err(i)=mse(u,Est{1});
end
err % this err gives the err for three each pair
Next, hope you can implment RMSE by yourself , help here
Good Luck!

  0 Comments

Sign in to comment.