Question

(1 point) Fit a quadratic function of the form f(t) = co + cit + c2t2 to the data points (0,1),(1, -3), (2,5), (3,5), using l

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The given points are (0, 1), (1, -3), (2, 5), (3, 5). Squared error is given by

E = (c_0-1)^2+(c_0+c_1+c_2+3)^2+(c_0+2c_1+4c_2-5)^2+(c_0+3c_1+9c_2-5)^2

For minima of E

\begin{align*} &\frac{\partial E}{\partial c_0} = 0\\ &\Rightarrow2(c_0-1)+2(c_0+c_1+c_2+3)+2(c_0+2c_1+4c_2-5)+2(c_0+3c_1+9c_2-5)=0\\ &\Rightarrow4c_0+6c_1+14c_2 = 8 \quad \quad ...(a) \end{align*}

\begin{align*} &\frac{\partial E}{\partial c_1} = 0\\ &\Rightarrow 2(c_0+c_1+c_2+3)+4(c_0+2c_1+4c_2-5)+6(c_0+3c_1+9c_2-5)=0\\ &\Rightarrow (c_0+c_1+c_2+3)+2(c_0+2c_1+4c_2-5)+3(c_0+3c_1+9c_2-5)=0\\ &\Rightarrow 6c_0+14c_1+36c_2 = 22 \quad \quad ...(b) \end{align*}

\begin{align*} &\frac{\partial E}{\partial c_2} = 0\\ &\Rightarrow 2(c_0+c_1+c_2+3)+8(c_0+2c_1+4c_2-5)+18(c_0+3c_1+9c_2-5)=0\\ &\Rightarrow (c_0+c_1+c_2+3)+4(c_0+2c_1+4c_2-5)+9(c_0+3c_1+9c_2-5)=0\\ &\Rightarrow 14c_0+36c_1+98c_2 = 62 \quad \quad ...(c) \end{align*}

Solving (a), (b), (c) for c_0, c_1, c_2

c_0 = 0, c_1=-1, c_2=1

So

f(t)=-t+t^2.

Add a comment
Know the answer?
Add Answer to:
(1 point) Fit a quadratic function of the form f(t) = co + cit + c2t2...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT