[Data regression] Levenberg-Marquardt BUT force to intersect 2 KNWON points

Click For Summary
SUMMARY

The discussion focuses on utilizing the Levenberg-Marquardt method for polynomial curve fitting while ensuring that the curve intersects two known data points. The user is currently working with a cubic polynomial defined as y=a_3*x^3+a_2*x^2+a_1*x+a_0. A proposed solution involves calculating the coefficients a_2 and a_3 based on the known points, thereby reducing the optimization problem to two parameters, a_1 and a_0, instead of four.

PREREQUISITES
  • Understanding of the Levenberg-Marquardt optimization algorithm
  • Familiarity with polynomial functions and their coefficients
  • Knowledge of curve fitting techniques
  • Basic algebra for manipulating polynomial equations
NEXT STEPS
  • Research methods for polynomial interpolation to ensure curve fitting through specified points
  • Learn about the impact of weighting data points in optimization algorithms
  • Explore alternative curve fitting techniques such as spline fitting or piecewise polynomials
  • Investigate the use of libraries like SciPy for implementing the Levenberg-Marquardt method in Python
USEFUL FOR

Data scientists, mathematicians, and engineers involved in data analysis and curve fitting who need to ensure specific data points are included in their models.

berlinkind
Messages
1
Reaction score
0
Hi,

I have a large data set (2D Coordinates with errors) and i am using the Levenberg-Marquardt method to estimate the best polynomial function.
That part is working fine.

Now in my data set are exactly two KNOWN data points that are 100% correct. Therefore I want my function to go through these two points and fit the curve considering the other datapoints.

My polynom currently looks like
<br /> y=a_3*x^3+a_2*x^2+a_1*x+a_0<br />

One idea I had, was to weight the two known points with very high values. But the result still is not correct.

Any Ideas – or maybe an idea of a totally other solution is welcome. I'm working more than a week on LM :-(

Thanks
 
Physics news on Phys.org
Well, if your function must go through (x1, y1) and (x2, y2) exactly, then you can use those values to calculate a2 and a3, given a1 and a0 (find the formula for them by hand). So instead of optimizing a function in 4 parameters you just optimize a function in 2 parameters, a1 and a0.
 

Similar threads

  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 13 ·
Replies
13
Views
2K