The U.S. Department of Energys Fuel Economy Guide provides fuel efficiency data for cars and trucks (Fuel Economy website, September 8, 2012). A portion of
The U.S. Department of Energys Fuel Economy Guide provides fuel efficiency data for cars and trucks (Fuel Economy website, September 8, 2012). A portion of the data for 149 compact, midsize, and large cars is shown in FuelData2012.csv. The dataset contains the following variables: Size: Compact, Midsize, and Large; Displacement: Engine size in liters; Cylinders: Number of cylinders in the engine; Drive: All wheel (A), front wheel (F), and rear wheel (R); Fuel Type: Premium (P) or regular (R) fuel; City MPG: Fuel efficiency rating for city driving in terms of miles per gallon; Hwy MPG: Fuel efficiency rating for highway driving in terms of miles per gallon. (25)
a. Show a relative frequency distribution for the data on Drive.
b. plot a bar chart for the data on Fuel Type
c. Plot a side-by-side Bar chart for the two variables (Size and Fuel Type).
d. Prepare a crosstabulation of the data on Size (rows) and Hwy MPG (columns). Use classes of 1519, 2024, 2529, 3034, 3539, and 4044 for Hwy MPG.
e. Prepare a crosstabulation of the data on Drive (rows) and City MPG (columns). Use classes of 1014, 1519, 2024, 2529, 3034, and 3539, and 4044 for City MPG.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started