Determining a Regression Equation for Periodic Data