SlideShare a Scribd company logo
1 of 4
Download to read offline
Auto_MPG_Report
Quentin Adam
12/6/2019
Logistic Regression
This shows the probability of a car being of US origin based on its number of cylinders, mpg, hp, acceleration and displacement.
##
## Call:
## glm(formula = orogin ~ cylinders + mpg + horsepower + acceleration +
## displacement, family = "binomial", data = mydf)
##
## Deviance Residuals:
## Min 1Q Median 3Q Max
## -2.82851 -0.54332 0.00894 0.10536 2.25479
##
## Coefficients:
## Estimate Std. Error z value Pr(>|z|)
## (Intercept) 3.48435 3.02361 1.152 0.24916
## cylinders -1.19654 0.38396 -3.116 0.00183 **
## mpg -0.01945 0.03865 -0.503 0.61481
## horsepower -0.07389 0.01910 -3.868 0.00011 ***
## acceleration -0.16920 0.08865 -1.909 0.05630 .
## displacement 0.08779 0.01176 7.466 8.24e-14 ***
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
##
## (Dispersion parameter for binomial family taken to be 1)
##
## Null deviance: 518.67 on 391 degrees of freedom
## Residual deviance: 214.85 on 386 degrees of freedom
## (14 observations deleted due to missingness)
## AIC: 226.85
##
## Number of Fisher Scoring iterations: 8
Decision “Classification” Tree
This shows the decisions tree to assess whether a car is of US origin based on its number of cylinders, mpg, hp, acceleration and displacement.
Comparing the two Models for Accuracy
This performance comparison tells us that the decision tree is more accurate than the logistic model at predicting the origin of the vehicle, as seen
by the decision tree curve (in black) being closer to a “True Positive” (in other words: accurately saying that the vehicle is of US origin when it is
actually of US origin)
Probabilities
For each additional unit of displacement there is a +9% probability of the vehicle being a US vehicle.
## [1] 0.09175883
For each additional number of cylinders there is a +69% probability of the vehicle being of US origin.
## [1] -0.6977619
For each additional number of cylinders there is a +7% probability of the vehicle being of US origin.
## [1] -0.07122615
For each additional number of cylinders there is a +15% probability of the vehicle being of US origin.
## [1] -0.15566

More Related Content

Similar to Auto mpg report (1)

Volumetric efficiency  calculating your cars volumetric efficiency
Volumetric efficiency  calculating your cars volumetric efficiencyVolumetric efficiency  calculating your cars volumetric efficiency
Volumetric efficiency  calculating your cars volumetric efficiency
Zulkarnian Nasrulllah
 
2004 JEEP GRAND CHEROKEE Service Repair Manual
2004 JEEP GRAND CHEROKEE Service Repair Manual2004 JEEP GRAND CHEROKEE Service Repair Manual
2004 JEEP GRAND CHEROKEE Service Repair Manual
fujdfjkkemmd
 
SmirnovGarciaFinalProject
SmirnovGarciaFinalProjectSmirnovGarciaFinalProject
SmirnovGarciaFinalProject
Denis Smirnov
 
Regression_Class_Project_-_MTCARS
Regression_Class_Project_-_MTCARSRegression_Class_Project_-_MTCARS
Regression_Class_Project_-_MTCARS
David Ritchie
 
Cost-Benefit Analysis: Hiring an Attorney for Wake Co (NC) Traffic Court
Cost-Benefit Analysis: Hiring an Attorney for Wake Co (NC) Traffic CourtCost-Benefit Analysis: Hiring an Attorney for Wake Co (NC) Traffic Court
Cost-Benefit Analysis: Hiring an Attorney for Wake Co (NC) Traffic Court
Jonathan Shores
 
2003 DODGE RAM TRUCK Service Repair Manual
2003 DODGE RAM TRUCK Service Repair Manual2003 DODGE RAM TRUCK Service Repair Manual
2003 DODGE RAM TRUCK Service Repair Manual
jksemd dysjekmdm
 
2003 DODGE RAM TRUCK Service Repair Manual
2003 DODGE RAM TRUCK Service Repair Manual2003 DODGE RAM TRUCK Service Repair Manual
2003 DODGE RAM TRUCK Service Repair Manual
jdksmemd
 
2000 JEEP CHEROKEE Service Repair Manual
2000 JEEP CHEROKEE Service Repair Manual2000 JEEP CHEROKEE Service Repair Manual
2000 JEEP CHEROKEE Service Repair Manual
hjdkmsmeme
 

Similar to Auto mpg report (1) (20)

Volumetric efficiency  calculating your cars volumetric efficiency
Volumetric efficiency  calculating your cars volumetric efficiencyVolumetric efficiency  calculating your cars volumetric efficiency
Volumetric efficiency  calculating your cars volumetric efficiency
 
