Mean squared error and NMSE

97 views (last 30 days)
Murali Krishna AG
Murali Krishna AG on 26 Oct 2021
Commented: Diwakar Diwakar on 17 Sep 2023
Let he is estimated vector and h is original vector which is unknown. The Mean squared error (MSE) is defined as norm(he-h)^2. Now , how to get h original vector using he and MSE? ..pls help me
  1 Comment
Diwakar Diwakar
Diwakar Diwakar on 17 Sep 2023
Generate some sample data for demonstration purposes
% You should replace this with your actual data
h_true = rand(1, 100);
noise = 0.1 * randn(1, 100); % Simulated noise
he = h_true + noise; % Estimated vector with noise
% Define hyperparameters
learning_rate = 0.01;
num_iterations = 1000;
% Initialize the estimated vector with random values
he_estimate = rand(1, 100);
% Gradient descent optimization
for iter = 1:num_iterations
% Calculate the gradient of the MSE loss
gradient = 2 * (he_estimate - he) * he_estimate';
% Update the estimated vector he_estimate
he_estimate = he_estimate - learning_rate * gradient;
% Calculate the current MSE
current_mse = norm(he_estimate - he)^2;
% Display the MSE at each iteration (optional)
fprintf('Iteration %d, MSE: %.4f\n', iter, current_mse);
end
Iteration 1, MSE: 20.9528 Iteration 2, MSE: 23.5143 Iteration 3, MSE: 26.3126 Iteration 4, MSE: 29.9879 Iteration 5, MSE: 35.8007 Iteration 6, MSE: 47.2753 Iteration 7, MSE: 78.1015 Iteration 8, MSE: 214.3499 Iteration 9, MSE: 1741.9512 Iteration 10, MSE: 121250.5092 Iteration 11, MSE: 588676619.5794 Iteration 12, MSE: 13861843807810676.0000 Iteration 13, MSE: 7686028577253918231700059455488.0000 Iteration 14, MSE: 2363001411614556870655872893799869451664282048439527032225792.0000 Iteration 15, MSE: 223351026851695503741178766792080463553073827505424017635935069793609627279200652276771019157782823532296645542515048448.0000 Iteration 16, MSE: 1995427247828271751331188737846075879562766440380902641245723132818276502821813699360243035232803776681131423321736605829993707915273026187869805002558050941537293301965688079767890621165591617421801506477407407690911226051113840805937152.0000 Iteration 17, MSE: Inf Iteration 18, MSE: Inf Iteration 19, MSE: Inf Iteration 20, MSE: Inf Iteration 21, MSE: Inf Iteration 22, MSE: Inf Iteration 23, MSE: Inf Iteration 24, MSE: Inf Iteration 25, MSE: Inf Iteration 26, MSE: Inf Iteration 27, MSE: Inf Iteration 28, MSE: Inf Iteration 29, MSE: Inf Iteration 30, MSE: Inf Iteration 31, MSE: Inf Iteration 32, MSE: Inf Iteration 33, MSE: Inf Iteration 34, MSE: Inf Iteration 35, MSE: Inf Iteration 36, MSE: Inf Iteration 37, MSE: Inf Iteration 38, MSE: Inf Iteration 39, MSE: Inf Iteration 40, MSE: Inf Iteration 41, MSE: Inf Iteration 42, MSE: Inf Iteration 43, MSE: Inf Iteration 44, MSE: Inf Iteration 45, MSE: Inf Iteration 46, MSE: Inf Iteration 47, MSE: Inf Iteration 48, MSE: Inf Iteration 49, MSE: Inf Iteration 50, MSE: Inf Iteration 51, MSE: Inf Iteration 52, MSE: Inf Iteration 53, MSE: Inf Iteration 54, MSE: Inf Iteration 55, MSE: Inf Iteration 56, MSE: Inf Iteration 57, MSE: Inf Iteration 58, MSE: Inf Iteration 59, MSE: Inf Iteration 60, MSE: Inf Iteration 61, MSE: Inf Iteration 62, MSE: Inf Iteration 63, MSE: Inf Iteration 64, MSE: Inf Iteration 65, MSE: Inf Iteration 66, MSE: Inf Iteration 67, MSE: Inf Iteration 68, MSE: Inf Iteration 69, MSE: Inf Iteration 70, MSE: Inf Iteration 71, MSE: Inf Iteration 72, MSE: Inf Iteration 73, MSE: Inf Iteration 74, MSE: Inf Iteration 75, MSE: Inf Iteration 76, MSE: Inf Iteration 77, MSE: Inf Iteration 78, MSE: Inf Iteration 79, MSE: Inf Iteration 80, MSE: Inf Iteration 81, MSE: Inf Iteration 82, MSE: Inf Iteration 83, MSE: Inf Iteration 84, MSE: Inf Iteration 85, MSE: Inf Iteration 86, MSE: Inf Iteration 87, MSE: Inf Iteration 88, MSE: Inf Iteration 89, MSE: Inf Iteration 90, MSE: Inf Iteration 91, MSE: Inf Iteration 92, MSE: Inf Iteration 93, MSE: Inf Iteration 94, MSE: Inf Iteration 95, MSE: Inf Iteration 96, MSE: Inf Iteration 97, MSE: Inf Iteration 98, MSE: Inf Iteration 99, MSE: Inf Iteration 100, MSE: Inf Iteration 101, MSE: Inf Iteration 102, MSE: Inf Iteration 103, MSE: Inf Iteration 104, MSE: Inf Iteration 105, MSE: Inf Iteration 106, MSE: Inf Iteration 107, MSE: Inf Iteration 108, MSE: Inf Iteration 109, MSE: Inf Iteration 110, MSE: Inf Iteration 111, MSE: Inf Iteration 112, MSE: Inf Iteration 113, MSE: Inf Iteration 114, MSE: Inf Iteration 115, MSE: Inf Iteration 116, MSE: Inf Iteration 117, MSE: Inf Iteration 118, MSE: Inf Iteration 119, MSE: Inf Iteration 120, MSE: Inf Iteration 121, MSE: Inf Iteration 122, MSE: Inf Iteration 123, MSE: Inf Iteration 124, MSE: Inf Iteration 125, MSE: Inf Iteration 126, MSE: Inf Iteration 127, MSE: Inf Iteration 128, MSE: Inf Iteration 129, MSE: Inf Iteration 130, MSE: Inf Iteration 131, MSE: Inf Iteration 132, MSE: Inf Iteration 133, MSE: Inf Iteration 134, MSE: Inf Iteration 135, MSE: Inf Iteration 136, MSE: Inf Iteration 137, MSE: Inf Iteration 138, MSE: Inf Iteration 139, MSE: Inf Iteration 140, MSE: Inf Iteration 141, MSE: Inf Iteration 142, MSE: Inf Iteration 143, MSE: Inf Iteration 144, MSE: Inf Iteration 145, MSE: Inf Iteration 146, MSE: Inf Iteration 147, MSE: Inf Iteration 148, MSE: Inf Iteration 149, MSE: Inf Iteration 150, MSE: Inf Iteration 151, MSE: Inf Iteration 152, MSE: Inf Iteration 153, MSE: Inf Iteration 154, MSE: Inf Iteration 155, MSE: Inf Iteration 156, MSE: Inf Iteration 157, MSE: Inf Iteration 158, MSE: Inf Iteration 159, MSE: Inf Iteration 160, MSE: Inf Iteration 161, MSE: Inf Iteration 162, MSE: Inf Iteration 163, MSE: Inf Iteration 164, MSE: Inf Iteration 165, MSE: Inf Iteration 166, MSE: Inf Iteration 167, MSE: Inf Iteration 168, MSE: Inf Iteration 169, MSE: Inf Iteration 170, MSE: Inf Iteration 171, MSE: Inf Iteration 172, MSE: Inf Iteration 173, MSE: Inf Iteration 174, MSE: Inf Iteration 175, MSE: Inf Iteration 176, MSE: Inf Iteration 177, MSE: Inf Iteration 178, MSE: Inf Iteration 179, MSE: Inf Iteration 180, MSE: Inf Iteration 181, MSE: Inf Iteration 182, MSE: Inf Iteration 183, MSE: Inf Iteration 184, MSE: Inf Iteration 185, MSE: Inf Iteration 186, MSE: Inf Iteration 187, MSE: Inf Iteration 188, MSE: Inf Iteration 189, MSE: Inf Iteration 190, MSE: Inf Iteration 191, MSE: Inf Iteration 192, MSE: Inf Iteration 193, MSE: Inf Iteration 194, MSE: Inf Iteration 195, MSE: Inf Iteration 196, MSE: Inf Iteration 197, MSE: Inf Iteration 198, MSE: Inf Iteration 199, MSE: Inf Iteration 200, MSE: Inf Iteration 201, MSE: Inf Iteration 202, MSE: Inf Iteration 203, MSE: Inf Iteration 204, MSE: Inf Iteration 205, MSE: Inf Iteration 206, MSE: Inf Iteration 207, MSE: Inf Iteration 208, MSE: Inf Iteration 209, MSE: Inf Iteration 210, MSE: Inf Iteration 211, MSE: Inf Iteration 212, MSE: Inf Iteration 213, MSE: Inf Iteration 214, MSE: Inf Iteration 215, MSE: Inf Iteration 216, MSE: Inf Iteration 217, MSE: Inf Iteration 218, MSE: Inf Iteration 219, MSE: Inf Iteration 220, MSE: Inf Iteration 221, MSE: Inf Iteration 222, MSE: Inf Iteration 223, MSE: Inf Iteration 224, MSE: Inf Iteration 225, MSE: Inf Iteration 226, MSE: Inf Iteration 227, MSE: Inf Iteration 228, MSE: Inf Iteration 229, MSE: Inf Iteration 230, MSE: Inf Iteration 231, MSE: Inf Iteration 232, MSE: Inf Iteration 233, MSE: Inf Iteration 234, MSE: Inf Iteration 235, MSE: Inf Iteration 236, MSE: Inf Iteration 237, MSE: Inf Iteration 238, MSE: Inf Iteration 239, MSE: Inf Iteration 240, MSE: Inf Iteration 241, MSE: Inf Iteration 242, MSE: Inf Iteration 243, MSE: Inf Iteration 244, MSE: Inf Iteration 245, MSE: Inf Iteration 246, MSE: Inf Iteration 247, MSE: Inf Iteration 248, MSE: Inf Iteration 249, MSE: Inf Iteration 250, MSE: Inf Iteration 251, MSE: Inf Iteration 252, MSE: Inf Iteration 253, MSE: Inf Iteration 254, MSE: Inf Iteration 255, MSE: Inf Iteration 256, MSE: Inf Iteration 257, MSE: Inf Iteration 258, MSE: Inf Iteration 259, MSE: Inf Iteration 260, MSE: Inf Iteration 261, MSE: Inf Iteration 262, MSE: Inf Iteration 263, MSE: Inf Iteration 264, MSE: Inf Iteration 265, MSE: Inf Iteration 266, MSE: Inf Iteration 267, MSE: Inf Iteration 268, MSE: Inf Iteration 269, MSE: Inf Iteration 270, MSE: Inf Iteration 271, MSE: Inf Iteration 272, MSE: Inf Iteration 273, MSE: Inf Iteration 274, MSE: Inf Iteration 275, MSE: Inf Iteration 276, MSE: Inf Iteration 277, MSE: Inf Iteration 278, MSE: Inf Iteration 279, MSE: Inf Iteration 280, MSE: Inf Iteration 281, MSE: Inf Iteration 282, MSE: Inf Iteration 283, MSE: Inf Iteration 284, MSE: Inf Iteration 285, MSE: Inf Iteration 286, MSE: Inf Iteration 287, MSE: Inf Iteration 288, MSE: Inf Iteration 289, MSE: Inf Iteration 290, MSE: Inf Iteration 291, MSE: Inf Iteration 292, MSE: Inf Iteration 293, MSE: Inf Iteration 294, MSE: Inf Iteration 295, MSE: Inf Iteration 296, MSE: Inf Iteration 297, MSE: Inf Iteration 298, MSE: Inf Iteration 299, MSE: Inf Iteration 300, MSE: Inf Iteration 301, MSE: Inf Iteration 302, MSE: Inf Iteration 303, MSE: Inf Iteration 304, MSE: Inf Iteration 305, MSE: Inf Iteration 306, MSE: Inf Iteration 307, MSE: Inf Iteration 308, MSE: Inf Iteration 309, MSE: Inf Iteration 310, MSE: Inf Iteration 311, MSE: Inf Iteration 312, MSE: Inf Iteration 313, MSE: Inf Iteration 314, MSE: Inf Iteration 315, MSE: Inf Iteration 316, MSE: Inf Iteration 317, MSE: Inf Iteration 318, MSE: Inf Iteration 319, MSE: Inf Iteration 320, MSE: Inf Iteration 321, MSE: Inf Iteration 322, MSE: Inf Iteration 323, MSE: Inf Iteration 324, MSE: Inf Iteration 325, MSE: Inf Iteration 326, MSE: Inf Iteration 327, MSE: Inf Iteration 328, MSE: Inf Iteration 329, MSE: Inf Iteration 330, MSE: Inf Iteration 331, MSE: Inf Iteration 332, MSE: Inf Iteration 333, MSE: Inf Iteration 334, MSE: Inf Iteration 335, MSE: Inf Iteration 336, MSE: Inf Iteration 337, MSE: Inf Iteration 338, MSE: Inf Iteration 339, MSE: Inf Iteration 340, MSE: Inf Iteration 341, MSE: Inf Iteration 342, MSE: Inf Iteration 343, MSE: Inf Iteration 344, MSE: Inf Iteration 345, MSE: Inf Iteration 346, MSE: Inf Iteration 347, MSE: Inf Iteration 348, MSE: Inf Iteration 349, MSE: Inf Iteration 350, MSE: Inf Iteration 351, MSE: Inf Iteration 352, MSE: Inf Iteration 353, MSE: Inf Iteration 354, MSE: Inf Iteration 355, MSE: Inf Iteration 356, MSE: Inf Iteration 357, MSE: Inf Iteration 358, MSE: Inf Iteration 359, MSE: Inf Iteration 360, MSE: Inf Iteration 361, MSE: Inf Iteration 362, MSE: Inf Iteration 363, MSE: Inf Iteration 364, MSE: Inf Iteration 365, MSE: Inf Iteration 366, MSE: Inf Iteration 367, MSE: Inf Iteration 368, MSE: Inf Iteration 369, MSE: Inf Iteration 370, MSE: Inf Iteration 371, MSE: Inf Iteration 372, MSE: Inf Iteration 373, MSE: Inf Iteration 374, MSE: Inf Iteration 375, MSE: Inf Iteration 376, MSE: Inf Iteration 377, MSE: Inf Iteration 378, MSE: Inf Iteration 379, MSE: Inf Iteration 380, MSE: Inf Iteration 381, MSE: Inf Iteration 382, MSE: Inf Iteration 383, MSE: Inf Iteration 384, MSE: Inf Iteration 385, MSE: Inf Iteration 386, MSE: Inf Iteration 387, MSE: Inf Iteration 388, MSE: Inf Iteration 389, MSE: Inf Iteration 390, MSE: Inf Iteration 391, MSE: Inf Iteration 392, MSE: Inf Iteration 393, MSE: Inf Iteration 394, MSE: Inf Iteration 395, MSE: Inf Iteration 396, MSE: Inf Iteration 397, MSE: Inf Iteration 398, MSE: Inf Iteration 399, MSE: Inf Iteration 400, MSE: Inf Iteration 401, MSE: Inf Iteration 402, MSE: Inf Iteration 403, MSE: Inf Iteration 404, MSE: Inf Iteration 405, MSE: Inf Iteration 406, MSE: Inf Iteration 407, MSE: Inf Iteration 408, MSE: Inf Iteration 409, MSE: Inf Iteration 410, MSE: Inf Iteration 411, MSE: Inf Iteration 412, MSE: Inf Iteration 413, MSE: Inf Iteration 414, MSE: Inf Iteration 415, MSE: Inf Iteration 416, MSE: Inf Iteration 417, MSE: Inf Iteration 418, MSE: Inf Iteration 419, MSE: Inf Iteration 420, MSE: Inf Iteration 421, MSE: Inf Iteration 422, MSE: Inf Iteration 423, MSE: Inf Iteration 424, MSE: Inf Iteration 425, MSE: Inf Iteration 426, MSE: Inf Iteration 427, MSE: Inf Iteration 428, MSE: Inf Iteration 429, MSE: Inf Iteration 430, MSE: Inf Iteration 431, MSE: Inf Iteration 432, MSE: Inf Iteration 433, MSE: Inf Iteration 434, MSE: Inf Iteration 435, MSE: Inf Iteration 436, MSE: Inf Iteration 437, MSE: Inf Iteration 438, MSE: Inf Iteration 439, MSE: Inf Iteration 440, MSE: Inf Iteration 441, MSE: Inf Iteration 442, MSE: Inf Iteration 443, MSE: Inf Iteration 444, MSE: Inf Iteration 445, MSE: Inf Iteration 446, MSE: Inf Iteration 447, MSE: Inf Iteration 448, MSE: Inf Iteration 449, MSE: Inf Iteration 450, MSE: Inf Iteration 451, MSE: Inf Iteration 452, MSE: Inf Iteration 453, MSE: Inf Iteration 454, MSE: Inf Iteration 455, MSE: Inf Iteration 456, MSE: Inf Iteration 457, MSE: Inf Iteration 458, MSE: Inf Iteration 459, MSE: Inf Iteration 460, MSE: Inf Iteration 461, MSE: Inf Iteration 462, MSE: Inf Iteration 463, MSE: Inf Iteration 464, MSE: Inf Iteration 465, MSE: Inf Iteration 466, MSE: Inf Iteration 467, MSE: Inf Iteration 468, MSE: Inf Iteration 469, MSE: Inf Iteration 470, MSE: Inf Iteration 471, MSE: Inf Iteration 472, MSE: Inf Iteration 473, MSE: Inf Iteration 474, MSE: Inf Iteration 475, MSE: Inf Iteration 476, MSE: Inf Iteration 477, MSE: Inf Iteration 478, MSE: Inf Iteration 479, MSE: Inf Iteration 480, MSE: Inf Iteration 481, MSE: Inf Iteration 482, MSE: Inf Iteration 483, MSE: Inf Iteration 484, MSE: Inf Iteration 485, MSE: Inf Iteration 486, MSE: Inf Iteration 487, MSE: Inf Iteration 488, MSE: Inf Iteration 489, MSE: Inf Iteration 490, MSE: Inf Iteration 491, MSE: Inf Iteration 492, MSE: Inf Iteration 493, MSE: Inf Iteration 494, MSE: Inf Iteration 495, MSE: Inf Iteration 496, MSE: Inf Iteration 497, MSE: Inf Iteration 498, MSE: Inf Iteration 499, MSE: Inf Iteration 500, MSE: Inf Iteration 501, MSE: Inf Iteration 502, MSE: Inf Iteration 503, MSE: Inf Iteration 504, MSE: Inf Iteration 505, MSE: Inf Iteration 506, MSE: Inf Iteration 507, MSE: Inf Iteration 508, MSE: Inf Iteration 509, MSE: Inf Iteration 510, MSE: Inf Iteration 511, MSE: Inf Iteration 512, MSE: Inf Iteration 513, MSE: Inf Iteration 514, MSE: Inf Iteration 515, MSE: Inf Iteration 516, MSE: Inf Iteration 517, MSE: Inf Iteration 518, MSE: Inf Iteration 519, MSE: Inf Iteration 520, MSE: Inf Iteration 521, MSE: Inf Iteration 522, MSE: Inf Iteration 523, MSE: Inf Iteration 524, MSE: Inf Iteration 525, MSE: Inf Iteration 526, MSE: Inf Iteration 527, MSE: Inf Iteration 528, MSE: Inf Iteration 529, MSE: Inf Iteration 530, MSE: Inf Iteration 531, MSE: Inf Iteration 532, MSE: Inf Iteration 533, MSE: Inf Iteration 534, MSE: Inf Iteration 535, MSE: Inf Iteration 536, MSE: Inf Iteration 537, MSE: Inf Iteration 538, MSE: Inf Iteration 539, MSE: Inf Iteration 540, MSE: Inf Iteration 541, MSE: Inf Iteration 542, MSE: Inf Iteration 543, MSE: Inf Iteration 544, MSE: Inf Iteration 545, MSE: Inf Iteration 546, MSE: Inf Iteration 547, MSE: Inf Iteration 548, MSE: Inf Iteration 549, MSE: Inf Iteration 550, MSE: Inf Iteration 551, MSE: Inf Iteration 552, MSE: Inf Iteration 553, MSE: Inf Iteration 554, MSE: Inf Iteration 555, MSE: Inf Iteration 556, MSE: Inf Iteration 557, MSE: Inf Iteration 558, MSE: Inf Iteration 559, MSE: Inf Iteration 560, MSE: Inf Iteration 561, MSE: Inf Iteration 562, MSE: Inf Iteration 563, MSE: Inf Iteration 564, MSE: Inf Iteration 565, MSE: Inf Iteration 566, MSE: Inf Iteration 567, MSE: Inf Iteration 568, MSE: Inf Iteration 569, MSE: Inf Iteration 570, MSE: Inf Iteration 571, MSE: Inf Iteration 572, MSE: Inf Iteration 573, MSE: Inf Iteration 574, MSE: Inf Iteration 575, MSE: Inf Iteration 576, MSE: Inf Iteration 577, MSE: Inf Iteration 578, MSE: Inf Iteration 579, MSE: Inf Iteration 580, MSE: Inf Iteration 581, MSE: Inf Iteration 582, MSE: Inf Iteration 583, MSE: Inf Iteration 584, MSE: Inf Iteration 585, MSE: Inf Iteration 586, MSE: Inf Iteration 587, MSE: Inf Iteration 588, MSE: Inf Iteration 589, MSE: Inf Iteration 590, MSE: Inf Iteration 591, MSE: Inf Iteration 592, MSE: Inf Iteration 593, MSE: Inf Iteration 594, MSE: Inf Iteration 595, MSE: Inf Iteration 596, MSE: Inf Iteration 597, MSE: Inf Iteration 598, MSE: Inf Iteration 599, MSE: Inf Iteration 600, MSE: Inf Iteration 601, MSE: Inf Iteration 602, MSE: Inf Iteration 603, MSE: Inf Iteration 604, MSE: Inf Iteration 605, MSE: Inf Iteration 606, MSE: Inf Iteration 607, MSE: Inf Iteration 608, MSE: Inf Iteration 609, MSE: Inf Iteration 610, MSE: Inf Iteration 611, MSE: Inf Iteration 612, MSE: Inf Iteration 613, MSE: Inf Iteration 614, MSE: Inf Iteration 615, MSE: Inf Iteration 616, MSE: Inf Iteration 617, MSE: Inf Iteration 618, MSE: Inf Iteration 619, MSE: Inf Iteration 620, MSE: Inf Iteration 621, MSE: Inf Iteration 622, MSE: Inf Iteration 623, MSE: Inf Iteration 624, MSE: Inf Iteration 625, MSE: Inf Iteration 626, MSE: Inf Iteration 627, MSE: Inf Iteration 628, MSE: Inf Iteration 629, MSE: Inf Iteration 630, MSE: Inf Iteration 631, MSE: Inf Iteration 632, MSE: Inf Iteration 633, MSE: Inf Iteration 634, MSE: Inf Iteration 635, MSE: Inf Iteration 636, MSE: Inf Iteration 637, MSE: Inf Iteration 638, MSE: Inf Iteration 639, MSE: Inf Iteration 640, MSE: Inf Iteration 641, MSE: Inf Iteration 642, MSE: Inf Iteration 643, MSE: Inf Iteration 644, MSE: Inf Iteration 645, MSE: Inf Iteration 646, MSE: Inf Iteration 647, MSE: Inf Iteration 648, MSE: Inf Iteration 649, MSE: Inf Iteration 650, MSE: Inf Iteration 651, MSE: Inf Iteration 652, MSE: Inf Iteration 653, MSE: Inf Iteration 654, MSE: Inf Iteration 655, MSE: Inf Iteration 656, MSE: Inf Iteration 657, MSE: Inf Iteration 658, MSE: Inf Iteration 659, MSE: Inf Iteration 660, MSE: Inf Iteration 661, MSE: Inf Iteration 662, MSE: Inf Iteration 663, MSE: Inf Iteration 664, MSE: Inf Iteration 665, MSE: Inf Iteration 666, MSE: Inf Iteration 667, MSE: Inf Iteration 668, MSE: Inf Iteration 669, MSE: Inf Iteration 670, MSE: Inf Iteration 671, MSE: Inf Iteration 672, MSE: Inf Iteration 673, MSE: Inf Iteration 674, MSE: Inf Iteration 675, MSE: Inf Iteration 676, MSE: Inf Iteration 677, MSE: Inf Iteration 678, MSE: Inf Iteration 679, MSE: Inf Iteration 680, MSE: Inf Iteration 681, MSE: Inf Iteration 682, MSE: Inf Iteration 683, MSE: Inf Iteration 684, MSE: Inf Iteration 685, MSE: Inf Iteration 686, MSE: Inf Iteration 687, MSE: Inf Iteration 688, MSE: Inf Iteration 689, MSE: Inf Iteration 690, MSE: Inf Iteration 691, MSE: Inf Iteration 692, MSE: Inf Iteration 693, MSE: Inf Iteration 694, MSE: Inf Iteration 695, MSE: Inf Iteration 696, MSE: Inf Iteration 697, MSE: Inf Iteration 698, MSE: Inf Iteration 699, MSE: Inf Iteration 700, MSE: Inf Iteration 701, MSE: Inf Iteration 702, MSE: Inf Iteration 703, MSE: Inf Iteration 704, MSE: Inf Iteration 705, MSE: Inf Iteration 706, MSE: Inf Iteration 707, MSE: Inf Iteration 708, MSE: Inf Iteration 709, MSE: Inf Iteration 710, MSE: Inf Iteration 711, MSE: Inf Iteration 712, MSE: Inf Iteration 713, MSE: Inf Iteration 714, MSE: Inf Iteration 715, MSE: Inf Iteration 716, MSE: Inf Iteration 717, MSE: Inf Iteration 718, MSE: Inf Iteration 719, MSE: Inf Iteration 720, MSE: Inf Iteration 721, MSE: Inf Iteration 722, MSE: Inf Iteration 723, MSE: Inf Iteration 724, MSE: Inf Iteration 725, MSE: Inf Iteration 726, MSE: Inf Iteration 727, MSE: Inf Iteration 728, MSE: Inf Iteration 729, MSE: Inf Iteration 730, MSE: Inf Iteration 731, MSE: Inf Iteration 732, MSE: Inf Iteration 733, MSE: Inf Iteration 734, MSE: Inf Iteration 735, MSE: Inf Iteration 736, MSE: Inf Iteration 737, MSE: Inf Iteration 738, MSE: Inf Iteration 739, MSE: Inf Iteration 740, MSE: Inf Iteration 741, MSE: Inf Iteration 742, MSE: Inf Iteration 743, MSE: Inf Iteration 744, MSE: Inf Iteration 745, MSE: Inf Iteration 746, MSE: Inf Iteration 747, MSE: Inf Iteration 748, MSE: Inf Iteration 749, MSE: Inf Iteration 750, MSE: Inf Iteration 751, MSE: Inf Iteration 752, MSE: Inf Iteration 753, MSE: Inf Iteration 754, MSE: Inf Iteration 755, MSE: Inf Iteration 756, MSE: Inf Iteration 757, MSE: Inf Iteration 758, MSE: Inf Iteration 759, MSE: Inf Iteration 760, MSE: Inf Iteration 761, MSE: Inf Iteration 762, MSE: Inf Iteration 763, MSE: Inf Iteration 764, MSE: Inf Iteration 765, MSE: Inf Iteration 766, MSE: Inf Iteration 767, MSE: Inf Iteration 768, MSE: Inf Iteration 769, MSE: Inf Iteration 770, MSE: Inf Iteration 771, MSE: Inf Iteration 772, MSE: Inf Iteration 773, MSE: Inf Iteration 774, MSE: Inf Iteration 775, MSE: Inf Iteration 776, MSE: Inf Iteration 777, MSE: Inf Iteration 778, MSE: Inf Iteration 779, MSE: Inf Iteration 780, MSE: Inf Iteration 781, MSE: Inf Iteration 782, MSE: Inf Iteration 783, MSE: Inf Iteration 784, MSE: Inf Iteration 785, MSE: Inf Iteration 786, MSE: Inf Iteration 787, MSE: Inf Iteration 788, MSE: Inf Iteration 789, MSE: Inf Iteration 790, MSE: Inf Iteration 791, MSE: Inf Iteration 792, MSE: Inf Iteration 793, MSE: Inf Iteration 794, MSE: Inf Iteration 795, MSE: Inf Iteration 796, MSE: Inf Iteration 797, MSE: Inf Iteration 798, MSE: Inf Iteration 799, MSE: Inf Iteration 800, MSE: Inf Iteration 801, MSE: Inf Iteration 802, MSE: Inf Iteration 803, MSE: Inf Iteration 804, MSE: Inf Iteration 805, MSE: Inf Iteration 806, MSE: Inf Iteration 807, MSE: Inf Iteration 808, MSE: Inf Iteration 809, MSE: Inf Iteration 810, MSE: Inf Iteration 811, MSE: Inf Iteration 812, MSE: Inf Iteration 813, MSE: Inf Iteration 814, MSE: Inf Iteration 815, MSE: Inf Iteration 816, MSE: Inf Iteration 817, MSE: Inf Iteration 818, MSE: Inf Iteration 819, MSE: Inf Iteration 820, MSE: Inf Iteration 821, MSE: Inf Iteration 822, MSE: Inf Iteration 823, MSE: Inf Iteration 824, MSE: Inf Iteration 825, MSE: Inf Iteration 826, MSE: Inf Iteration 827, MSE: Inf Iteration 828, MSE: Inf Iteration 829, MSE: Inf Iteration 830, MSE: Inf Iteration 831, MSE: Inf Iteration 832, MSE: Inf Iteration 833, MSE: Inf Iteration 834, MSE: Inf Iteration 835, MSE: Inf Iteration 836, MSE: Inf Iteration 837, MSE: Inf Iteration 838, MSE: Inf Iteration 839, MSE: Inf Iteration 840, MSE: Inf Iteration 841, MSE: Inf Iteration 842, MSE: Inf Iteration 843, MSE: Inf Iteration 844, MSE: Inf Iteration 845, MSE: Inf Iteration 846, MSE: Inf Iteration 847, MSE: Inf Iteration 848, MSE: Inf Iteration 849, MSE: Inf Iteration 850, MSE: Inf Iteration 851, MSE: Inf Iteration 852, MSE: Inf Iteration 853, MSE: Inf Iteration 854, MSE: Inf Iteration 855, MSE: Inf Iteration 856, MSE: Inf Iteration 857, MSE: Inf Iteration 858, MSE: Inf Iteration 859, MSE: Inf Iteration 860, MSE: Inf Iteration 861, MSE: Inf Iteration 862, MSE: Inf Iteration 863, MSE: Inf Iteration 864, MSE: Inf Iteration 865, MSE: Inf Iteration 866, MSE: Inf Iteration 867, MSE: Inf Iteration 868, MSE: Inf Iteration 869, MSE: Inf Iteration 870, MSE: Inf Iteration 871, MSE: Inf Iteration 872, MSE: Inf Iteration 873, MSE: Inf Iteration 874, MSE: Inf Iteration 875, MSE: Inf Iteration 876, MSE: Inf Iteration 877, MSE: Inf Iteration 878, MSE: Inf Iteration 879, MSE: Inf Iteration 880, MSE: Inf Iteration 881, MSE: Inf Iteration 882, MSE: Inf Iteration 883, MSE: Inf Iteration 884, MSE: Inf Iteration 885, MSE: Inf Iteration 886, MSE: Inf Iteration 887, MSE: Inf Iteration 888, MSE: Inf Iteration 889, MSE: Inf Iteration 890, MSE: Inf Iteration 891, MSE: Inf Iteration 892, MSE: Inf Iteration 893, MSE: Inf Iteration 894, MSE: Inf Iteration 895, MSE: Inf Iteration 896, MSE: Inf Iteration 897, MSE: Inf Iteration 898, MSE: Inf Iteration 899, MSE: Inf Iteration 900, MSE: Inf Iteration 901, MSE: Inf Iteration 902, MSE: Inf Iteration 903, MSE: Inf Iteration 904, MSE: Inf Iteration 905, MSE: Inf Iteration 906, MSE: Inf Iteration 907, MSE: Inf Iteration 908, MSE: Inf Iteration 909, MSE: Inf Iteration 910, MSE: Inf Iteration 911, MSE: Inf Iteration 912, MSE: Inf Iteration 913, MSE: Inf Iteration 914, MSE: Inf Iteration 915, MSE: Inf Iteration 916, MSE: Inf Iteration 917, MSE: Inf Iteration 918, MSE: Inf Iteration 919, MSE: Inf Iteration 920, MSE: Inf Iteration 921, MSE: Inf Iteration 922, MSE: Inf Iteration 923, MSE: Inf Iteration 924, MSE: Inf Iteration 925, MSE: Inf Iteration 926, MSE: Inf Iteration 927, MSE: Inf Iteration 928, MSE: Inf Iteration 929, MSE: Inf Iteration 930, MSE: Inf Iteration 931, MSE: Inf Iteration 932, MSE: Inf Iteration 933, MSE: Inf Iteration 934, MSE: Inf Iteration 935, MSE: Inf Iteration 936, MSE: Inf Iteration 937, MSE: Inf Iteration 938, MSE: Inf Iteration 939, MSE: Inf Iteration 940, MSE: Inf Iteration 941, MSE: Inf Iteration 942, MSE: Inf Iteration 943, MSE: Inf Iteration 944, MSE: Inf Iteration 945, MSE: Inf Iteration 946, MSE: Inf Iteration 947, MSE: Inf Iteration 948, MSE: Inf Iteration 949, MSE: Inf Iteration 950, MSE: Inf Iteration 951, MSE: Inf Iteration 952, MSE: Inf Iteration 953, MSE: Inf Iteration 954, MSE: Inf Iteration 955, MSE: Inf Iteration 956, MSE: Inf Iteration 957, MSE: Inf Iteration 958, MSE: Inf Iteration 959, MSE: Inf Iteration 960, MSE: Inf Iteration 961, MSE: Inf Iteration 962, MSE: Inf Iteration 963, MSE: Inf Iteration 964, MSE: Inf Iteration 965, MSE: Inf Iteration 966, MSE: Inf Iteration 967, MSE: Inf Iteration 968, MSE: Inf Iteration 969, MSE: Inf Iteration 970, MSE: Inf Iteration 971, MSE: Inf Iteration 972, MSE: Inf Iteration 973, MSE: Inf Iteration 974, MSE: Inf Iteration 975, MSE: Inf Iteration 976, MSE: Inf Iteration 977, MSE: Inf Iteration 978, MSE: Inf Iteration 979, MSE: Inf Iteration 980, MSE: Inf Iteration 981, MSE: Inf Iteration 982, MSE: Inf Iteration 983, MSE: Inf Iteration 984, MSE: Inf Iteration 985, MSE: Inf Iteration 986, MSE: Inf Iteration 987, MSE: Inf Iteration 988, MSE: Inf Iteration 989, MSE: Inf Iteration 990, MSE: Inf Iteration 991, MSE: Inf Iteration 992, MSE: Inf Iteration 993, MSE: Inf Iteration 994, MSE: Inf Iteration 995, MSE: Inf Iteration 996, MSE: Inf Iteration 997, MSE: Inf Iteration 998, MSE: Inf Iteration 999, MSE: Inf Iteration 1000, MSE: Inf
% The optimized he_estimate should now be a good approximation of the original h_true

