# Questions tagged [curve-fitting]

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

498 questions
Filter by
Sorted by
Tagged with
12 views

### Akaike Information Criterion and distribution of residuals

TOY EXAMPLE. Suppose we are interested in the relationship between two quantities, $X$ and $Y$. We set $X = 1, 2, 3$ with certainty and measure $Y$. Our measurements are subject to iid measurement ...
14 views

### How to add skew to a normal distribution CDF

I want to curve fit some data to a skewed logistic type distribution. I know that the normal CDF is defined as $$\frac{1}{2} \left[1 + \text{erf}\left( \frac{x}{\sqrt{2}} \right) \right]$$ What I ...
25 views

### Unexpected 2D Gaussian fit parameters in python

I am doing some work which requires fitting a Gaussian to a cluster of points which is expected to be distributed normally. I have data which looks like this, you can see the small tightly grouped ...
49 views

### Monotonic splines in Python [closed]

I am trying to find a procedure to fit data monotonically in Python. The data won’t be necessarily monotonic. I just would like to achieve a monotonic fit because of theoretical assumptions. I ...
32 views

22 views

### Determining average duration between input and output (example - CoVID-19 sickness)

Let us assume there are given two sets on data, input and output of a process. For an example, daily number of infected people by CoVID-19 and daily number of resolved cases, be it death or healing. ...
9 views

### Getting the error of a mean curve compared to multiple original time series

I have a 5 days of time series of an individual's steps in 15 min intervals. What I have done is fitted a curve to estimate the individual's general day steps profile. So this curve has a span of one ...
360 views

### Least Squares Estimation for the SIRD model

I'm experiencing some difficulties in the estimation of the parameters $\alpha, \beta, \gamma$ for the following discrete-time SIRD (Susceptibles, Infected, Recovered, Dead) model with sampling step ...
30 views

### Can we fit a piecewise exponential function to coronavirus cases over time?

The naive assumption on number of cases, is it is growing exponentially over time. However, different countries has different policies, for example travel ban or staying at home. So, does it making ...
I am studying curve fitting and linear regression. I am supposed to find a and b in the equation $$P=ae^{bh}$$ so I transformed it to $$lnP=ln a +bh$$ then $$Y=c+bX$$ after that I solved it to ...