0% found this document useful (0 votes)
83 views12 pages

Self-Quiz Unit 3 - Attempt Review2

This document provides a summary of a self-quiz completed in R on linear regression. The quiz contained 18 multiple choice questions testing concepts related to linear regression, including identifying parametric approaches, computing regression coefficients, generating and interpreting regression models and residual plots, and using the lm() function to build linear regression models in R. The student answered all questions correctly, receiving full marks and a grade of 100% for the quiz.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views12 pages

Self-Quiz Unit 3 - Attempt Review2

This document provides a summary of a self-quiz completed in R on linear regression. The quiz contained 18 multiple choice questions testing concepts related to linear regression, including identifying parametric approaches, computing regression coefficients, generating and interpreting regression models and residual plots, and using the lm() function to build linear regression models in R. The student answered all questions correctly, receiving full marks and a grade of 100% for the quiz.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

11/28/22, 8:19 PM Self-Quiz Unit 3: Attempt review

Dashboard / My courses /
CS 4407-01 - AY2023-T2 / 24 November - 30 November /
Self-Quiz Unit 3

Started on Monday, 28 November 2022, 5:13 PM


State Finished
Completed on Monday, 28 November 2022, 6:34 PM
Time taken 1 hour 20 mins
Marks 33.00/33.00
Grade 100.00 out of 100.00

Question 1

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=9179121&cmid=329627 1/12
11/28/22, 8:19 PM Self-Quiz Unit 3: Attempt review

Question 2

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

Question 3

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)

https://my.uopeople.edu/mod/quiz/review.php?attempt=9179121&cmid=329627 2/12
11/28/22, 8:19 PM Self-Quiz Unit 3: Attempt review

Question 4

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=9179121&cmid=329627 3/12
11/28/22, 8:19 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=9179121&cmid=329627 4/12
11/28/22, 8:19 PM Self-Quiz Unit 3: Attempt review

Question 6

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 7

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=9179121&cmid=329627 5/12
11/28/22, 8:19 PM Self-Quiz Unit 3: Attempt review

Question 8

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

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=9179121&cmid=329627 6/12
11/28/22, 8:19 PM Self-Quiz Unit 3: Attempt review

Question 10

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()

Question 11

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.

https://my.uopeople.edu/mod/quiz/review.php?attempt=9179121&cmid=329627 7/12
11/28/22, 8:19 PM Self-Quiz Unit 3: Attempt review

Question 12

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'.

Question 13

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'.

https://my.uopeople.edu/mod/quiz/review.php?attempt=9179121&cmid=329627 8/12
11/28/22, 8:19 PM Self-Quiz Unit 3: Attempt review

Question 14

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 15

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=9179121&cmid=329627 9/12
11/28/22, 8:19 PM Self-Quiz Unit 3: Attempt review

Question 16

Correct

Mark 1.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.46  bushels per acre

The correct answer is: 134.46

Question 17

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

https://my.uopeople.edu/mod/quiz/review.php?attempt=9179121&cmid=329627 10/12
11/28/22, 8:19 PM Self-Quiz Unit 3: Attempt review

Question 18

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

Question 19

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'.

https://my.uopeople.edu/mod/quiz/review.php?attempt=9179121&cmid=329627 11/12
11/28/22, 8:19 PM Self-Quiz Unit 3: Attempt review

Question 20

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'.

◄ Learning Journal Unit 3

Jump to...

Graded Quiz Unit 3 ►

https://my.uopeople.edu/mod/quiz/review.php?attempt=9179121&cmid=329627 12/12

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy