Borrar filtros
Borrar filtros

How to get the best fitting curve for my particular data?

2 visualizaciones (últimos 30 días)
Ehsan Ben
Ehsan Ben el 14 de Abr. de 2021
Comentada: Mathieu NOE el 15 de Abr. de 2021
I have a set of X and Y data which are some points on 2d plane. The problem is in my data, the Y values are not always increasing with the X axis values. They go to the maximum value of X and after that X values start to be decreased. Y values follow the same story. How I can find the best fitting curve for these points?
What I want to do is to get rid of those crowded and messy part of the graphs and just have a curve to show the trend of each color.
  11 comentarios
the cyclist
the cyclist el 15 de Abr. de 2021
OK. The next step is the main thing @Star Strider was trying to get at.
An important thing to realize is the following. If you say, "Any curve is fine, as long as it fits", then we could create a function that has hundreds of free parameters, bears no relation to your problem, and goes through every single red point. It could be a "perfect" fit.
Similarly, if you say, "I want the simplest possible fit", then we could create just a straight line.
But presumably neither of these extremes is very helpful. Usually, what you want is a function that theoretically makes sense, given how the data were generated. From the infinite universe of possible functions to fit your data, you need to narrow it down to what is useful for why you are doing the fit in the first place. What is the purpose of this fitted line?
Mathieu NOE
Mathieu NOE el 15 de Abr. de 2021
hi everybody
sorry to interfere lately in this discussion, but I wonder if the original goal was more about smoothing the cloudy area - rather than fitting an equation to the data; a much simpler task (IMHO)

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by