Question: Linear Regression Model Homework Assignment An important application of predictive models is understanding sales. In this assignment, we will predict the monthly sales in the

Linear Regression Model Homework Assignment

An important application of predictive models is understanding sales. In this assignment, we will predict the monthly sales in the United States of the Hyundai Elantra car. The variables are defined below:

Variable

Description

MonthThe observation month (1=January, 2=February, 3=March, etc.)
YearThe observation year
ElantraSalesThe umber of the units of the Hyundai Elantra sold in the U.S. in the given month and year
UnemploymentThe estimated unemployment rate as a percentage in the U.S. in the given month and year
QueriesA (normalized) approximation of the number of Google searches for "Hyundai Elantra" in the given month and year
CPI.AllThe consumer price index for all products for the given month and year. This is a measure of the magnitude of the prices paid by consumer households for good and services
CPI.EnergyThe monthly consumer price index for energy for the given month and year
Spring1 if Month=3, 4, 5; 0 otherwise
Summer1 if Month=6, 7, 8; 0 otherwise
Fall1 if Month=9, 10, 11; 0 otherwise

Note: the variables Spring, Summer, and Fall are called the "dummy" variables. They are created to represent each season. When the values of Spring, Summer, and Fall are all equal to 0, it refers to Month=12, 1, 2. Therefore, we don't need an additional dummy variable to represent the Winter season.

Perform the following tasks:

  1. Split the Elantra.csv data into a training set and a testing set. The training set has all observations for 2010, 2011, and 2012, and the testing set has all observations for 2013 and 2014.
  2. Build a regression model based on the training set to predict monthly Elantra sales using Unemployment, Queries, CPI.Energy, and CPI.Allas the predicting variables.

  • Present the fitted regression equation. (i.e., y=0.5+1.2X1+0.35X2+...)

  • Provide the fitted coefficients table such as the one below:
CoefficientsStandard Errort StatP-valueLower 95%Upper 95%
Intercept

Unemployment

Queries

CPI.All

CPI.Energy

  • Is the "sign" of the fitted coefficient of each variable consistent with what we would expect for its relation with the sales? (For example, a negative sign indicates the values of the predicting variable are negatively correlated with sales amount. If the sign of the variable CPI.ALL is positive, does it make sense to you?)

  1. What is the
    Linear Regression Model Homework Assignment AnLinear Regression Model Homework Assignment AnLinear Regression Model Homework Assignment An
Month Year ElantraSal Unemploy Queries CPI.Energy CPI.All Spring Summer Fall 2010 7690 9.7 153 213.377 217.466 0 IN 2010 7966 9.8 130 209.924 217.251 0 2010 8225 9.9 138 209.163 217.305 4 2010 9657 9.9 132 209.024 217.376 2010 9781 9.6 177 206.172 217.299 0 6 2010 14245 9.4 138 204.161 217.285 0 7 2010 18215 9.5 156 206.834 217.677 8 2010 15181 9.5 202 208.927 218.012 9 2010 10062 9.5 150 209.85 218.281 10 2010 9497 9.5 178 216.655 219.024 11 2010 8631 9.8 161 219.303 219.544 12 2010 13096 9.4 170 227.19 220.437 2011 9659 9.1 259 229.353 221.082 N 2011 12289 9 266 232.188 221.816 O O O O O O O H P P O O O O O O O O O K I P O O O O O HOO O O O O O O O K B B O O O O 0 0 0 0 0 KK POO 3 2011 19255 9 281 239.454 222.955 4 2011 22100 9.1 305 247.129 224.056 2011 20006 9 376 250.538 224.918 6 2011 19992 9.1 371 246.401 224.99 2011 15181 9 427 246.968 225.553 8 2011 15054 9 336 247.112 226.149 9 2011 14386 9 357 249.732 226.674 10 2011 13000 8.8 370 246.971 226.761 11 2011 12414 8.6 255 247.092 227.136 12 2011 13025 8.5 253 243.015 227.093 2012 10900 8.2 354 244.178 227.666 2012 13820 8.3 296 247.615 228.138 2012 19681 8.2 303 249.095 228.732\f\f

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!