I have read a couple of posts on least squares regression of a sine wave, which is essentially what I am trying to do.
(Least squares regression of sine wave; Method of least squares question with trigonometric function)
However, they both include reference to bilinear regression as part of the solution, but unfortunately don't cover that part. I have searched around the net but every result seems to use very complicated notation that I cannot follow. Can someone please give me a simple example of bilinear regression in the context of determining the coefficients of a best fit sine function?
Thanks.
EDIT: To add a bit more info, I have test data collected whilst driving a vehicle around a circle at increasing speed and measuring its response. This particular query relates to the roll behaviour, which increases almost linearly with lateral acceleration. However, the roll data also contains a once per circle variation due to gravity, which is the sinusoid I am trying to fit to so it can be removed.
If I plot roll angle against circles (yaw angle/360), then the variation is obvious. I've tried FFT and DFT techniques to remove the once per circle variation but they are not robust. My best guess at the reason why is that the results are being affected by the underlying trend in the data, which isn't periodic. Even after subtracting a third order polynomial from the data, the results are still hugely sensitive to small differences between runs.
So, I have changed tack and am trying a best fit sinusoid method, hence my post here.