Section 1

A data frame with 32 observations on 11 (numeric) variables.

  • mpg: Miles/(US) gallon
  • cyl: Number of cylinders
  • disp: Displacement (cu.in.)
  • hp: Gross horsepower
  • drat: Rear axle ratio
  • wt: Weight (1000 lbs)
  • qsec: 1/4 mile time
  • vs: Engine (0 = V-shaped, 1 = straight)
  • am: Transmission (0 = automatic, 1 = manual)
  • gear: Number of forward gears
  • carb: Number of carburetors

Section 2

The formula for mpg

\[ mpg = \frac{miles\;traveled}{gallon\;of\;gas} \]

Section 3

Histogram of the mpg variable