C1_W2_Lab02_Multiple_Variable_Soln Expected Result Inaccurate

Hi everyone!

While I was going through the Optional Lab: Multiple linear regression of week 2, I noticed some of the results I get with the code given were not the same as the expected results given in the lab. For example, in the Compute Cost With Multiple Variables part of the lab, the cost the code computed was 1.5578904880036537e-12 while the expected result given in the lab was 1.5578904045996674e-12. There some more examples of these tiny differences through the lab. While I am aware the difference is minimal, I wonder what could be the cause of it and if I should be concerned about it.

Link of the lab:

1 Like

Differences in the order of operations, or in the internal math libraries, can cause slight numerical variances.

1 Like

I understand, thanks for the info :heart_hands:

1 Like