Numerical Method Derive the regression formula for high-order polynomial models
ID: 3544612 • Letter: N
Question
Numerical Method
Explanation / Answer
1.1
let X be the following matrix :
[ 1 x1 x1^2]
[ 1 x2 x2^2]
[ : : : : : ]
[ 1 xn xn^2]
Y be the vector = transpose of [y1 y2 ... yn]
Let a be the vector = transpose of [ a0 a1 a2]
Clearly the sum of squares error matrix would be:
Z = (Y - a*X)^(t)(Y - a*X) [ ^(t) denotes transpose]
we need to minimise Z w.r.t to vector 'a'
dZ/da = -X^(t)*(Y - a*X) - (Y-a*X)^(t)*X = 0 => X^(t)*Y = (X^(t)*X)*a
thus we have 'a' as the solution of the following matrix equation:
(X^(t)*X)*a = X^(t)*Y
=> thus proved
1.2 exactly the same steps as above, since the above proof is generic
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.