Appendix A. Description of Data Sets

Contents

  • A.1 Installing the Data 415

  • A.2 Vehicles Data 415

  • A.3 Movies Data 416

  • A.4 Birthdays2002 Data 417

A.1 Installing the Data

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.

A.2 Vehicles Data

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:

E85

the MPG estimates for this vehicle were measured for E85 fuel

Gas

the MPG estimates for this vehicle were measured for gasoline

HEV

the vehicle is a hybrid-electric vehicle

Tax

the vehicle is subject to a "gas guzzler" tax as required by the Energy Tax Act of 1978. The tax does not apply to light trucks.

A.3 Movies Data

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:

G

the content of the movie is appropriate for general audiences. A G-rated movie does not contain graphic language, sexual content, or violence.

PG

the movie contains language, sexual content, or violence that might be inappropriate for young children. Parental guidance is suggested.

PG-13

the movie contains language, sexual content, or violence that might be inappropriate for children under the age of 13. Parental guidance is suggested.

R

the movie contains language, sexual content, or violence that most parents would consider inappropriate for children under the age of 17. The movie is "restricted"; children under the age of 17 are not admitted unless accompanied by a parent or guardian.

NR

the movie was not rated by the MPAA's Rating Board.

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 kids-in-mind.com Web site

Violence

a value 0-10 that indicates the amount of violence and gore in a movie, as determined by the kids-in-mind.com Web site

Profanity

a value 0-10 that indicates the quantity of profane language in a movie, as determined by the kids-in-mind.com Web site

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

A.4 Birthdays2002 Data

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset