This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: MAE118A: Introduction to Energy Systems Homework 1 Kowsik Bodi October 7, 2009 Problem 1 The yearly data can be obtained by interpolation from the plot, or from the online databases at 1. EIA website : http://tonto.eia.doe.gov/cfapps/ipdbproject/IEDIndex3. cfm?tid=44&pid=44&aid=2 2. BP website : http://www.bp.com/liveassets/bp_internet/globalbp/ globalbp_uk_english/reports_and_publications/statistical_energy_ review_2008/STAGING/local_assets/2009_downloads/statistical_ review_of_world_energy_full_report_2009.xls 0.1 Linear Leastsquares Fit We want to fit a straight line of the form f ( x ) = a + bx (1) to the N data points ( x i , y i ), i = 1 , 2 , . . . N . In order to quantify the idea of bestfit, we define an error function that needs to be minimized. We define the error as the sum of squares of the deviation of data points from the linefit S ( a, b ) = N X i =1 [ y i- f ( x i )] 2 (2) with respect to the coefficients a, b . This leads to the constraints S a = 0 , S b = 0 (3) 1 If we define P = N X i =1 x i , R = N X i x 2 i = N X i =1 y i , = N X i x i y i These constraints lead to the equations that help us determine a, b Na + Pb = Pa + Rb = Thus, our coefficients are a = R- P RN- P 2 , b = N- P RN- P 2 (4) 0.2 Industrialized Nations years: [1970 1971 1972 1973 1974 1975 1976 1977 1978 1979...
View Full Document
- Fall '09