4
votes

Folks,i have been trying to obtain a Gaussian fit for some data sets which somehow look like a distorted normal distribution.I have been using software to do that. I wonder if i can apply an iterative algorithm to convert these data sets to a Gaussian fitted curve,the standard deviation and mean of the original curve being the inputs.? Any ideas?

1
You will probably get more informative answers at stats.stackexchange.com :) - huon
I have a similar problem. I have found this. Guo, Hongwei. (2011). A Simple Algorithm for Fitting a Gaussian Function [DSP Tips and Tricks]. IEEE Signal Processing Magazine - IEEE SIGNAL PROCESS MAG. 28. 134-137. 10.1109/MSP.2011.941846. It is a very easy algorithm. The publication is open access. - Zorg

1 Answers

5
votes
  1. Calculate the mean of the data: mu = 1/N Sum(xi)
  2. Calculate the dispersion of the data: sigma = sqrt(1/(N-1) Sum(xi-mu))
  3. Fill in the parameters: gauss = 1/(sigma*sqrt(2pi)))*exp(-1/2*((x-mu)/sigma)^2)

I don't see any need for fitting the beast with the easy math involved.