Contents
This book uses several data sets to illustrate the programming analyses and techniques. This appendix describes the data. The section "Data and Programs Used in This Book" on page 15 describes how to download and install the data sets used in this book.
The Vehicles
data set contains information about 1,187 passenger vehicles produced during 2007 as compiled by the US Environmental Protection Agency (EPA) Fuel Economy Guide. Each observation contains information about a vehicle. Some vehicles in the data are flexible-fuel vehicles (FFVs), which are vehicles that can run on gasoline or E85 (a mixture of 85% ethanol and 15% gasoline). These vehicles appear in the data twice, once with the MPG estimates given for gasoline and once for the MPG estimates given for E85. FFVs operating on E85 usually experience a 20-30% drop in miles per gallon due to ethanol's lower energy content.
The data set contains the following variables:
Category | a description of the vehicle type: compact car, large car, midsize car, and so forth | ||||||||
Make | the vehicle's manufacturer | ||||||||
Model | the vehicle's model designation | ||||||||
Engine_Liters | a measurement, in liters, of the size of the combustion chambers in the engine | ||||||||
Engine_Cylinders | the number of cylinders in the engine | ||||||||
Mpg_City | the EPA miles-per-gallon (MPG) estimate for city driving | ||||||||
Mpg_Hwy | the EPA MPG estimate for highway driving | ||||||||
Mpg_Hwy_Minus_City | the difference betwee the MPG estimates for city and highway driving | ||||||||
Hybrid | an indicator variable that contains the value 1 if the vehicle is a hybrid-electric vehicle | ||||||||
Notes | a variable that indicates whether the vehicle is one of the following kinds of vehicles:
|
The Movies
data set contains information about 359 movies released in the US in the time span 2005-2007. Each observation contains information about a movie. The data were obtained from several sources, including the Web sites kids-in-mind.com
and the-numbers.com
.
Title | the movie's title | ||||||||||
MPAARating | the movie rating as determined by the Rating Board of the Motion Picture Association of America. The ratings are as follows:
| ||||||||||
ReleaseDate | the date the film was first released in the US | ||||||||||
Budget | the movie's budget, in millions of dollars | ||||||||||
US_Gross | the movie's gross revenues in the US, in millions of dollars | ||||||||||
World_Gross | the movie's gross revenues worldwide, in millions of dollars | ||||||||||
Sex | a value 0-10 that indicates the amount of sexual references and nudity in a movie, as determined by the | ||||||||||
Violence | a value 0-10 that indicates the amount of violence and gore in a movie, as determined by the | ||||||||||
Profanity | a value 0-10 that indicates the quantity of profane language in a movie, as determined by the | ||||||||||
NumAANomin | the number of Academy Awards nominations for a movie | ||||||||||
NumAAWon | the number of Academy Awards won by a movie | ||||||||||
AANomin | an indicator variable that contains the value 1 if the movie was nominated for at least one Academy Award | ||||||||||
AAWon | an indicator variable that contains the value 1 if the movie won at least one Academy Award | ||||||||||
Distributor | the company that distributed the movie | ||||||||||
Year | the year that the movie was released |
The Birthdays2002
data set contains information about the number of live births in the US for each day in the year 2002. The data are available from the National Center for Health Statistics (NCHS) Web site: www.cdc.gov/nchs
Date | a value that indicates the day of the year |
Births | the number of live births in the US for the day |
Month | a value 1-12 that indicates the month of the year |
DaysInMonth | the number of days in the month |
DOW | a value 1-7 that indicates the day of the week: Sunday (1) through Saturday (7). |
Percentage | the number of live births relative to the mean number of daily births for the year.The NCHS calls this quantity the index of occurrence. |