You are on page 1of 2

Engine size vs MPG Graph

Plotting the engine size of the cars, in cubic centimetres (CC), against
miles per gallon, gives us:
You’ll notice
there appear to be
less points on
the graph than
there are entries
in the table, but
some data simply
overlaps, either
due to the cars
being similar or
being the same
car entered
multiple times.
From a quick
glance, it
appears that
larger engines
tend to give
inferior fuel
efficiency,
though we can do
better than
simple visual
analysis. Using the CORR procedure, we can get an exact value for a
correlation between the two variables. Using the Pearson correlation
calculation, we see a correlation of around -0.7 (1d.p.) between engine
size and fuel efficiency. This is a respectable correlation and shows
there is some relation of note between fuel efficiency and engine size – a
larger engine will lead to less miles per gallon of fuel. Though, I would
like to remind everyone that correlation is not necessarily causation, and
there could be other factors not yet examined at work.
We can take this data further to

try and see if the fuel


efficiency: engine size dynamic
changes depending on the
manufacturer of the cars, using
the PROC COMPARE function.
Comparing the MPG for Nissan cars
to Hondas, we see that there is a
slight difference in the mean
miles per gallon, despite the much
greater difference in range. This
all shows that, though there is a
strong correlation between engine
size and fuel economy, it does
indeed vary by make and
manufacture of the cars too.
Just some notes & text commentary for the SAS work I worked on.
I doubt I’ll be able to show up for any meetings but do feel free to
notify me via WhatsApp, message or call, if you need anything, like an
audio recording.

You might also like