This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Assignment #6
(Due: April 15, 2011)
1. The number of O‐ring failures for the first 23 fights of the US space shuttle Challenger were 0 1 0 NA 0 0 0 0 0 1 1 1 0 0 3 0 0 0 0 0 2 0 1 (NA means not available, the equipment was lost). Make a table of the possible categories. Find the mean. (You might need to try mean(x,na.rm=TRUE) to avoid the value NA, or look at x[!is.na(x)].) 2. The built‐in data set mtcars contains information about cars from a 1974 Motor Trend issue. Load the dataset (data(mtcars)) and answer the following questions. a. What are the variable names? (Try names.) b. What is the maximum mpg? c. Which car has the maximum mpg? d. What horsepower (hp) does the Valiant have? e. What are the first 5 cars listed? f. What are all the values for the Mercedes 450slc (Merc 450SLC)? 3. You are given the following matrices/vectors: a = [2 4 6] ; ⎡3⎤
⎢⎥
b = 2 ; ⎢⎥
⎢5 ⎥
⎣⎦ ⎡ 3 2⎤
⎥ ; ⎣6 4 ⎦ C = ⎢ ⎡0 2 6 ⎤
⎡ 2 6 3⎤
⎡3 4 1 0⎤
⎢1 4 0⎥; G = ⎢6 4 1⎥ ; E = ⎢
⎥; F = ⎢
⎥
⎥
⎢
⎣2 0 6 2⎦
⎢3 0 1 ⎥
⎢3 1 7 ⎥
⎦
⎦
⎣
⎣ ⎡1 0 0⎤
⎥
⎢
I = 0 1 0 ; ⎥
⎢
⎢0 0 1 ⎥
⎦
⎣ ⎡0 0 0 0 ⎤
⎥; ⎣0 0 0 0 ⎦ O = ⎢ ⎡3 8⎤
⎥ ; ⎣8 0⎦ D = ⎢ ⎡ 4 0 0⎤
⎥
⎢
H = 0 2 0 ; ⎥
⎢
⎢0 0 5⎥
⎦
⎣ Determine the result of performing the following operations on the matrices using R. (a': transpose of a) a. 2C+4D c. 2G d. a'+2b e. a+2b' f. b. 4F‐G g. EE' h. E'E i. aa' j. H‐1G IG ...
View
Full
Document
This note was uploaded on 06/06/2011 for the course STAT 4360 taught by Professor Park during the Spring '11 term at University of Georgia Athens.
 Spring '11
 Park

Click to edit the document details