11/9/22, 4:02 PM Self-Quiz Unit 3: Attempt review
Dashboard / My courses / CS 4407-01 - AY2023-T1 / 15 September - 21 September / Self-Quiz Unit 3
Started on Saturday, 17 September 2022, 12:36 PM
State Finished
Completed on Saturday, 17 September 2022, 12:54 PM
Time taken 17 mins 36 secs
Marks 32.00/33.00
Grade 96.97 out of 100.00
Question 1
Correct
Mark 1.00 out of 1.00
True or False: Logistic regression can be used to predict a continuous variable.
Select one:
True
False
The correct answer is 'False'.
Question 2
Correct
Mark 1.00 out of 1.00
True or False: The fix() function identifies values that contain data within a data frame that are inconsistent and automatically corrects
these values.
Select one:
True
False
The correct answer is 'False'.
https://my.uopeople.edu/mod/quiz/review.php?attempt=8575736&cmid=310357 1/12
11/9/22, 4:02 PM Self-Quiz Unit 3: Attempt review
Question 3
Correct
Mark 1.00 out of 1.00
Residual plots are a useful tool for identifying:
Select one:
a. Non-linearity
b. Linearity
c. Polynomial relationships
d. Non-parametric relationships
Your answer is correct.
The correct answer is: Non-linearity
Question 4
Correct
Mark 1.00 out of 1.00
True or False: Residual plots are a useful tool for identifying non-linearity.
Select one:
True
False
The correct answer is 'True'.
https://my.uopeople.edu/mod/quiz/review.php?attempt=8575736&cmid=310357 2/12
11/9/22, 4:02 PM Self-Quiz Unit 3: Attempt review
Question 5
Correct
Mark 1.00 out of 1.00
You have a dataset which produces the following plot and you need to create a predictive model. Which of the following techniques
are you most likely to use?
Select one:
a. Linear Regression
b. Curvilinear Regression
c. K-Nearest Neighbors
d. Logistic Regression
Your answer is correct.
The correct answer is: Linear Regression
https://my.uopeople.edu/mod/quiz/review.php?attempt=8575736&cmid=310357 3/12
11/9/22, 4:02 PM Self-Quiz Unit 3: Attempt review
Question 6
Correct
Mark 1.00 out of 1.00
The names() function within R:
Select one:
a. Lists all of the column names in the data frame provided as an argument to the function.
b. Attaches the names to make the variables in the data frame available by name.
c. Displays the names of the classes identified by the K means clustering algorithm.
d. None of these answers
Your answer is correct.
The correct answer is: Lists all of the column names in the data frame provided as an argument to the function.
Question 7
Correct
Mark 1.00 out of 1.00
True or False: The following data plot represents data that is linearly separable?
Select one:
True
False
The correct answer is 'False'.
https://my.uopeople.edu/mod/quiz/review.php?attempt=8575736&cmid=310357 4/12
11/9/22, 4:02 PM Self-Quiz Unit 3: Attempt review
Question 8
Correct
Mark 1.00 out of 1.00
Which command will provide descriptive statistics for the Boston data frame?
Select one:
a. summary(Boston)
b. eval(Boston)
c. coef(Boston)
d. stats(Boston)
Your answer is correct.
The correct answer is: summary(Boston)
Question 9
Correct
Mark 1.00 out of 1.00
True or False: The library() function lists all of the libraries that are loaded into memory within R.
Select one:
True
False
The correct answer is 'False'.
https://my.uopeople.edu/mod/quiz/review.php?attempt=8575736&cmid=310357 5/12
11/9/22, 4:02 PM Self-Quiz Unit 3: Attempt review
Question 10
Correct
Mark 1.00 out of 1.00
Which of the following functions is used to generate a linear regression model within R?
Select one:
a. lredict()
b. lm()
c. lstat()
d. glm()
Your answer is correct.
The correct answer is: lm()
Question 11
Correct
Mark 1.00 out of 1.00
True or False: Colinearity refers to a situation in which two or more predictor variables are closely related to each other.
Select one:
True
False
The correct answer is 'True'.
https://my.uopeople.edu/mod/quiz/review.php?attempt=8575736&cmid=310357 6/12
11/9/22, 4:02 PM Self-Quiz Unit 3: Attempt review
Question 12
Correct
Mark 1.00 out of 1.00
Which of the following is an example of a parametric approach.
Select one:
a. KNN Classifier
b. Bayes Classifier
c. Linear Regression
d. Principle Components Analysis
Your answer is correct.
The correct answer is: Linear Regression
https://my.uopeople.edu/mod/quiz/review.php?attempt=8575736&cmid=310357 7/12
11/9/22, 4:02 PM Self-Quiz Unit 3: Attempt review
Question 13
Correct
Mark 6.00 out of 6.00
The values of x and their corresponding values of y are shown in the table below, identify the linear regression model in the form
y=mx+b and report the values of m(slope) and b(intercept) as well as the estimated value of y when the value of x is 10.
b=
2.2
m=
0.9
y=
11.2
Question 14
Correct
Mark 1.00 out of 1.00
True or False: Linear regression is considered a non-parametric approach.
Select one:
True
False
The correct answer is 'False'.
https://my.uopeople.edu/mod/quiz/review.php?attempt=8575736&cmid=310357 8/12
11/9/22, 4:02 PM Self-Quiz Unit 3: Attempt review
Question 15
Correct
Mark 4.00 out of 4.00
The values of y and their corresponding values of y are shown in the table below, identify the linear regression model in the form
y=mx+b and report the values of m (slope) and b (intercept) as well as the estimated value of y when the value of x is 3. Round to the
nearest hundreds place.
b=
4.48
m=
0.66
y=
6.48
https://my.uopeople.edu/mod/quiz/review.php?attempt=8575736&cmid=310357 9/12
11/9/22, 4:02 PM Self-Quiz Unit 3: Attempt review
Question 16
Incorrect
Mark 0.00 out of 1.00
A farmer’s yield of corn is expressed as a linear regression model based upon the input variable which is the number of days of
sunlight during the growing season. The model is express as Y = mX + b where Y is the estimated corn yield in bushels per acre, m =
1.38 and b = 42. Assuming that during the growing season it is predicted that there will be 67 days of sun, what will the corn yield be
in bushels per acre?
134.6 bushels per acre
The correct answer is: 134.46
Question 17
Correct
Mark 6.00 out of 6.00
A linear regression model is expressed as y ≈ β0+ β1x where β0 is the intercept and β1 is the slope of the line. The following equations
can be used to compute the value of the coefficients β0 and β1.
Using the following set of data, find the coefficients β0 and β1rounded to the nearest thousandths place and the predicted value of y
when x is 10.
{(-1 , 0), (0 , 2), (1 , 4), (2 , 5)}
β0 =
1.9
β1 =
1.7
y=
18.9
when x is 10
https://my.uopeople.edu/mod/quiz/review.php?attempt=8575736&cmid=310357 10/12
11/9/22, 4:02 PM Self-Quiz Unit 3: Attempt review
Question 18
Correct
Mark 1.00 out of 1.00
True or False: In the KNN algorithm, a small value for K provides the most flexible fit (low bias/high variance).
Select one:
True
False
The correct answer is 'True'.
Question 19
Correct
Mark 1.00 out of 1.00
The income of a company that produces disaster equipment has been expressed as a linear regression model based upon the input
variable which is the number of hurricanes projected for the upcoming hurricane season. The model is express as Y = mX + b where Y
is the estimated sales in millions of dollars, m = .76 and b = 5. Assuming that the weather service is predicting 6 hurricanes during the
season what are the sales in millions of dollars expected to be?
9.56 million dollars
The correct answer is: 9.56
https://my.uopeople.edu/mod/quiz/review.php?attempt=8575736&cmid=310357 11/12
11/9/22, 4:02 PM Self-Quiz Unit 3: Attempt review
Question 20
Correct
Mark 1.00 out of 1.00
What R command could we use to generate a scatterplot diagram of our data to determine if it forms a linear pattern that would be
suitable for linear regression or a non-linear pattern that would require some other technique?
Select one:
a. plot()
b. hist()
c. matrix()
d. summary()
Your answer is correct.
The correct answer is: plot()
◄ Learning Journal Unit 3
Jump to...
Graded Quiz Unit 3 ►
https://my.uopeople.edu/mod/quiz/review.php?attempt=8575736&cmid=310357 12/12