Linear regression
Use MATLAB
β’ 1-calculate the first 100 iterations of β π ^2
π
π=1 =
π(π+1)(2π+1)
6
Note i is from 1 to n and in front of sigma we have i
2
β’ 2- Estimate the value of Ο.
(Help; β
(β1)^π
2π+1
β
π=0 =
π
4
)
Note n is from 0 to β and in front of sigma we have a fraction in top
( -1)^n and in the bottom of fraction we have 2n+1.