- #1
visharad
- 54
- 0
Given the following sets of data, find the curve of best fit
x = -4, -6, 5, -6, -9, -2, 5
y = -4, -7, 3, -12, -2, 5, 7
a) y = a + bx
b) y = a + bx + c cosx
I can do part a by using the formula for least square methods for straight line. But what about part b? One way I can think of is to do the following
Use Calculus to minimize the value of Sum(a + bx + c cosx - y)^2 and derive equations for a, b and c.
But this problem is for linear algebra. So I am thinking if we can solve it without using calculus.
x = -4, -6, 5, -6, -9, -2, 5
y = -4, -7, 3, -12, -2, 5, 7
a) y = a + bx
b) y = a + bx + c cosx
I can do part a by using the formula for least square methods for straight line. But what about part b? One way I can think of is to do the following
Use Calculus to minimize the value of Sum(a + bx + c cosx - y)^2 and derive equations for a, b and c.
But this problem is for linear algebra. So I am thinking if we can solve it without using calculus.