Hi,(adsbygoogle = window.adsbygoogle || []).push({});

I've to cope a little problem concerning general nonlinear regression. To cut a long story short: I've got a very complicated function y=f(a,x), and a lot of measured values for x and y. The goal is to fit the free parameter a.

Therefor, I wrote a simple c++ program that calculates the sums of the quadratic differences between f(a,x) and the measured y-values, using a lot of values in a large interval for a:

[tex]\sum_i{(f(a_j,x_i)-y_i)^2}[/tex]

The value a_j which causes the smallest sum, is taken as the fitted parameter a.

Though it works, this method is extremely inefficient due to the high number of measured values, the function's complexity and the large interval needed for a.

What I'm searching for is an introduction or an explanation for a more efficient least-square-method, for example the Levenberg-Marquardt-Method. Unfortunately I didn't find anything useful in the net

I hope that someone can help me.

Thanks in advance

Site

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

Dismiss Notice

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!

# Example of Levenberg-Marquardt-Method

Loading...

Similar Threads - Example Levenberg Marquardt | Date |
---|---|

I Problem with this estimation lemma example | Dec 6, 2016 |

[Traffic Flow] Concrete example of conservation equation? | Feb 11, 2016 |

Initial Value Problem (complex example) | Dec 3, 2015 |

Alternative examples, alternating series test | Oct 22, 2015 |

Fit with least squares, Levenberg–Marquardt algorithm | Oct 14, 2011 |

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