Which of the following is NOT included when using "summary ()" on a dataset?
a. Mean
b. Median
c. Mode
d. 1st Quartile
e. 3rd Quartile correct answers c. Mode
What is the difference between head(boston.housing.df) and boston.housing.df[1:6,] correct
answers These are two ways of getting the same output.
True or False.
Predictive Analytics, as opposed to Statistics, is involved with macro-decisioning when dealing
with data-driven problems. correct answers False
What would the function boston.housing.df[1:3, 10] return? correct answers The first three rows
and the tenth column of the boston.housing.df data frame
Match the following situations with the methods we should use (supervised or unsupervised).
Chase bank tries to decide whether to give loan to a company based on its credit and transaction
history. correct answers supervised
Match the following situations with the methods we should use (supervised or unsupervised).
Kroger provides product coupon to the customers who purchase the bundles of shampoo and
body wash together. correct answers unsupervised
Match the following situations with the methods we should use (supervised or unsupervised).
Amazon provides purchase suggestions by stating that "customers like you also want the
following products." correct answers unsupervised
Match the following situations with the methods we should use (supervised or unsupervised).
Liberty Mutual designed a new insurance product and want to know the future sales and
profitability of it. correct answers supervised
Which of the following counts the number of missing values of the "RM" variable in a dataset?
A. count(is.na(dataset$RM)
, B. sum(is.na(dataset$RM))
C. sum(is.na(NA))
D. count(dataset$RM$NA) correct answers B. sum(is.na(dataset$RM))
Which of the following is NOT a type of data mining?
a. Prediction
b. Classification
c. Machine learning
d. Association rules correct answers c. Machine learning
Fill in the code to generate 5 normal random variables with variance 16 and mean 3.
rnorm(__________, ______________, ____________) correct answers n=5, mean=3, sd=4
If I wanted to display rows 1-10, and columns 2,6,8,9,10 from the Boston housing data set -
which of the following R scripts would give me these specified rows and columns? Select all
options that apply.
A. boston.housing.df[1:10, c(2, 6, 8:10)]
B. boston.housing.df[1:10, (2,6,8,9,10)]
C. boston.housing.df[(1:10), (2,6,8,9,10)]
D. boston.housing.df[c(1:10), c(2,6, 8, 9, 10)]
E. boston.housing.df[c(1:10), c =2,6,8,9,10]
F. boston.housing.df[1:10, c(2,6, 8, 9, 10)] correct answers A. boston.housing.df[1:10, c(2, 6,
8:10)] and
F. boston.housing.df[1:10, c(2,6, 8, 9, 10)]
Which function tells you if an element in a dataset is missing? correct answers is.na()
Which function explains how to use a certain command? correct answers help()
Which function returns the mean, max, and min of a dataset? correct answers summary()
Which function takes a random sample from a specified range of numbers? correct answers
sample()
which function sets a fixed random number generator? correct answers set.seed()
Which of the following is NOT among methods that are used in Predictive Analytics and Data
Mining?
1. Association rules
2. Patterning
3. Recommendation systems
4. Prediction
5. Classification correct answers patterning