Predicting model for prices of used cars
Predicting model for prices of used carsPredicting model for prices of used cars
Predicting model for prices of used cars
 
Kenny_Automobile_EDA.pdf
Kenny_Automobile_EDA.pdfKenny_Automobile_EDA.pdf
Kenny_Automobile_EDA.pdf
 
CARVANA - Predicting the purchase quality in car
CARVANA - Predicting the  purchase quality in carCARVANA - Predicting the  purchase quality in car
CARVANA - Predicting the purchase quality in car
 
2004 JEEP GRAND CHEROKEE Service Repair Manual
2004 JEEP GRAND CHEROKEE Service Repair Manual2004 JEEP GRAND CHEROKEE Service Repair Manual
2004 JEEP GRAND CHEROKEE Service Repair Manual
 
[SMX ADVANCED - BERLIN 2019] Automate & Scale STR Treasure Hunt - Marco Fri...
[SMX ADVANCED - BERLIN 2019]   Automate & Scale STR Treasure Hunt - Marco Fri...[SMX ADVANCED - BERLIN 2019]   Automate & Scale STR Treasure Hunt - Marco Fri...
[SMX ADVANCED - BERLIN 2019] Automate & Scale STR Treasure Hunt - Marco Fri...
 
SMX Advanced Europe 2019 Automate and Scale Google Ads Search Term Report
SMX Advanced Europe 2019 Automate and Scale Google Ads Search Term ReportSMX Advanced Europe 2019 Automate and Scale Google Ads Search Term Report
SMX Advanced Europe 2019 Automate and Scale Google Ads Search Term Report
 
XStream Flyer
XStream FlyerXStream Flyer
XStream Flyer
 
Circumspector presentation
Circumspector presentationCircumspector presentation
Circumspector presentation
 
Columbus Track: Vehicle Tracking
Columbus Track: Vehicle TrackingColumbus Track: Vehicle Tracking
Columbus Track: Vehicle Tracking
 
CraigPredict: Demo Slides
CraigPredict: Demo SlidesCraigPredict: Demo Slides
CraigPredict: Demo Slides
 
Car Price Trends in www.carfax.com
Car Price Trends in www.carfax.comCar Price Trends in www.carfax.com
Car Price Trends in www.carfax.com
 
SmirnovGarciaFinalProject
SmirnovGarciaFinalProjectSmirnovGarciaFinalProject
SmirnovGarciaFinalProject
 
Regression_Class_Project_-_MTCARS
Regression_Class_Project_-_MTCARSRegression_Class_Project_-_MTCARS
Regression_Class_Project_-_MTCARS
 
Cost-Benefit Analysis: Hiring an Attorney for Wake Co (NC) Traffic Court
Cost-Benefit Analysis: Hiring an Attorney for Wake Co (NC) Traffic CourtCost-Benefit Analysis: Hiring an Attorney for Wake Co (NC) Traffic Court
Cost-Benefit Analysis: Hiring an Attorney for Wake Co (NC) Traffic Court
 
2003 DODGE RAM TRUCK Service Repair Manual
2003 DODGE RAM TRUCK Service Repair Manual2003 DODGE RAM TRUCK Service Repair Manual
2003 DODGE RAM TRUCK Service Repair Manual
 
2003 DODGE RAM TRUCK Service Repair Manual
2003 DODGE RAM TRUCK Service Repair Manual2003 DODGE RAM TRUCK Service Repair Manual
2003 DODGE RAM TRUCK Service Repair Manual
 
2000_durango.pdf
2000_durango.pdf2000_durango.pdf
2000_durango.pdf
 
2000 JEEP CHEROKEE Service Repair Manual
2000 JEEP CHEROKEE Service Repair Manual2000 JEEP CHEROKEE Service Repair Manual
2000 JEEP CHEROKEE Service Repair Manual
 
White Paper on NHTSA’s Recall Request
White Paper on NHTSA’s Recall RequestWhite Paper on NHTSA’s Recall Request
White Paper on NHTSA’s Recall Request
 

Recently uploaded

原件一样伦敦国王学院毕业证成绩单留信学历认证
原件一样伦敦国王学院毕业证成绩单留信学历认证原件一样伦敦国王学院毕业证成绩单留信学历认证
原件一样伦敦国王学院毕业证成绩单留信学历认证
pwgnohujw
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
pwgnohujw
 
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptxAudience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Stephen266013
 
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
Amil baba
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
jk0tkvfv
 
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
ppy8zfkfm
 
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
yulianti213969
 
一比一原版(ucla文凭证书)加州大学洛杉矶分校毕业证学历认证官方成绩单
一比一原版(ucla文凭证书)加州大学洛杉矶分校毕业证学历认证官方成绩单一比一原版(ucla文凭证书)加州大学洛杉矶分校毕业证学历认证官方成绩单
一比一原版(ucla文凭证书)加州大学洛杉矶分校毕业证学历认证官方成绩单
aqpto5bt
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Valters Lauzums
 
