October 23, 2016

Project Overview

This presentation is based on the exploratory data analysis performed on the "mtcars" dataset that was used eariler in the regression model course project. You can review my project submission via the following link:

https://rpubs.com/choonguan_tan/204762

Objective

Using the mtcars dataset, we are going to visually explore the relationship between a set of independent variables against the dependent variable "miles per gallon (MPG)".

Data transformation

Based on the initial review of the independent variables, the following variables were considered as factors:

  • cyl - Number of cylinders (4,6,8)
  • vs - V/S (0,1)
  • gear - Number of forward gears (4 or 3)
  • carb - Number of carburetors
  • am - Transmission (0 = automatic, 1 = manual)

We have transformed these variables before plotting and visually examining the relationship between the variables.

Plot of Relationship between MPG and key variables

Summary

From the scatterplot, we note that:

  • There appears to be a positive relationship between manual transmission and MPG.
  • Some form of relationship also appears to exists between mpg and these variables:
    • Weight
    • Horsepower