<p>If you know the number of overlapping Gauss functions, you may write them as $\sum_{i=1}^n a_ie^{-(\frac{x-\mu_i}{\sigma_i})^2}$, then subtract your time series, with more than $3i$ items, to reduce the risk of an ill-posed problem.
Then apply a root mean square (RMS) minimization / <a href="https://en.wikipedia.org/wiki/Least_squares" rel="nofollow">least squares</a> method to infer the $3i$ parameters.
If your FWHM, or $\sigma$ is known to be the same for all peaks, your number of parameters reduces to $2i+1$.</p>

<p>See also <a href="https://en.wikipedia.org/wiki/Rietveld_refinement" rel="nofollow">Rietveld refinement</a> as a related approach.</p>

CC BY-SA 3.0
2015-12-04T02:46:24.753Z
2015-12-04T02:46:24.753Z
Gerald
<p>I'm trying to fit Gaussians to several lines in a spectrum that I have. Some of them overlap with one another, causing the fitting program that I'm using to not be able to give reasonable estimates for the errors on the measurements. For example, sometimes it will give the width of the spectral line to be 0.5 GHz but give the uncertainty at 1,000 GHz.</p>

<p>To fix this, I've been doing manual estimates on the ones that it can't get. I read that you can estimate the error on the peak of the Gaussian with:</p>

<p>Peak Error = (1/2)*(Width / Signal To Noise Ratio)</p>

<p>but I can't find anything for the height or width. Are there similar ways to estimate the uncertainty on these measurements?</p>

<p>Thank you.</p>

CC BY-SA 3.0
2015-12-02T05:03:03.813Z
You might be interested in reading about [kernel density estimation](https://en.wikipedia.org/wiki/Kernel_density_estimation), or taking a look at [this multi-peak fitting tool](https://www.wavemetrics.com/products/igorpro/dataanalysis/peakanalysis/multipeakfitting.htm). Or just in general google something like "[fitting overlapping gaussians](https://www.google.dk/#q=fitting+overlapping+gaussians)".
pela
CC BY-SA 3.0
2015-12-02T05:41:33.797Z
The formula you quote is for the error on the height of a Gaussian in noise, there are similar formulae for the error on the width. You will probably find them in Radar texts where they are related to the SD for  range error. But these are not really what you need, you have close lines and the errors depend on the position of the other lines as well as the signal to noise ratio. If this were my problem (and it is close to mine) and there was nothing in the literature, I would adopt a quasi Monte-Carlo method to form the estimates of positions and heights and the errors in these estimates.
Conrad Turner
CC BY-SA 3.0
2015-12-02T08:21:48.907Z
Of course these uncertainties are highly correlated. Handwaving formulae will not be accurate. Monte Carlo or Bayesian methods are required to simultaneously estimate uncertainties in height and width.
ProfRob
<spectroscopy><spectra>
How do you estimate the error on the height/width of a Gaussian?
Sam V
# How do you estimate the error on the height/width of a Gaussian?

(Asked by: username_0 on 2015-12-01)

I'm trying to fit Gaussians to several lines in a spectrum that I have. Some of them overlap with one another, causing the fitting program that I'm using to not be able to give reasonable estimates for the errors on the measurements. For example, sometimes it will give the width of the spectral line to be 0.5 GHz but give the uncertainty at 1,000 GHz.

To fix this, I've been doing manual estimates on the ones that it can't get. I read that you can estimate the error on the peak of the Gaussian with:

Peak Error = (1/2)\*(Width / Signal To Noise Ratio)

but I can't find anything for the height or width. Are there similar ways to estimate the uncertainty on these measurements?

Thank you.

**Tags:** spectroscopy, spectra

> **Comments:**
> **username_1**: You might be interested in reading about [kernel density estimation](https://en.wikipedia.org/wiki/Kernel_density_estimation), or taking a look at [this multi-peak fitting tool](https://www.wavemetrics.com/products/igorpro/dataanalysis/peakanalysis/multipeakfitting.htm). Or just in general google something like "[fitting overlapping gaussians](https://www.google.dk/#q=fitting+overlapping+gaussians)".  
> **username_2**: The formula you quote is for the error on the height of a Gaussian in noise, there are similar formulae for the error on the width. You will probably find them in Radar texts where they are related to the SD for  range error. But these are not really what you need, you have close lines and the errors depend on the position of the other lines as well as the signal to noise ratio. If this were my problem (and it is close to mine) and there was nothing in the literature, I would adopt a quasi Monte-Carlo method to form the estimates of positions and heights and the errors in these estimates.  
> **username_3**: Of course these uncertainties are highly correlated. Handwaving formulae will not be accurate. Monte Carlo or Bayesian methods are required to simultaneously estimate uncertainties in height and width.  

---

## 1 answers

### Answer by username_4 on 2015-12-04. Score: 1

If you know the number of overlapping Gauss functions, you may write them as $\sum\_{i=1}^n a\_ie^{-(\frac{x-\mu\_i}{\sigma\_i})^2}$, then subtract your time series, with more than $3i$ items, to reduce the risk of an ill-posed problem.
Then apply a root mean square (RMS) minimization / [least squares](https://en.wikipedia.org/wiki/Least_squares) method to infer the $3i$ parameters.
If your FWHM, or $\sigma$ is known to be the same for all peaks, your number of parameters reduces to $2i+1$.

See also [Rietveld refinement](https://en.wikipedia.org/wiki/Rietveld_refinement) as a related approach.


---

