# Questions tagged [curve-fitting]

Methods used to fit curves (as in linear or non-linear regression) to data.

649 questions
Filter by
Sorted by
Tagged with
10 views

### Power-law fitting with x-y relationship [closed]

I would like to fit a power-law distribution to data taking into account the x-y-relationship. I tried plfit & powerlaw package for python. But the problem with them is that if I shuffle the y-...
8 views

### Time Series Prediction for Variable-Length Input with Fixed Sampling Period

I'm working on a time series prediction task where I need to predict the parameters (amp, phase, freq, offset) that best fit a variable-length input series. The samples are always at the same period. ...
77 views

### How to visualize trends

I am working on a paper where we plotted BMI trends as a function of age in the population. We plotted trends for six databases, then we plotted for each sex, then for race, in three categories. I ...
1 vote
34 views

53 views

### Estimating a censored distribution curve

I have a sample of only 142 numbers from a distribution of 3852 numbers ranging from 0 to 53, but it is censored below 35 (The values ​​exist, but I don't have access.), so I have only the values in ...
1 vote
230 views

### How to fit data with asymmetric error bars?

General question: How do I fit a model to data when the data points have asymmetric error bars? What is the cost function I use to calculate residuals, and from that, how do I calculate confidence ...
1 vote
43 views

### How to calculate heteroskedastic standard errors

I'm doing curve fitting, but my error is non-stationary. The variance decreases: I'm looking for a signal in the noise (In this case at x=90, y=50). I'd like to calculate the "standard error&...
7 views

### Testing the goodness of fit of a Zipf distribution [duplicate]

I have several ranking distributions and would, for each one, like to fit a [Zipf distribution], and estimate the goodness of fit relative to some standard benchmark. With the Matlab code below, I ...
1 vote
126 views

### Testing goodness of fit for a Zipf distribution (in Matlab)

I have several ranking distributions and would, for each one, like to fit a [Zipf distribution], and estimate the goodness of fit relative to some standard benchmark. With the Matlab code below, I ...
1 vote
68 views

1 vote
68 views

### Good fitting but high variances ($SEIR$ type model)

I am working on a susceptible ($S = S_1$ or $S=S_2$), exposed ($E$), infected ($I$), hospitalised ($H$), deceased ($D$) and recovered ($R$) model. Below is my model, \begin{equation} \begin{split} \...
106 views

### Computing the error in best fit parameters using chi-square grid

Suppose I have a scatter plot and I have fitted it with a curve that has two parameters 'a' and 'b'. I try various values of 'a' and 'b' between a certain range and plot a grid of chi-square values ...
80 views

### Calculating a percentile for a slice in a curve fit

Currently I have a of around 20000 datapoints, with the independent variable being time and the dependent variable being an arbitrary skill measure [Image 1]. I have fit a curve to the data using ...
157 views

### Getting point estimation and confidence interval for gaussian fit

I have a task where I should fit the data sample with curve_fit and get the peak's position and amplitude. I fitted data and got these values and their standard errors. I also need to find point ...
782 views

### Fit inverse polynomial function $1/x^n$

I am trying to fit the function $A/x³$ to some data points (X,Y). I tried using least squares to fit the function $A x^3$ to the data points (1/X,Y) using least squares. However I do not obtain a good ...
382 views

### Perfect Prediction: Why Would We Ever Use a Statistical Model?

Dear statistics experts I need your help with something that has bothered me for a while now. My problem revolves around perfect prediction and essentially boils down to: Why would we ever set up and ...