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

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

Python Scipy.optimise.curve_fit Gives Linear Fit

I have come across a problem when playing with the parameters of the curve_fit from scipy. I have i… Read more Python Scipy.optimise.curve_fit Gives Linear Fit

How To Fit To The Outer Shell Of A Function

I am trying to make a gaussian fit on a function that is messy. I want to only fit the exterior out… Read more How To Fit To The Outer Shell Of A Function

How Do I Add Weighting To A Curve Not The Data Points During Fitting? What Import/func Do I Use?

I've tried scipy.optimize import curve_fit but it only seems to change the data points. I want … Read more How Do I Add Weighting To A Curve Not The Data Points During Fitting? What Import/func Do I Use?

How Do I Optimize And Find The Coefficients For Two Equations Simultaneously In Python 2.7?

I have data sets that I would like to fit to two equations: y1 = a1 + a2 * T / 2 + a3 * T^2 / 3 + a… Read more How Do I Optimize And Find The Coefficients For Two Equations Simultaneously In Python 2.7?

Trouble With Curve Fitting - Matplotlib

I am trying to plot a sin function to a data set. I found a tutorial online using scipy.optimize, b… Read more Trouble With Curve Fitting - Matplotlib

How To Use Curve_fit Function Inside A For Loop To Create Multiple Regressions In One Go In Python?

In a nutshell, I have two matrices, one called t and another called y. Each of them has 7 columns. … Read more How To Use Curve_fit Function Inside A For Loop To Create Multiple Regressions In One Go In Python?

Trying To Fit A Trig Function To Data With Scipy

I am trying to fit some data using scipy.optimize.curve_fit. I have read the documentation and also… Read more Trying To Fit A Trig Function To Data With Scipy

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

How To Quantitatively Measure Goodness Of Fit In Scipy?

I am tying to find out the best fit for data given. What I did is I loop through various values of … Read more How To Quantitatively Measure Goodness Of Fit In Scipy?

Curve Fitting In Scipy With 3d Data And Parameters

I am working on fitting a 3d distribution function in scipy. I have a numpy array with counts in x… Read more Curve Fitting In Scipy With 3d Data And Parameters

Python Curve Fitting On Pandas Dataframe Then Add Coef To New Columns

I have a dataframe that needs to be curve fitted per row (second order polynomial). There are four … Read more Python Curve Fitting On Pandas Dataframe Then Add Coef To New Columns

Fitting Sir Model Based On Least Squares

I would like to optimize the fitting of SIR model. If I fit the SIR model with only 60 data points … Read more Fitting Sir Model Based On Least Squares

Creating A Python Lmfit Model With Arbitrary Number Of Parameters

Is there a way to construct a an lmfit Model based on a function with an arbitrary number of depend… Read more Creating A Python Lmfit Model With Arbitrary Number Of Parameters

How Can I Fit A Good Lorentzian On Python Using Scipy.optimize.curve_fit?

I'm trying to fit a Lorentzian function with more than one absorption peak (Mössbauer spectra),… Read more How Can I Fit A Good Lorentzian On Python Using Scipy.optimize.curve_fit?

Curve_fit With Polynomials Of Variable Length

I'm new to python (and programming in general) and want to make a polynomial fit using curve_fi… Read more Curve_fit With Polynomials Of Variable Length

Fit A Curve For Data Made Up Of Two Distinct Regimes

I'm looking for a way to plot a curve through some experimental data. The data shows a small li… Read more Fit A Curve For Data Made Up Of Two Distinct Regimes