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?

Fitting Data To A Custom Model In Python

Hi So I am fairly used to python but this is the first time I am using python for data analysis and… Read more Fitting Data To A Custom Model In Python

Use Of Curve_fit To Fit Data Of 2 Variables In A List

I am kind of new to scipy and curve_fit. I have 2 lists: x values: [0.723938224, 0.965250965, 1.206… Read more Use Of Curve_fit To Fit Data Of 2 Variables In A List

Fitting Voigt Function To Data In Python

I recently got a script running to fit a gaussian to my absorption profile with help of SO. My hope… Read more Fitting Voigt Function To Data In Python

Strange Result With Python's (scipy) Curve Fitting

This is my code (it's an example of a larger piece of code): from scipy.optimize import curve_f… Read more Strange Result With Python's (scipy) Curve Fitting

Fitting Multiple Lorentzians To Brillouin Spectrum Using Scipy In Python 3

I am trying to fit Brillouin Spectra (with several peaks) using scipy.optimize.curve_fit. I have h… Read more Fitting Multiple Lorentzians To Brillouin Spectrum Using Scipy In Python 3

Fitting Binned Lognormal Data In Python

I have a range of particle size distribution data arranged by percentage volume fraction, like so:;… Read more Fitting Binned Lognormal Data In Python