MATH 1281 - AY2021-T4 Final Exam (Days 1 - 4) Review Quiz
MATH 1281 - AY2021-T4 Final Exam (Days 1 - 4) Review Quiz Information The data set "" was introduced in Chapter 9 of the book. This data set contains information on various models of cars. Download this file to your computer and store it in the working directory of R. The file can be downloaded from MATH 1281 Data Files in the course page for MATH 1281. The variable "width" in the data set contains the width of the body of the car in inches. The variable "length" contains the length of the body of the car in inches. Produce a new variable by the name "area" that contains the area of the body of the car. This variable should be produced by multiplying the the width of the body by the length of the body. Answer the following questions with respect to the variable "area": Question 1 Incorrect Mark 0.00 out of 1.00 The variable "area" is a: Select one: a. Numeric b. Factor Upload the file "" to a data set by the name "cars" using the code: cars - ("") . Form the variable "area" using the code: area - cars$length*cars$width . The variable "area" is a product of two numeric variables and it obtains numeric values as well. The correct answer is: Numeric Home My courses MATH 1281 - AY2021-T4 Final Exam (Days 1 - 4) Review Quiz S - The Marketplace to Buy and Sell your Study Material Downloaded by: nurse001 | Distribution of this document is illegal S - The Marketplace to Buy and Sell your Study Material Question 2 Not answered Marked out of 1.00 The average area of the body of a car is: Answer: Apply the code: mean(area) . The sample average turn out to be equal to 11493.36. Alternatively, you may apply the code: summary(area) and obtain the value of the mean from the produced report. The correct answer is: 11493.36 Question 3 Not answered Marked out of 1.00 The median area of the body of a car is: Answer: Apply the code: median(area) . The sample median turn out to be equal to 11314.2. Alternatively, you may apply the code: summary(area) and obtain the value of the median from the produced report. The correct answer is: 11314.2 Question 4 Not answered Marked out of 1.00 The interquartile range of the area is: Answer: Apply the code: quantile(area,c(0.25,0.75)) . The first quartile (Q1) is equal to 10709.72 and the third quartile (Q3) is equal to 12275.90. The difference between Q3 and Q1 is the interquartile range and is equal to IQR = Q3 - Q1 = 1566.18. Alternatively, you may apply the code: summary(area) and obtain the values of Q1 and Q3 from the produced report.
Geschreven voor
- Instelling
- University of South Africa
- Vak
- Math1281
Documentinformatie
- Geüpload op
- 11 oktober 2021
- Aantal pagina's
- 69
- Geschreven in
- 2021/2022
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden
Onderwerpen
-
math 1281 ay2021 t4 final exam days 1 4 review quiz