The cars data set was constructed by randomly selecting 54 cars and then collecting data on various attributes of these cars. The first ten observations of the data can be seen in the data matrix below:
## type price mpgCity driveTrain passengers weight
## 1 small 15.9 25 front 5 2705
## 2 midsize 33.9 18 front 5 3560
## 3 midsize 37.7 19 front 6 3405
## 4 midsize 30.0 22 rear 4 3640
## 5 midsize 15.7 22 front 6 2880
## 6 large 20.8 19 front 6 3470
The ipod dataset was constructed by looking at 3000 songs on Bradshaw’s ipod and recording the lengths of each of these songs. The first ten obsertvations of the data can be seen in the data matrix below:
## songLength
## 1 0.9047763
## 2 0.2007149
## 3 0.8378343
## 4 0.6075439
## 5 0.3441459
## 6 0.9662882
Suppose you flip a coin five times and record the outcome (heads or tails) each time.
Suppose you draw five cards out of a standard 4-suit, 52 card deck.
In a recent interesting study, researcher wondered if the percentage of a student’s friends who were of the opposite sex negatively effected how well they did in school due to distrction. The researchers collected data on 20,769 students. They recorded which school the student attended, the percent of the student’s friends who were of the opposite sex, whether the student hung out with friends outside of school, and the student’s cumulative GPA.
Often times, google engineers collect data from a large number of emails in order to build spam filters. Below are some of the variables that are collected from emails in order to detect spam. For each of these variables, determine the type of variable as well as its subtype.
Sports statistics data is probably the most widely used data among the general public. Below is a data matrix displaying several MLB players and their characteristics.
## player team position salary
## 16 Blaine Boyer Arizona Diamondbacks Pitcher 725.0
## 81 Dirk Hayhurst Toronto Blue Jays Pitcher 405.0
## 29 Tim Hudson Atlanta Braves Pitcher 9000.0
## 84 Mike McCoy Toronto Blue Jays Second Baseman 400.7
## 34 Takashi Saito Atlanta Braves Pitcher 3200.0
## 77 Brandon Morrow Toronto Blue Jays Pitcher 409.8