‘Polyfit’ function the regression

Find in Octave with ‘polyfit’ function the regression between the first 2 columns. To get data load open_close_20051219_20200807_d.mat

A) What is the expected error if you relate 1st column with the second using polynomial of 2 degree?

B) What is the expected error if you relate 1st column with the second using polynomial of 3 degree?

Sample Solution

ACED ESSAYS