edited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdfedited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdf
great91
 

Recently uploaded (20)

Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
Statistics Informed Decisions Using Data 5th edition by Michael Sullivan solu...
 
原件一样伦敦国王学院毕业证成绩单留信学历认证
原件一样伦敦国王学院毕业证成绩单留信学历认证原件一样伦敦国王学院毕业证成绩单留信学历认证
原件一样伦敦国王学院毕业证成绩单留信学历认证
 
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam DunksNOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
 
Audience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptxAudience Researchndfhcvnfgvgbhujhgfv.pptx
Audience Researchndfhcvnfgvgbhujhgfv.pptx
 
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
NO1 Best Kala Jadu Expert Specialist In Germany Kala Jadu Expert Specialist I...
 
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
如何办理(UCLA毕业证书)加州大学洛杉矶分校毕业证成绩单学位证留信学历认证原件一样
 
The Significance of Transliteration Enhancing
The Significance of Transliteration EnhancingThe Significance of Transliteration Enhancing
The Significance of Transliteration Enhancing
 
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
1:1原版定制利物浦大学毕业证(Liverpool毕业证)成绩单学位证书留信学历认证
 
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
 
MATERI MANAJEMEN OF PENYAKIT TETANUS.ppt
MATERI  MANAJEMEN OF PENYAKIT TETANUS.pptMATERI  MANAJEMEN OF PENYAKIT TETANUS.ppt
MATERI MANAJEMEN OF PENYAKIT TETANUS.ppt
 
一比一原版(ucla文凭证书)加州大学洛杉矶分校毕业证学历认证官方成绩单
一比一原版(ucla文凭证书)加州大学洛杉矶分校毕业证学历认证官方成绩单一比一原版(ucla文凭证书)加州大学洛杉矶分校毕业证学历认证官方成绩单
一比一原版(ucla文凭证书)加州大学洛杉矶分校毕业证学历认证官方成绩单
 
社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction
 
Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"Aggregations - The Elasticsearch "GROUP BY"
Aggregations - The Elasticsearch "GROUP BY"
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
 
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
 
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarjSCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
SCI8-Q4-MOD11.pdfwrwujrrjfaajerjrajrrarj
 
How to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data AnalyticsHow to Transform Clinical Trial Management with Advanced Data Analytics
How to Transform Clinical Trial Management with Advanced Data Analytics
 
edited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdfedited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdf
 
Seven tools of quality control.slideshare
Seven tools of quality control.slideshareSeven tools of quality control.slideshare
Seven tools of quality control.slideshare
 

Auto mpg report (1)

  • 1. Auto_MPG_Report Quentin Adam 12/6/2019 Logistic Regression This shows the probability of a car being of US origin based on its number of cylinders, mpg, hp, acceleration and displacement. ## ## Call: ## glm(formula = orogin ~ cylinders + mpg + horsepower + acceleration + ## displacement, family = "binomial", data = mydf) ## ## Deviance Residuals: ## Min 1Q Median 3Q Max ## -2.82851 -0.54332 0.00894 0.10536 2.25479 ## ## Coefficients: ## Estimate Std. Error z value Pr(>|z|) ## (Intercept) 3.48435 3.02361 1.152 0.24916 ## cylinders -1.19654 0.38396 -3.116 0.00183 ** ## mpg -0.01945 0.03865 -0.503 0.61481 ## horsepower -0.07389 0.01910 -3.868 0.00011 *** ## acceleration -0.16920 0.08865 -1.909 0.05630 . ## displacement 0.08779 0.01176 7.466 8.24e-14 *** ## --- ## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1 ## ## (Dispersion parameter for binomial family taken to be 1) ## ## Null deviance: 518.67 on 391 degrees of freedom ## Residual deviance: 214.85 on 386 degrees of freedom ## (14 observations deleted due to missingness) ## AIC: 226.85 ## ## Number of Fisher Scoring iterations: 8
  • 2. Decision “Classification” Tree This shows the decisions tree to assess whether a car is of US origin based on its number of cylinders, mpg, hp, acceleration and displacement. Comparing the two Models for Accuracy This performance comparison tells us that the decision tree is more accurate than the logistic model at predicting the origin of the vehicle, as seen by the decision tree curve (in black) being closer to a “True Positive” (in other words: accurately saying that the vehicle is of US origin when it is actually of US origin)
  • 3. Probabilities For each additional unit of displacement there is a +9% probability of the vehicle being a US vehicle. ## [1] 0.09175883 For each additional number of cylinders there is a +69% probability of the vehicle being of US origin. ## [1] -0.6977619 For each additional number of cylinders there is a +7% probability of the vehicle being of US origin.
  • 4. ## [1] -0.07122615 For each additional number of cylinders there is a +15% probability of the vehicle being of US origin. ## [1] -0.15566