Posted 04 January 2008 - 01:15 AM
ok, so, I'll be general about this.
for one, I think your formula needs to be y = a * cos ( k * x - phi ) + d
I'm using standard mathematical notation for a wave function btw, so change your variables accordingly ( b = k etc ).
a describes the amplitude, so it is essentially [max(y) - min(y)] / 2, I divide by 2 because cosines are generally centered around 0.
k describes the wavenumber (2PI / wavelength) , or how "long" the sinusoid is. If we take the wavelength to be the whole 52 weeks, then k would be 2PI / 52.
phi represents the phase shift, which is how off center the cosine is, this is a poor definition though, but in your case, phi is about 0 (Since your cosine started at the max, if it were at the minimum, phi would be 180 degrees or PI radians). Note that a shift in the positive x direction is represented by a negative phi value.
d is the vertical displacement, and since cosines should average to 0, should equal the average of all the points for one period (you have one period here).
I gave you a lot of data but you should be able to figure everything out from here.