SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
Fit a regression model with the data set Auto from the ISLR2 package. The goal is to explore the
relationship between gas mileage and the other variables in the data set. I highly recommend
reading the documentation for this data set to understand what each variable is measuring. (a)
Are there any columns that should be removed from this dataframe when considering fitting a
multiple linear regression? (b) How many predictors are there in this data set? How many of
these are quantitative? How many of these are categorical? Are there some predictors where this
distinction may not be obvious? Briefly explain. (c) Use the factor () function to convert the
variable origin to be viewed appropriately as a categorical variable. Why do we have to do this?
Also give appropriate descriptive names for each of the levels. (d) A classmate recommends
treating the other variables (cylinders and year) in this analysis as quantitative. What are some
possible reasons for doing this for the discrete variables? For the remainder of this question,
follow the classmate's recommendation. (e) Fit a multiple linear regression model with mpg as
the response variable and all the other variables (except name) as predictors (with no
interactions). Create the necessary plots to assess if the model assumptions are met. Are there
transformations you should try? (f) Your classmate suggests transforming the response by
y=y0.5. Do you agree? Briefly explain? (g) Transform the response variable with y=y0.5, and re-
fit the regression model. Create the necessary plots to assess if the model assumptions are met.
For this model, answer the following: i. How do we interpret the result of the F statistic of 392.8
?
ii. Based on the t tests, what predictor(s) will you consider dropping from the model in order to
simplify the model? iii. Drop the(se) predictor(s), re-fit the model, and compare this model with
the one from part 2g using an appropriate hypothesis test. Which of these two models should you
use? Perform pairwise comparisons (using Tukey's method) to see if the response variable differs
by the origin of the car, while controlling for the other predictors. How do American, European,
and Japanese cars differ in their fuel efficiency? Which origin is the most fuel efficient, and
which is least (while controlling for other predictors)?

Weitere ähnliche Inhalte

Ähnlich wie Fit regression model explore relationship between gas mileage variables Auto data

Econometrics beat dave giles' blog ardl modelling in e_views 9
Econometrics beat  dave giles' blog  ardl modelling in e_views 9Econometrics beat  dave giles' blog  ardl modelling in e_views 9
Econometrics beat dave giles' blog ardl modelling in e_views 9b1mit
 
Stock Price Trend Forecasting using Supervised Learning
Stock Price Trend Forecasting using Supervised LearningStock Price Trend Forecasting using Supervised Learning
Stock Price Trend Forecasting using Supervised LearningSharvil Katariya
 
This project is made up of 4 different parts. The dataset for al
This project is made up of 4 different parts. The dataset for alThis project is made up of 4 different parts. The dataset for al
This project is made up of 4 different parts. The dataset for alrochellwa9f
 
MOdelling CGE in GAMS
MOdelling CGE in GAMSMOdelling CGE in GAMS
MOdelling CGE in GAMSTarig Gibreel
 
1 P a g e ME 350 Project 2 Posted February 26.docx
1  P a g e   ME 350 Project 2  Posted February 26.docx1  P a g e   ME 350 Project 2  Posted February 26.docx
1 P a g e ME 350 Project 2 Posted February 26.docxoswald1horne84988
 
RES 351 Massive Success / snaptutorial.com351
 RES 351 Massive Success / snaptutorial.com351 RES 351 Massive Success / snaptutorial.com351
RES 351 Massive Success / snaptutorial.com351McdonaldRyan0
 
Use of Definitive Screening Designs to Optimize an Analytical Method
Use of Definitive Screening Designs to Optimize an Analytical MethodUse of Definitive Screening Designs to Optimize an Analytical Method
Use of Definitive Screening Designs to Optimize an Analytical MethodPhilip Ramsey
 
Auto MPG Regression Analysis
Auto MPG Regression AnalysisAuto MPG Regression Analysis
Auto MPG Regression AnalysisAnirudh Srinath.V
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.pptTanyaWadhwani4
 
Preprocessing of Low Response Data for Predictive Modeling
Preprocessing of Low Response Data for Predictive ModelingPreprocessing of Low Response Data for Predictive Modeling
Preprocessing of Low Response Data for Predictive Modelingijtsrd
 
Course Project AJ DAVIS DEPARTMENT STORESIntroduction.docx
Course Project AJ DAVIS DEPARTMENT STORESIntroduction.docxCourse Project AJ DAVIS DEPARTMENT STORESIntroduction.docx
Course Project AJ DAVIS DEPARTMENT STORESIntroduction.docxvanesaburnand
 

Ähnlich wie Fit regression model explore relationship between gas mileage variables Auto data (14)

Econometrics beat dave giles' blog ardl modelling in e_views 9
Econometrics beat  dave giles' blog  ardl modelling in e_views 9Econometrics beat  dave giles' blog  ardl modelling in e_views 9
Econometrics beat dave giles' blog ardl modelling in e_views 9
 
Stock Price Trend Forecasting using Supervised Learning
Stock Price Trend Forecasting using Supervised LearningStock Price Trend Forecasting using Supervised Learning
Stock Price Trend Forecasting using Supervised Learning
 
This project is made up of 4 different parts. The dataset for al
This project is made up of 4 different parts. The dataset for alThis project is made up of 4 different parts. The dataset for al
This project is made up of 4 different parts. The dataset for al
 
MOdelling CGE in GAMS
MOdelling CGE in GAMSMOdelling CGE in GAMS
MOdelling CGE in GAMS
 
1 P a g e ME 350 Project 2 Posted February 26.docx
1  P a g e   ME 350 Project 2  Posted February 26.docx1  P a g e   ME 350 Project 2  Posted February 26.docx
1 P a g e ME 350 Project 2 Posted February 26.docx
 
RES 351 Massive Success / snaptutorial.com351
 RES 351 Massive Success / snaptutorial.com351 RES 351 Massive Success / snaptutorial.com351
RES 351 Massive Success / snaptutorial.com351
 
Use of Definitive Screening Designs to Optimize an Analytical Method
Use of Definitive Screening Designs to Optimize an Analytical MethodUse of Definitive Screening Designs to Optimize an Analytical Method
Use of Definitive Screening Designs to Optimize an Analytical Method
 
Auto MPG Regression Analysis
Auto MPG Regression AnalysisAuto MPG Regression Analysis
Auto MPG Regression Analysis
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
2011-36-0091
2011-36-00912011-36-0091
2011-36-0091
 
StatsModelling
StatsModellingStatsModelling
StatsModelling
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
 
Preprocessing of Low Response Data for Predictive Modeling
Preprocessing of Low Response Data for Predictive ModelingPreprocessing of Low Response Data for Predictive Modeling
Preprocessing of Low Response Data for Predictive Modeling
 
Course Project AJ DAVIS DEPARTMENT STORESIntroduction.docx
Course Project AJ DAVIS DEPARTMENT STORESIntroduction.docxCourse Project AJ DAVIS DEPARTMENT STORESIntroduction.docx
Course Project AJ DAVIS DEPARTMENT STORESIntroduction.docx
 

Mehr von info794682

Fived ot the inforautioe in the table, cadculate the firmi 1 cartent .pdf
 Fived ot the inforautioe in the table, cadculate the firmi 1 cartent .pdf Fived ot the inforautioe in the table, cadculate the firmi 1 cartent .pdf
Fived ot the inforautioe in the table, cadculate the firmi 1 cartent .pdfinfo794682
 
Follow the directions below for labeling the map. If a country na.pdf
 Follow the directions below for labeling the map. If a country na.pdf Follow the directions below for labeling the map. If a country na.pdf
Follow the directions below for labeling the map. If a country na.pdfinfo794682
 
Fony and Suzle are ready to expand Great Adventures even further in 2.pdf
 Fony and Suzle are ready to expand Great Adventures even further in 2.pdf Fony and Suzle are ready to expand Great Adventures even further in 2.pdf
Fony and Suzle are ready to expand Great Adventures even further in 2.pdfinfo794682
 
Florida does not experience many earthquakes. Examine this map Which.pdf
 Florida does not experience many earthquakes. Examine this map Which.pdf Florida does not experience many earthquakes. Examine this map Which.pdf
Florida does not experience many earthquakes. Examine this map Which.pdfinfo794682
 
Five threads are created by a process with PID 10. Name three entitie.pdf
 Five threads are created by a process with PID 10. Name three entitie.pdf Five threads are created by a process with PID 10. Name three entitie.pdf
Five threads are created by a process with PID 10. Name three entitie.pdfinfo794682
 
fintrind inain Pimin ie la cuture QutstioN 24 uise mufivitive feectuc.pdf
 fintrind inain Pimin ie la cuture QutstioN 24 uise mufivitive feectuc.pdf fintrind inain Pimin ie la cuture QutstioN 24 uise mufivitive feectuc.pdf
fintrind inain Pimin ie la cuture QutstioN 24 uise mufivitive feectuc.pdfinfo794682
 
Find the z-scores for which 70 of the distributions area lies betwe.pdf
 Find the z-scores for which 70 of the distributions area lies betwe.pdf Find the z-scores for which 70 of the distributions area lies betwe.pdf
Find the z-scores for which 70 of the distributions area lies betwe.pdfinfo794682
 
Finding Binomial Probabilities Using Formulas A survey indicates that.pdf
 Finding Binomial Probabilities Using Formulas A survey indicates that.pdf Finding Binomial Probabilities Using Formulas A survey indicates that.pdf
Finding Binomial Probabilities Using Formulas A survey indicates that.pdfinfo794682
 
Find the present worth of the following cash flow diagram at i=8 per.pdf
 Find the present worth of the following cash flow diagram at i=8 per.pdf Find the present worth of the following cash flow diagram at i=8 per.pdf
Find the present worth of the following cash flow diagram at i=8 per.pdfinfo794682
 
Exhibit 2.7 Refer to Exhibit 2-7. For which of the following is the a.pdf
 Exhibit 2.7 Refer to Exhibit 2-7. For which of the following is the a.pdf Exhibit 2.7 Refer to Exhibit 2-7. For which of the following is the a.pdf
Exhibit 2.7 Refer to Exhibit 2-7. For which of the following is the a.pdfinfo794682
 
Find the Pumalue for the indicated hypodhesis sest whithe given stand.pdf
 Find the Pumalue for the indicated hypodhesis sest whithe given stand.pdf Find the Pumalue for the indicated hypodhesis sest whithe given stand.pdf
Find the Pumalue for the indicated hypodhesis sest whithe given stand.pdfinfo794682
 
Find the indicated z score. The graph depicts the standard normal.pdf
 Find the indicated z score. The graph depicts the standard normal.pdf Find the indicated z score. The graph depicts the standard normal.pdf
Find the indicated z score. The graph depicts the standard normal.pdfinfo794682
 
Find the following values by using the Poisson formula. Appendix A St.pdf
 Find the following values by using the Poisson formula. Appendix A St.pdf Find the following values by using the Poisson formula. Appendix A St.pdf
Find the following values by using the Poisson formula. Appendix A St.pdfinfo794682
 
Find the area of the shaded region. The graph to the right depicts 1Q.pdf
 Find the area of the shaded region. The graph to the right depicts 1Q.pdf Find the area of the shaded region. The graph to the right depicts 1Q.pdf
Find the area of the shaded region. The graph to the right depicts 1Q.pdfinfo794682
 
Find the following values by using the Poisson formula. (Round in.pdf
 Find the following values by using the Poisson formula. (Round in.pdf Find the following values by using the Poisson formula. (Round in.pdf
Find the following values by using the Poisson formula. (Round in.pdfinfo794682
 
Find the area of the shaded region. The graph to the right .pdf
 Find the area of the shaded region. The graph to the right .pdf Find the area of the shaded region. The graph to the right .pdf
Find the area of the shaded region. The graph to the right .pdfinfo794682
 
Find the area of the shaded region. The graph to the right depicts IQ.pdf
 Find the area of the shaded region. The graph to the right depicts IQ.pdf Find the area of the shaded region. The graph to the right depicts IQ.pdf
Find the area of the shaded region. The graph to the right depicts IQ.pdfinfo794682
 
Fill in the missing values in the following table. Assume that the va.pdf
 Fill in the missing values in the following table. Assume that the va.pdf Fill in the missing values in the following table. Assume that the va.pdf
Fill in the missing values in the following table. Assume that the va.pdfinfo794682
 
Figure 4 Sample H-R Diagram QUESTIONS 1. What 3 possible properties .pdf
 Figure 4 Sample H-R Diagram QUESTIONS 1. What 3 possible properties .pdf Figure 4 Sample H-R Diagram QUESTIONS 1. What 3 possible properties .pdf
Figure 4 Sample H-R Diagram QUESTIONS 1. What 3 possible properties .pdfinfo794682
 
Fig. 6 Earthquake Hazard MapUsing Fig. 6 and the distances from qu.pdf
 Fig. 6 Earthquake Hazard MapUsing Fig. 6 and the distances from qu.pdf Fig. 6 Earthquake Hazard MapUsing Fig. 6 and the distances from qu.pdf
Fig. 6 Earthquake Hazard MapUsing Fig. 6 and the distances from qu.pdfinfo794682
 

Mehr von info794682 (20)

Fived ot the inforautioe in the table, cadculate the firmi 1 cartent .pdf
 Fived ot the inforautioe in the table, cadculate the firmi 1 cartent .pdf Fived ot the inforautioe in the table, cadculate the firmi 1 cartent .pdf
Fived ot the inforautioe in the table, cadculate the firmi 1 cartent .pdf
 
Follow the directions below for labeling the map. If a country na.pdf
 Follow the directions below for labeling the map. If a country na.pdf Follow the directions below for labeling the map. If a country na.pdf
Follow the directions below for labeling the map. If a country na.pdf
 
Fony and Suzle are ready to expand Great Adventures even further in 2.pdf
 Fony and Suzle are ready to expand Great Adventures even further in 2.pdf Fony and Suzle are ready to expand Great Adventures even further in 2.pdf
Fony and Suzle are ready to expand Great Adventures even further in 2.pdf
 
Florida does not experience many earthquakes. Examine this map Which.pdf
 Florida does not experience many earthquakes. Examine this map Which.pdf Florida does not experience many earthquakes. Examine this map Which.pdf
Florida does not experience many earthquakes. Examine this map Which.pdf
 
Five threads are created by a process with PID 10. Name three entitie.pdf
 Five threads are created by a process with PID 10. Name three entitie.pdf Five threads are created by a process with PID 10. Name three entitie.pdf
Five threads are created by a process with PID 10. Name three entitie.pdf
 
fintrind inain Pimin ie la cuture QutstioN 24 uise mufivitive feectuc.pdf
 fintrind inain Pimin ie la cuture QutstioN 24 uise mufivitive feectuc.pdf fintrind inain Pimin ie la cuture QutstioN 24 uise mufivitive feectuc.pdf
fintrind inain Pimin ie la cuture QutstioN 24 uise mufivitive feectuc.pdf
 
Find the z-scores for which 70 of the distributions area lies betwe.pdf
 Find the z-scores for which 70 of the distributions area lies betwe.pdf Find the z-scores for which 70 of the distributions area lies betwe.pdf
Find the z-scores for which 70 of the distributions area lies betwe.pdf
 
Finding Binomial Probabilities Using Formulas A survey indicates that.pdf
 Finding Binomial Probabilities Using Formulas A survey indicates that.pdf Finding Binomial Probabilities Using Formulas A survey indicates that.pdf
Finding Binomial Probabilities Using Formulas A survey indicates that.pdf
 
Find the present worth of the following cash flow diagram at i=8 per.pdf
 Find the present worth of the following cash flow diagram at i=8 per.pdf Find the present worth of the following cash flow diagram at i=8 per.pdf
Find the present worth of the following cash flow diagram at i=8 per.pdf
 
Exhibit 2.7 Refer to Exhibit 2-7. For which of the following is the a.pdf
 Exhibit 2.7 Refer to Exhibit 2-7. For which of the following is the a.pdf Exhibit 2.7 Refer to Exhibit 2-7. For which of the following is the a.pdf
Exhibit 2.7 Refer to Exhibit 2-7. For which of the following is the a.pdf
 
Find the Pumalue for the indicated hypodhesis sest whithe given stand.pdf
 Find the Pumalue for the indicated hypodhesis sest whithe given stand.pdf Find the Pumalue for the indicated hypodhesis sest whithe given stand.pdf
Find the Pumalue for the indicated hypodhesis sest whithe given stand.pdf
 
Find the indicated z score. The graph depicts the standard normal.pdf
 Find the indicated z score. The graph depicts the standard normal.pdf Find the indicated z score. The graph depicts the standard normal.pdf
Find the indicated z score. The graph depicts the standard normal.pdf
 
Find the following values by using the Poisson formula. Appendix A St.pdf
 Find the following values by using the Poisson formula. Appendix A St.pdf Find the following values by using the Poisson formula. Appendix A St.pdf
Find the following values by using the Poisson formula. Appendix A St.pdf
 
Find the area of the shaded region. The graph to the right depicts 1Q.pdf
 Find the area of the shaded region. The graph to the right depicts 1Q.pdf Find the area of the shaded region. The graph to the right depicts 1Q.pdf
Find the area of the shaded region. The graph to the right depicts 1Q.pdf
 
Find the following values by using the Poisson formula. (Round in.pdf
 Find the following values by using the Poisson formula. (Round in.pdf Find the following values by using the Poisson formula. (Round in.pdf
Find the following values by using the Poisson formula. (Round in.pdf
 
Find the area of the shaded region. The graph to the right .pdf
 Find the area of the shaded region. The graph to the right .pdf Find the area of the shaded region. The graph to the right .pdf
Find the area of the shaded region. The graph to the right .pdf
 
Find the area of the shaded region. The graph to the right depicts IQ.pdf
 Find the area of the shaded region. The graph to the right depicts IQ.pdf Find the area of the shaded region. The graph to the right depicts IQ.pdf
Find the area of the shaded region. The graph to the right depicts IQ.pdf
 
Fill in the missing values in the following table. Assume that the va.pdf
 Fill in the missing values in the following table. Assume that the va.pdf Fill in the missing values in the following table. Assume that the va.pdf
Fill in the missing values in the following table. Assume that the va.pdf
 
Figure 4 Sample H-R Diagram QUESTIONS 1. What 3 possible properties .pdf
 Figure 4 Sample H-R Diagram QUESTIONS 1. What 3 possible properties .pdf Figure 4 Sample H-R Diagram QUESTIONS 1. What 3 possible properties .pdf
Figure 4 Sample H-R Diagram QUESTIONS 1. What 3 possible properties .pdf
 
Fig. 6 Earthquake Hazard MapUsing Fig. 6 and the distances from qu.pdf
 Fig. 6 Earthquake Hazard MapUsing Fig. 6 and the distances from qu.pdf Fig. 6 Earthquake Hazard MapUsing Fig. 6 and the distances from qu.pdf
Fig. 6 Earthquake Hazard MapUsing Fig. 6 and the distances from qu.pdf
 

Kürzlich hochgeladen

Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 

Kürzlich hochgeladen (20)

Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 

Fit regression model explore relationship between gas mileage variables Auto data

  • 1. Fit a regression model with the data set Auto from the ISLR2 package. The goal is to explore the relationship between gas mileage and the other variables in the data set. I highly recommend reading the documentation for this data set to understand what each variable is measuring. (a) Are there any columns that should be removed from this dataframe when considering fitting a multiple linear regression? (b) How many predictors are there in this data set? How many of these are quantitative? How many of these are categorical? Are there some predictors where this distinction may not be obvious? Briefly explain. (c) Use the factor () function to convert the variable origin to be viewed appropriately as a categorical variable. Why do we have to do this? Also give appropriate descriptive names for each of the levels. (d) A classmate recommends treating the other variables (cylinders and year) in this analysis as quantitative. What are some possible reasons for doing this for the discrete variables? For the remainder of this question, follow the classmate's recommendation. (e) Fit a multiple linear regression model with mpg as the response variable and all the other variables (except name) as predictors (with no interactions). Create the necessary plots to assess if the model assumptions are met. Are there transformations you should try? (f) Your classmate suggests transforming the response by y=y0.5. Do you agree? Briefly explain? (g) Transform the response variable with y=y0.5, and re- fit the regression model. Create the necessary plots to assess if the model assumptions are met. For this model, answer the following: i. How do we interpret the result of the F statistic of 392.8 ? ii. Based on the t tests, what predictor(s) will you consider dropping from the model in order to simplify the model? iii. Drop the(se) predictor(s), re-fit the model, and compare this model with the one from part 2g using an appropriate hypothesis test. Which of these two models should you use? Perform pairwise comparisons (using Tukey's method) to see if the response variable differs by the origin of the car, while controlling for the other predictors. How do American, European, and Japanese cars differ in their fuel efficiency? Which origin is the most fuel efficient, and which is least (while controlling for other predictors)?