This preview shows pages 1–4. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: Problem 1: We will want to find and so that is minimized. Set the partials to be zero: Collecting terms and recalling that , this gives two equations in two unknowns: From Cramer's rule, we get and Problem 2: (1) (1) (2) (2) I'll call the month array and the temperature array 2 4 6 8 10 12 65 70 75 80 85 90 95 The above is the scatter plot of temperature. I'll need to find , , and to minimize , the sum of the squares of the errors. I'll supress output so that you aren't printing out too much garbage. From the scatter plot, we expect a sine curve going from about 60 to about 96, which would have an amplitude of 18. So, I'll tell it to look for between 10 and 20. would be the average temperature (how (3) (3) (4) (4) far up from the axis you move the sine curve), so about 80. I'm taking to be between 0 and , since sine is periodic of that period. On the other hand, 's outside of this range aren't wrong....
View
Full
Document
This note was uploaded on 03/08/2010 for the course MATH 442 taught by Professor Howard during the Spring '08 term at Texas A&M.
 Spring '08
 Howard
 Math, Equations

Click to edit the document details