Question

10. This data set is super small. Its really kinda cute. t 1.4 2.7 3.8 y 1.0 -2.3 1.6 I think a function of the form f(t) =
0 0
Add a comment Improve this question Transcribed image text
Answer #1

a) The square error would be the following:

= (1-0.34c_1-0.17c_2)^2+(-2.3-0.99c_1+0.9c_2)^2+(1.6-1.34c_1+0.79c_2)^2

b) Now the normal equations can be found by differentiating with respect to the coefficients and then take the RHS to be 0. Doing this, we obtain the following:

\\ 2(1-0.34c_1-0.17c_2)(-0.34)+2(-2.3-0.99c_1+0.9c_2)(-0.99)+2(1.6-1.34c_1+0.79c_2)(-1.34) = 0 \\ \Rightarrow 5.7826c_1 - 3.7836c_2 - 0.414= 0 \\ \\ 2(1-0.34c_1-0.17c_2)(-0.17)+2(-2.3-0.99c_1+0.9c_2)(0.9)+2(1.6-1.34c_1+0.79c_2)(0.79) = 0 \\ \Rightarrow -3.7836c_1 + 2.926c_2 - 1.952= 0

Trasforming it into a matrix equation, we get that

M{\vec c} = \vec v

where

M = \begin{bmatrix} 5.8726 & 3.7836\\ -3.7836 & 2.926 \end{bmatrix} \\ \vec v = \begin{bmatrix} 0.414\\ 1.952 \end{bmatrix}

c) The following command in MATLAB solves the system from part b)

>linsolve([5.8726 3.7836;-3.7836 2.926],[0.414;1.952])
ans =

  -0.19601
   0.41366
Add a comment
Know the answer?
Add Answer to:
10. This data set is super small. It's really kinda cute. t 1.4 2.7 3.8 y...
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
  • (I) Let's start with very simple data table 1.0 2.0 3.0 4.0 5.0 6.0 -1 ±...

    (I) Let's start with very simple data table 1.0 2.0 3.0 4.0 5.0 6.0 -1 ± 1.8 4±2.0 9+ 1.0 14 + 0.8 19 s 0.8 24 + 1.2 2% 1.8 34 ± 2.0 7.0 8.0 9.0 1. Plot a graph of y vs. X on a piece of graph paper 2. Is it a straight line? Draw the best-fit line. 3. Compute the slope and y-intercept for this line. Write the equation for y in terms of x using...

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
ADVERTISEMENT