Skip to content Skip to sidebar Skip to footer
Showing posts with the label Curve Fitting

How To Fit A Log-normal Distribution With Scipy?

I want to fit the log-normal parameters mu and sigma to an existing (measured) log-normal distribut… Read more How To Fit A Log-normal Distribution With Scipy?

Why Does "scipy.optimize.minimize" Gives Me Such A Bad Fit?

I have a function y(x,z) with two variables x, z and 6 coefficients a,b,c,d,e,f. I have the data fo… Read more Why Does "scipy.optimize.minimize" Gives Me Such A Bad Fit?

Python: Use Polyval To Predict X Passing Y

I have 2 sets of points (X, Y). I want to: Use polifit to fit the line Given a Y predict an X Thi… Read more Python: Use Polyval To Predict X Passing Y

Getting Standard Error Associated With Parameter Estimates From Scipy.optimize.curve_fit

I am using scipy.optimize.curve_fit to fit a curve to some data i have. The curves, for the most pa… Read more Getting Standard Error Associated With Parameter Estimates From Scipy.optimize.curve_fit

How To Apply Piecewise Linear Fit For A Line With Both Positive And Negative Slopes In Python?

I have data provided in the code which have negative and positive slopes as shown in figure: Using… Read more How To Apply Piecewise Linear Fit For A Line With Both Positive And Negative Slopes In Python?

I Need A Python Function That Can Fit A Curve Within A Parameter Space

I've been working on a project that uses SciPy's optimize.curve_fit() function to fit a cur… Read more I Need A Python Function That Can Fit A Curve Within A Parameter Space

Fitting (a Gaussian) With Scipy Vs. Root Et Al

I have now multiple times stumbled upon that fitting in python with scipy.curve_fit is somehow a lo… Read more Fitting (a Gaussian) With Scipy Vs. Root Et Al

Smoothing A Curve With Vectors Made By Few Elements?

I have 4 curves that are represented by these vectors: x = [300, 700, 1000, 1500] y1 = [-1.00553941… Read more Smoothing A Curve With Vectors Made By Few Elements?