Top "Curve-fitting" questions

Fitting 1-D curve to data points, minimizing pre-defined error/loss function.

Applying bounds to specific variable during curve_fit (scipy) leads to an error

I am trying to apply bounds onto some of the parameters during curve fitting but I'm getting the following error …

python matplotlib scipy curve-fitting
Python curve fit library that allows me to assign bounds to parameters

I'd like to be able to perform fits that allows me to fit an arbitrary curve function to data, and …

python scipy numeric curve-fitting pyminuit
Correct fitting with scipy curve_fit including errors in x?

I'm trying to fit a histogram with some data in it using scipy.optimize.curve_fit. If I want to …

python numpy scipy curve-fitting
Linear fitting in python with uncertainty in both x and y coordinates

Hi I would like to ask my fellow python users how they perform their linear fitting. I have been searching …

python curve-fitting linear-equation
R-squared value in Excel with the 'addtrendline' function?

I have been struggling a while on that; In short, I can't find the equations Excel uses for R2. Here …

excel matlab regression curve-fitting trendline
scipy curve_fit raises "OptimizeWarning: Covariance of the parameters could not be estimated"

I am trying to fit this function to some data: But when I use my code import numpy as np …

python scipy curve-fitting lmfit
Is there a GNU Octave equivalent for the Matlab function "fit"?

My teacher in the signal analysis course has given me some Matlab code that I have to execute in order …

matlab octave curve-fitting data-fitting
Get equation for 3d shape

I have 2 arrays say X and Y. Each have 5 elements. Now for each possible combination of (X,Y) I have …

curve-fitting parametric-equations excel-charts
Find bezier control-points for curve passing through N points

Considering the following nice solution for finding cubic Bézier control points for a curve passing through 4 points: How to …

bezier points curve curve-fitting
Sine curve fit using lm and nls in R

I am a beginner in curve fitting and several posts on Stackoverflow really helped me. I tried to fit a …

r curve-fitting