Sinusoidal model
From Wikipedia, the free encyclopedia
This article does not cite any references or sources. (February 2008) Please help improve this article by adding citations to reliable sources. Unverifiable material may be challenged and removed. |
This article is orphaned as few or no other articles link to it. Please help introduce links in articles on related topics. (February 2008) |
In statistics, signal processing, and time series analysis, a sinusoidal model to approximate a sequence Yi is:
- Yi = C + αsin(ωTi + φ) + Ei
where C is constant defining a mean level, α is an amplitude for the sine wave, ω is the frequency, Ti is a time variable, φ is the phase, and Ei is the error sequence in approximating the sequence Yi by the model. This sinusoidal model can be fit using nonlinear 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.
Contents |
[edit] 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 quadratic least squares fit. That is, the model becomes
- Yi = (B0 + B1Ti) + αsin(2πωTi + φ) + Ei
or
[edit] Good starting value for frequency
The starting value for the frequency can be obtained from the dominant frequency in a periodogram. A complex demodulation phase plot can be used to refine this initial estimate for the frequency.[citation needed]
[edit] Good 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:
- Yi = C + (B0 + B1Ti)sin(2πωTi + φ) + Ei
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.
[edit] Model validation
As with any statistical model, the fit should be subjected to graphical and quantitative techniques of model validation. For example, a run sequence plot to check for significant shifts in location, scale, start-up effects, and outliers. A lag plot can be used to verify the residuals are independent. The outliers also appear in the lag plot, and a histogram and normal probability plot to check for skewness or other non-normality in the residuals.
[edit] External links
[edit] References
This article incorporates text from a public domain publication of the National Institute of Standards and Technology, a U.S. government agency.