HW11_solution

.pdf

School

University of Texas *

*We aren’t endorsed by this school

Course

302

Subject

Industrial Engineering

Date

Jan 9, 2024

Type

pdf

Pages

8

Uploaded by surker21

Report
CEE 373 Homework #11 Due date: December 6 at 11:59pm (NOTE: Wednesday due date) Total: 100 points (NOTE: This HW will replace your lowest HW score) 1. (25 points) Data for the per capita energy consumption and per capita Gross Na- tional Product (GNP) for eight different countries have been compiled by Mead- ows et al. (1972) and tabulated below. Table 1: Country-wide energy consumption and GNP for eight countries Country Per Capita Gross National Product, X Per Capita Energy Consump- tion, Y 1 600 1000 2 2700 700 3 2900 1400 4 4200 2000 5 3100 2500 6 5400 2700 7 8600 2500 8 10300 4000 Please answer the following questions using this data. (a) Plot a scatterplot of Y versus X (b) Determine the linear regression equation for predicting the per capita energy consumption ( Y ) on the basis of a country’s per capita GNP ( X ) and plot the regression line with your scatterplot from part (a). Please calculate regression coefficients by hand (you may check your answers with Python or another computing software). (c) Determine the the R 2 value. What does the R 2 value tell you about the appropriateness of the fit of this linear regression equation? (d) Estimate the Per Capita Energy Consumption for a new country whose Per Capita GNP is 200. Solution: Refer to the solution code https://colab.research.google.com/drive/ 1HGiiJzofZhQWvip5SwAAz5jhDBXRVrdz?authuser=0#scrollTo=g2acxo7tulJU . Page 1 of 8
CEE 373 Homework #11 (a) Scatter plot (b) From the data, the mean values of X ( X ) and Y ( Y ) are: X = 4725 . 0 Y = 2100 . 0 When you calculating regression coefficient ( ˆ β 1 ) and intercept ( ˆ β 0 ), ˆ β 1 = n i =1 ( x i x )( y i y ) n i =1 ( x i x ) 2 = 0 . 279 ˆ β 0 = Y ˆ β 1 X = 783 . 15 Thus, the fitted regression line is: ˆ Y = ˆ β 0 + ˆ β 1 X = 783 . 15 + 0 . 279 X When you draw the regression line with the scatter plot: Page 2 of 8
CEE 373 Homework #11 (c) To calculate R 2 : R 2 = 1 SSE SST SSE = X (( Y ˆ Y ) 2 ) = 2218810 . 80 SST = X (( Y Y ) 2 ) = 7960000 . 0 Thus, R 2 = 1 2218810 . 80 7960000 . 0 0 . 72 R 2 ranges from 0 to 1. A value closer to 1 indicates that a higher proportion of the variance in the dependent variable is explained by the independent variable(s). For instance, an R 2 of 0.72 means that 72% of the variability in the dependent variable is explained by the independent variable(s). (d) When GNP = 200, ˆ Y = ˆ β 0 + ˆ β 1 X = 783 . 15 + 0 . 279 × 200 = 838 . 89 Thus, expected energy consumption is 838.89. 2. (25 points) Suppose a survey of the effect of a fare increase on the loss of ridership for mass transit systems in the United States reveals the data tabulated below. Please answer the following questions using this data. (a) Plot a scatterplot of the above data for the percentage loss in ridership ( Y ) Page 3 of 8
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help