1. Correlation between MPG and HP

## 
##  Pearson's product-moment correlation
## 
## data:  mtcars$mpg and mtcars$hp
## t = -6.7424, df = 30, p-value = 1.788e-07
## alternative hypothesis: true correlation is not equal to 0
## 95 percent confidence interval:
##  -0.8852686 -0.5860994
## sample estimates:
##        cor 
## -0.7761684
Technical interpretation
  • The test result is significant alpha (0.05) is > than P-value.
  • There is a correlation between hp and mpg, we reject the null hypothesis because the key value is less than alpha.
  • The correlation is negative, and big.
Non-technical interpretation
  • The higher the Horsepower the lower the fuel efficiency.
Graph