- Sinusoidal model
In
statistics ,signal processing , andtime series analysis , a sinusoidal model to approximate a sequence "Yi" is::
where "C" is constant defining a
mean level, α is anamplitude for thesine wave , ω is thefrequency , "Ti" is a time variable, φ is thephase , and "Ei" is the error sequence in approximating the sequence "Yi" by the model. This sinusoidal model can be fit usingnonlinear least squares ; to obtain a good fit, nonlinear least squares routines may require good starting values for the constant, the amplitude, and the frequency.Fitting a model with a single sinusoid is a special case of
least-squares spectral analysis .Good starting value for "C"
A good starting value for "C" can be obtained by calculating the
mean of the data. If the data show a trend, i.e., the assumption of constant location is violated, one can replace "C" with a linear or quadraticleast squares fit. That is, the model becomes:
or
:
Good starting value for frequency
The starting value for the frequency can be obtained from the dominant frequency in a
periodogram . Acomplex demodulation phase plot can be used to refine this initial estimate for the frequency.Fact|date=February 2008Good starting values for amplitude
A complex demodulation amplitude plot can be used to find a good starting value for the amplitude. In addition, this plot can indicate whether or not the amplitude is constant over the entire range of the data or if it varies. If the plot is essentially flat, i.e., zero slope, then it is reasonable to assume a constant amplitude in the non-linear model. However, if the slope varies over the range of the plot, one may need to adjust the model to be:
:
That is, one may replace α with a function of time. A linear fit is specified in the model above, but this can be replaced with a more elaborate function if needed.
Model validation
As with any
statistical model , the fit should be subjected to graphical and quantitative techniques ofmodel validation . For example, arun sequence plot to check for significant shifts in location, scale,start-up effect s, andoutliers . Alag plot can be used to verify the residuals are independent. The outliers also appear in the lag plot, and ahistogram andnormal probability plot to check for skewness or other non-normality in the residuals.External links
* [http://www.itl.nist.gov/div898/handbook/eda/section4/eda425.htm Beam deflection case study]
References
Wikimedia Foundation. 2010.