Given the following sets of data, find the curve of best fit(adsbygoogle = window.adsbygoogle || []).push({});

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.

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# How to find curve (non-linear) of best fit?

Loading...

Similar Threads - find curve linear | Date |
---|---|

I Finding the sum of heights under a curve | Apr 1, 2017 |

I Finding the equation of a bitangent line to a curve | Apr 23, 2016 |

Find a curve that fits this data please | Apr 26, 2014 |

Can we find each curve/plane a corresponding function | Nov 20, 2013 |

How using a mirror to find the tangent at a point on the curve works | Feb 17, 2013 |

**Physics Forums - The Fusion of Science and Community**