Sign in to comment.

Accepted Answer

DGM
DGM on 26 Oct 2021
Edited: DGM on 26 Oct 2021
The title is about NMSE, but there's no mention of it. I'll refer to both.
How to back calculate the reference from an estimate/observation and the error? You don't have enough information to do that, just the same as you don't have enough information to unambiguously back-calculate the reference from the mean absolute error either.
Consider the simple demonstration:
observation = [0 0];
mse = @(x,y) norm(x(:)-y(:),2)^2 / numel(x);
nmse = @(x,y) mse(x,y)/norm(x(:))^2;
% regular MSE
mse([-1 0],observation)
ans = 0.5000
mse([ 1 0],observation)
ans = 0.5000
mse([0 -1],observation)
ans = 0.5000
mse([0 1],observation)
ans = 0.5000
mse(1./sqrt([2 2]),observation) % and so on
ans = 0.5000
% normalized MSE
nmse([-1 0],observation)
ans = 0.5000
nmse([ 1 0],observation)
ans = 0.5000
nmse([0 -1],observation)
ans = 0.5000
nmse([0 1],observation)
ans = 0.5000
nmse(1./sqrt([2 2]),observation) % and so on
ans = 0.5000
Observe that the solution to any back-calculation must be ambiguous. Compared to multiple references, the observations have the same error. This is true for NMSE, just as it is true for MSE, RMS, or MAE.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!