data-fitting Questions

2

I want to fit non-negative parameters (xs in the code) to a function fp, given by where v and L are fixed, given parameters. Computing fp can be done relatively quickly by vectorizing it and using...
Falsework asked 18/6, 2024 at 11:5

3

Solved

I have these values: T_values = (222, 284, 308.5, 333, 358, 411, 477, 518, 880, 1080, 1259) (x values) C/(3Nk)_values = (0.1282, 0.2308, 0.2650, 0.3120 , 0.3547, 0.4530, 0.5556, 0.6154, 0.8932...
Idel asked 25/4, 2017 at 17:9

4

Solved

I intend to fit a 2D Gaussian function to images showing a laser beam to get its parameters like FWHM and position. So far I tried to understand how to define a 2D Gaussian function in Python and h...
Fumigate asked 5/2, 2014 at 0:28

3

Solved

I have the following data: >>> x array([ 3.08, 3.1 , 3.12, 3.14, 3.16, 3.18, 3.2 , 3.22, 3.24, 3.26, 3.28, 3.3 , 3.32, 3.34, 3.36, 3.38, 3.4 , 3.42, 3.44, 3.46, 3.48, 3.5 , 3.52, 3.54, 3...
Macaronic asked 12/9, 2013 at 14:49

3

I need to do data fitting to find the distribution of a given data. I need to find the pdf function of the distribution. I can use data fitting functions in matlab and python. It looks like a t...
Starryeyed asked 15/3, 2014 at 15:7

6

Solved

I have a dataset from sklearn and I plotted the distribution of the load_diabetes.target data (i.e. the values of the regression that the load_diabetes.data are used to predict). I used this beca...

2

Solved

I am using scipy.optimize's least_squares method in order to perform a constrained non-linear least squares optimization. I was wondering how I would go about getting the covariance matrix of the f...

3

I am currently trying to find a way to calculate a power-law fit for a cut-off distribution with MLE. The distribution looks as follows: As you can see, I was able to fit the whole distribution ...
Raynell asked 15/7, 2017 at 15:6

4

Solved

Say I have two lists of data as follows: x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] y = [1, 2, 3, 4, 5, 6, 8, 10, 12, 14] That is, it's pretty clear that merely fitting a line to this data doesn't work...
Glutelin asked 12/7, 2017 at 16:35

2

Solved

Do the names/order of the columns of my X_test dataframe have to be the same as the X_train I use for fitting? Below is an example I am training my model with: model.fit(X_train,y) where X_train=d...
Retrogress asked 10/2, 2019 at 0:2

3

I have a noisy signal and a model function, for example: x=linspace(0,20); w=[2 6 -4 5]; y=w(1)*besselj(0,x)+w(2)*besselj(1,x)+w(3)*besselj(2,x)+w(4)*besselj(3,x); y(randi(length(y),[1 10]))=10*ran...
Mescaline asked 12/10, 2020 at 23:53

2

I have a 2D points (x,y), and I want to fit the ellipse using this post fit a ellipse in Python given a set of points xi=(xi,yi) But my result is axes = [ 0.93209407 nan] since in function ellip...
Tracay asked 26/9, 2016 at 2:25

1

I am trying to fit known well-defined shapes (eg boxes, cylinders; with configurable positions, rotations and dimensions) to a set of points with normals generated from sampling a 3D mesh. My curre...
Newby asked 19/3, 2019 at 8:31

3

I have a set of data points, which appear sort of like a line with a curve near the beginning. See the image below, which shows the points with a line of best fit (fit to the whole data set). In...
Adenitis asked 25/10, 2018 at 19:7

1

Solved

I have sets of x,y,z points in 3D space and another variable called charge which represents the amount of charge that was deposited in a specific x,y,z coordinate. I would like to do a weighted (we...
Dania asked 13/8, 2018 at 0:13

2

Solved

So, I looked up information about the weights parameter in the polyfit (numpy.polynomial.polynomial.polyfit) function in Python and it seems like it has something to do with the error associated wi...
Despiteful asked 27/7, 2018 at 21:47

1

I would like to fit ellipsometric data to complex model using LMFit. Two measured parameters, psi and delta, are variables in a complex function rho. I could try with separating problem to real an...
Forth asked 2/5, 2014 at 8:59

2

Solved

I have some data which I have fitted a normal distribution to using the scipy.stats.normal objects fit function like so: import numpy as np import matplotlib.pyplot as plt from scipy.stats impo...
Cumulostratus asked 6/3, 2018 at 12:1

2

Solved

My teacher in the signal analysis course has given me some Matlab code that I have to execute in order to complete a home assignment. I have always been using GNU Octave without troubles, but this ...
Secundine asked 11/11, 2013 at 17:42

2

Simple question - the range drawn on a plot can be changed with the set xrange [x_min:x_max] command. Does this command also limit the range used when fitting a function using the data fitting too...
Lightsome asked 29/6, 2015 at 22:32

1

I'm trying to fit some data to a power law using python. The problem is that some of my points are upper limits, which I don't know how to include in the fitting routine. In the data, I have put t...

1

Solved

I am using Keras with a Tensorflow backend in Python. To be more precise tensorflow 1.2.1 and its build-in contrib.keras lib. I want to use the fit_generator method of a Sequential model object, b...
Ashtray asked 29/8, 2017 at 16:4

3

I have a set of data (displacement vs time) which I have fitted to a couple of equations using the optimize.leastsq method. I am now looking to get error values on the fitted parameters. Looking th...
Man asked 29/1, 2013 at 11:1

4

I am having some trouble translating my MATLAB code into Python via Scipy & Numpy. I am stuck on how to find optimal parameter values (k0 and k1) for my system of ODEs to fit to my ten observed...
Hydranth asked 1/7, 2012 at 1:1

3

Solved

I've been trying to fit an exponential to some data for a while using scipy.optimize.curve_fit but i'm having real difficulty. I really can't see any reason why this wouldn't work but it just produ...
Doctor asked 25/3, 2013 at 20:24

© 2022 - 2025 — McMap. All rights reserved.