wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Classification Review

Total questions: 26

Worksheet time: 26mins

Name
Class
Date
1.

This type of machine learning uses labeled data to train a model to make predictions on unseen data. It does this by applying the patterns it learned from the training stage to new data.

a)

Supervised learning

b)

Unsupervised learning

2.

This type of machine learning does not begin with labeled data, so instead of trying to predict a target value, your model attempts to create groups of similar observations in your data. It is then up to you to decide if the groupings are meaningful or interesting and how they might be used.

a)

Supervised learning

b)

Unsupervised learning

3.

The following are reasons for splitting our dataset into train, validate, and test datasets:

a)

Avoiding data leakage from unseen data into training data.

b)

Identifying an overfit model.

c)

Choosing a best model for your purposes from several created models.

d)

Making your code run faster and more efficiently on a smaller dataset.

4.

You should use your full dataset when fitting your model.

a)

True

b)

False

5.

You should split your dataset into train, validate, and test datasets before you begin creating bi- and multivariate data visualizations like heatmaps, pairgrids, scatter plots, etc.

a)

True, then use train only.

b)

False, use your full dataframe.

6.

If you need to encode a categorical variable, you should only use get_dummies after you have split your dataset into train, validate, and test datasets.

a)

True, then use train only.

b)

False, use your full dataframe.

7.

You can use your entire dataset (before splitting it into train, validate, and test datasets) to explore individual variable distributions.

a)

True

b)

False

8.

After I split my dataset into train, validate, and test sets, in the modeling phase I need to create my model and then fit and transform my model using each dataset.

a)

True

b)

False

9.

Which of the following are true about a chi-square test?

a)

It is used to compare two categorical variables.

b)

It is used to identify whether there is a relationship between a categorical variable and a continuous variable.

c)

It compares the observed data to a model that distributes the data according to the expectation that the variables are independent.

d)

It is a non-parametric test meaning that it does not assume normally distributed data.

e)

It is one of the most useful statistical tests for hypothesis testing because of the detailed information it provides on which categories account for differences found.

10.

Which of the following are true about a t-test?

a)

It is used to compare a continuous variable and a categorical variable.

b)

It compares the mean of the continuous variable by subgroups in a two sample t-test (aka an independent t-test).

c)

It compares the mean of the population to the mean of a subgroup in a one sample t-test.

d)

It is a non-parametric test that does not assume normally distributed data.

e)

My Null hypothesis would be that there is no difference between the means.

11.

Which of the following are true about Logistic Regression?

a)

It’s a classification algorithm that predicts a categorical variable.

b)

It estimates the probability that an observation belongs to a certain class or group.

c)

Independent variables used as features in a model should be independent of each other.

12.

How do I know if the results from my t-test test are significant?

a)

Compare the p-value returned by the test to my pre-set alpha value.

b)

I check my R-squared value; the higher the better.

c)

If my Mean Squared Error is very small, my t-test results are significant.

13.

Once I split my data into train, validate, and test, I only use my _______ dataset to fit my model one time. I can then use my model to make predictions.

a)

Train

b)

Validate

c)

Test

14.

Once I split my data into train, validate, and test, I use my _______ dataset to see how my model performs on unseen data for the first time. This will identify whether my model is overfit to the train dataset.

a)

Train

b)

Validate

c)

Test

15.

Once I split my data into train, validate, and test, I use my _______ dataset to tune my model by optimizing hyperparameters.

a)

Train

b)

Validate

c)

Test

16.

Once I split my data into train, validate, and test, I use my _______ dataset one time on my best model to see how it performs on unseen data.

a)

Train

b)

Validate

c)

Test

17.

When I’m ready to test my best model, I need to go through the entire process of fitting my model to my X_test before making predictions using X_test and y_test.

a)

True

b)

False

18.

When I split my data into train, validate, and test datasets, I want to make sure my test dataset is the largest, so I have lot of unseen data to use with my best model.

a)

True

b)

False

19.

If I want to run a t-test to find out if the age of titanic passengers is significantly different for those who survived versus those who did not survive, which would be my Null hypothesis?

a)

The mean age of passengers who survived the Titanic crash does not equal the mean age of passengers who did not survive the crash.

b)

The mean age of passengers who survived the Titanic crash equals the mean age of passengers who did not survive the crash.

20.

To attain a simple baseline accuracy for predicting the target value in my dataset, I should predict the __________ value for the target variable.

a)

Mean

b)

Mode

c)

Median

d)

IQR

21.

Considering that Accuracy is the ratio of your correct predictions over all of your observations, which is the formula for calculating Accuracy?

a)
b)
c)
22.

Considering that Recall tells you what percentage of the time your model is identifying the positive cases in your datasaet, which is the formula for calculating Recall?

a)
b)
c)
23.

Considering that Precision tells you what percentage of the time your model is correctly predicting positive cases in your datasaet, which is the formula for calculating Precision?

a)
b)
c)
24.

What is another name for Recall?

a)

True Positivity Rate

b)

Specificity

c)

Precision

d)

Sensitivity

25.

As your recall score increases, your (a)   score decreases; it’s a tradeoff.

26.

(a)   is the metric that tells me what percentage of the time my model is identifying the negative cases in my dataset, the complement to Recall?