You want to find a sine or cosine function with the right amplitude, period, y offset, and angle offset so that it fits the data.
P(t) = asin(bt-c)+d
1) You know the y range is 800 - 200 = 2a a=300 (multiplier for the function that varies from -1 to 1)
2) You know that the avg y is (800+200)/2= d d = 500 (instead of 0 for sine and cos with no offset)
3) The period is one year or 12 months (since t is in months) You want 2π(t/T) inside the sine so that the function repeats when t = T (This will be true regardless of c). So, b = 2π/12 = π/6
4) The offset takes care of the initial condition, which is the low point of sine (this occurs at -π/2), therefore, at t = 0 you want c = π/2.
You could have chosen cosine as sine and cosine are just offset by π/2 the other way.
Caroline P.
Thank you so much, I really appreciate it!!02/10/22