The command SINEFIT/TSA serves two purposes: a) least squares estimation of the parameters of a detected signal and b) filtering the data for a given frequency (so-called prewhitening). The trend removal (zero frequency) constitutes a special case of this filtering. For a pure sinusoid model, the statistic used in SINEFIT/TSA is related to that used in SCARGLE/TSA (Lomb, 1976, Scargle, 1982).
We recommend this statistic for larger data sets and for the detection of smooth, nearly sinusoidal signals, since then its test power is large and the statistical properties are known. In particular the expected value is 1. For observations correlated in groups of size ncorr, divide the value of the Scargle statistics by ncorr(Sect. 12.2.4). The slow algorithm implemented here is suitable for modest numbers of observations. For a faster, FFT based version see Press and Rybicki (1991).
SINEFIT/TSA returns also the table of the residuals X(r) (i.e. of the observations with the fitted oscillation subtracted) in a format suitable for further analysis by any method supported by the TSA package. In this way, the command can be used to perform a CLEAN-like analysis manually by removing individual oscillations one by one in the time domain (see Roberts et al., 1987, Gray & Desikhary, 1973). Since in most astronomical time series the number of different sinusoids present is quite small, we recommend this manual procedure rather than its automated implementation in frequency space by the CLEAN algorithm.
Alternatively, the command can be used to remove a trend from data. In order to use SINEFIT/TSA for a fixed frequency, specify one iteration only. The corresponding value of may in principle be recovered from the standard deviation , where df=nobs-nparm and nobs and nparm are the number of observations and the number of Fourier coefficients (including the mean value), respectively. However, the computation of the periodogram with SINEFIT/TSA is very cumbersome while the results should correspond exactly to the Scargle periodogram (Scargle, 1982, Lomb, 1976).
Among all statistics named in this chapter, AOV used by ORT/TSA and AOV/TSA is the only one with exactly known statistical properties even for small samples. On large samples, AOV is not less sensitive than other statistics using phase binning, i.e. the step function model: , Whittaker & Roberts and PDM. Therefore we recommend the ORT/TSA and AOV/TSA commands for samples of all sizes and particularly for signals with narrow sharp features (pulses, eclipses). If on the average ncorr consecutive observations are correlated, divide the value of the periodogram by ncorr and use the F(n-1,no/ncorr-n) distribution (Sect. 12.2.4). For smooth light curves use low order, e.g. 4 or 3, for optimal sensitivity. For numerous observations and sharp light curves use phase bins of width comparable to that of the narrow features (e.g. pulses, eclipses). Note that phase coverage and consequently quality of the statistics near 0 frequency are notoriously poor for most observations.