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

Scipy Sigmoid Curve Fitting

I have some data points and would like to find a fitting function, I guess a cumulative Gaussian si… Read more Scipy Sigmoid Curve Fitting

Different Constraints For Fit Parameter In Lmfit Model

I am trying to create a multible voigt/Gaussian/Lorentizan-peak fit function with lmfit. Therefore,… Read more Different Constraints For Fit Parameter In Lmfit Model

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

Best Fit Line On Log Log Scales In Python 2.7

This is a network IP frequency rank plot in log scales. After completing this portion, I am trying … Read more Best Fit Line On Log Log Scales In Python 2.7

Fitting Gaussian To Absorbtion Line In Python

I am trying to fit a gaussian to my data which is taken in a pretty narrow spectral window. We got … Read more Fitting Gaussian To Absorbtion Line 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

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

Fitting A Distribution Given The Histogram Using Scipy

I would like to fit a distribution using scipy (in my case, using weibull_min) to my data. Is it po… Read more Fitting A Distribution Given The Histogram Using Scipy

Scipy Curve_fit Coefficient Does Not Align With Expected Value (physics Relevant?)

I am currently processing experimental data for my thesis and am running into a problem with scipy … Read more Scipy Curve_fit Coefficient Does Not Align With Expected Value (physics Relevant?)

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 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?

Plotting A Histogram With Overlaid Pdf

This is a follow-up to my previous couple of questions. Here's the code I'm playing with: i… Read more Plotting A Histogram With Overlaid Pdf

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

Exponential Curve Fit Will Not Fit

When attempting to plot an exponential curve to a set of data: import matplotlib import matplotlib.… Read more Exponential Curve Fit Will Not Fit

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?

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

Scipy Curve_fit For Two Dimensions Not Working - Object Too Deep?

I have a 2400 by 2400 array of data which looks something like this: data = [[-2.302670298082603040… Read more Scipy Curve_fit For Two Dimensions Not Working - Object Too Deep?

Using Scipy Curve_fit For A Variable Number Of Parameters

I have a fitting function which has the form: def fit_func(x_data, a, b, c, N) where a, b, c are l… Read more Using Scipy Curve_fit For A Variable Number Of Parameters

Fitting Gaussian To Absorbtion Line In Python

I am trying to fit a gaussian to my data which is taken in a pretty narrow spectral window. We got … Read more Fitting Gaussian To Absorbtion Line In Python