How good is a fit for a set of points?

Click For Summary
SUMMARY

The discussion centers on analyzing the fit of a polynomial curve to a set of equilibrium points derived from a system of differential equations with parameters constrained by 0 < 1.5(1-a) < b < 1. The user seeks an intelligent method to evaluate how well their discrete set of points aligns with the polynomial fit, specifically using the sum of squared errors as a metric. The conversation emphasizes the importance of potentially weighting errors differently based on the application context, particularly in relation to the X-Y plane.

PREREQUISITES
  • Understanding of differential equations and their equilibrium points
  • Familiarity with polynomial regression and curve fitting techniques
  • Knowledge of statistical metrics, specifically sum of squared errors
  • Experience with data visualization tools for plotting graphs
NEXT STEPS
  • Research advanced polynomial fitting techniques in Python using libraries like NumPy and SciPy
  • Explore methods for calculating weighted errors in regression analysis
  • Learn about alternative curve fitting approaches, such as spline interpolation
  • Investigate visualization tools like Matplotlib for enhanced data representation
USEFUL FOR

Mathematicians, data analysts, and researchers working with differential equations, curve fitting, and statistical analysis who seek to improve the accuracy of their models and visualizations.

Uriel
Messages
16
Reaction score
0
Hello, I have the following problem.

I have a system of differential equations, with two parameters that satisfy certain condition.

0 < 1.5(1-a) < b < 1.

So when I fix the value of a I can find values of b satisfying this and its associated equilibrium point.

When I calculate (with computer) the equilibrium points for this values and plot them I obtain the following:

https://dl.dropboxusercontent.com/u/38427886/plot.png

And when I plot them on the same graph I have

https://dl.dropboxusercontent.com/u/38427886/plots.png

As you can see, they seem to be on the same curve, so I made a polynomial fit of second degree. Now, from the fact that all the points for different a, seem to have the same behavior I would like to know how they deviate from the fit that I made to the last set (because it has more points to work with).

Here's where I'm stuck, because I don't know exactly what can I do.

The only idea that I have is to take the distance for every point to the curve, then square that, sum all the distances and finally divide for the number of points.

The think is, I want to know if anyone knows an intelligent way to know how well my discrete set of points adjust to a given curve.

P.S. (I know my English is terrible, I apologize)
 
Last edited by a moderator:
Physics news on Phys.org
Your idea of the sum-squared-errors is fairly well known and accepted. And I think that averaging it to account for different numbers of points is a good one. Sometimes it is more important to be close in one dimension than in the other, so the errors on the two coordinates are weighted appropriately. Or you may have a reason to give different weights to different areas of the X-Y plane. That all depends on your application and you should be judicious and be ready to explain your reasons for the weights.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 26 ·
Replies
26
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K
Replies
24
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
8
Views
2K
Replies
28
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K