wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

[MLforDS] Quiz1

Total questions: 15

Worksheet time: 23mins

Name
Class
Date
1.

In linear regression, we try to ________ the LEAST SQUARE ERRORS of the model to identify the line of best fit

a)

change

b)

maximize

c)

minimize

d)

None of those

2.

Which of these variables is a categorical variable?

a)

Heart rate

b)

Blood type

c)

Weight

3.

A common command to start the training process in various ML libraries is:

b)

model.train

4.

Which of these code snippets is correct based on this lesson, if you want to check for the presence of missing values in your dataset? Suppose the dataset is stored in a variable named 'dataset' which is a Pandas DataFrame object.

a)

dataset.isnull().sum()

b)

findMissing(dataset)

c)

sum(null(dataset))

5.

Suppose that we have N independent variables (X1,X2… Xn) and dependent variable is Y.

Now imagine that you are applying linear regression by fitting the best fit line using least square error on this data.

You found that the correlation coefficient for one of its variable (X1) with Y is -0.95.

Which of the following is true for X1?

a)

Relation between the X1 and Y is weak

b)

Correlation can’t judge the relationship

c)

Relation between the X1 and Y is neutral

d)

Relation between the X1 and Y is strong

6.

Which of the following offsets, do we use in linear regression’s least square line fit? Suppose horizontal axis is independent variable and vertical axis is dependent variable.

a)

Vertical offset

b)

None of those

c)

Both, depending on the situation

d)

Perpendicular offset

7.

Overfitting is more likely when you have huge amount of data to train?

a)

TRUE

b)

FALSE

8.

There are five basic steps when you’re implementing linear regression:

a. Check the results of model fitting to know whether the model is satisfactory.

b. Provide data to work with, and eventually do appropriate transformations.

c. Apply the model for predictions.

d. Import the packages and classes that you need.

e. Create a regression model and fit it with existing data.

However, those steps are currently listed in the wrong order. What’s the correct order?

a)

d, b, e, a, c

b)

d, e, c, b, a

c)

e, d, b, a, c

d)

e, c, a, b, d

9.

You work for an insurance company. Which machine learning project would add the most value for the company?

a)

Create an artificial neural network that would host the company directory.

b)

Create an algorithm that consolidates all of your Excel spreadsheets into one data lake.

c)

Use machine learning and big data to research salary requirements.

d)

Use machine learning to better predict risk.

10.

Which of these Python modules is used to plot the visualization of data?

a)

Numpy

b)

Scikit-learn

c)

Matplotlib

d)

Pandas

11.

Which of the following statements is true about outliers in Linear regression?

a)

Linear regression is sensitive to outliers

b)

Can’t say

c)

Linear regression is not sensitive to outliers

12.

Check out these four linear regression plots:

Which one represents an underfitted model?

a)

The top-left plot

b)

The top-right plot

c)

The bottom-left plot

d)

The bottom-right plot

13.

Suppose, you got a situation where you find that your linear regression model is under fitting the data. In such situation which of the following options would you consider?

(1) Add more variables.

(2) Start introducing polynomial degree variables.

(3) Remove some variables.

a)

 1 and 2

b)

2 and 3

c)

1 and 3

d)

1, 2 and 3

14.
a)

θ0=0.5, θ1=0

b)

θ0=0.5, θ1=0.5

c)

θ0=1, θ1=0.5

d)

θ0=0, θ1=0.5

e)

θ0=1, θ1=1

15.

Graphs (A,B, C left to right) show the cost function and Number of iterations. Suppose α1, α2 and α3 are the three learning rates for A, B, C respectively. Which of the following is true about α1, α2 and α3?

a)

 α2 < α1 < α3

b)

None of these

c)

α1 = α2 = α3

d)

α1 > α2 > α3