Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz on Naive Bayes Classifier

Total questions: 54

Worksheet time: 27mins

Name
Class
Date
1.

Who is the author of the document titled "Naive Bayes Classifier"?

a)

Edukondalu Chappidi

b)

Alan Turing

c)

Andrew Ng

d)

Geoffrey Hinton

2.

On what date was the document "Naive Bayes Classifier" authored?

a)

November 29, 2022

b)

January 15, 2021

c)

December 10, 2020

d)

March 5, 2023

3.

What is the main topic of the document authored by Edukondalu Chappidi?

a)

Naive Bayes Classifier

b)

Decision Trees

c)

Neural Networks

d)

Support Vector Machines

4.

Which of the following statements best describes the difference between classification and clustering?

a)

Classification is a supervised learning approach, while clustering is an unsupervised learning approach.

b)

Classification is an unsupervised learning approach, while clustering is a supervised learning approach.

c)

Both classification and clustering are supervised learning approaches.

d)

Both classification and clustering are unsupervised learning approaches.

5.

Which of the following algorithms is commonly used for classification?

a)

Naive Bayes classifier

b)

K-means

c)

DBSCAN

d)

Mean shift

6.

What is required for classification but not for clustering?

a)

Training data or collection of labeled instances

b)

Unlabeled data

c)

Random data

d)

No data at all

7.

Which of the following is NOT a popular clustering algorithm?

a)

Decision trees

b)

K-means

c)

DBSCAN

d)

BIRCH

8.

Suppose you have a dataset with no labels and you want to group similar data instances together. Which technique should you use?

a)

Clustering

b)

Classification

c)

Regression

d)

Dimensionality reduction

9.

If you are using support vector machine, which type of data mining technique are you most likely applying?

a)

Classification

b)

Clustering

c)

Association rule mining

d)

Regression

10.

Which of the following best describes the difference between classification and clustering?

a)

A) Classification assigns labels to data based on predefined categories, while clustering groups data based on similarity without predefined labels.

b)

B) Classification groups data based on similarity, while clustering assigns labels to data.

c)

C) Both classification and clustering assign labels to data based on predefined categories.

d)

D) Clustering is used only for supervised learning, while classification is used for unsupervised learning.

11.

In the context of machine learning, which technique would you use if you have labeled data and want to predict the category of new data points?

a)

A) Classification

b)

B) Clustering

c)

C) Regression

d)

D) Dimensionality Reduction

12.

Suppose you are given a dataset without any labels and you want to find natural groupings among the data points. Which method should you use?

a)

A) Clustering

b)

B) Classification

c)

C) Regression

d)

D) Feature Selection

13.

Based on the diagrams shown, which method involves drawing a boundary to separate different groups?

a)

A) Classification

b)

B) Clustering

c)

C) Regression

d)

D) Association

14.

Which theorem does the Naive Bayes classifier work according to?

a)

Bayes theorem

b)

Pythagorean theorem

c)

Central Limit theorem

d)

Noether's theorem

15.

What is a key computational advantage of the Naive Bayes classifier?

a)

It is computationally efficient and unaffected by noise

b)

It requires large amounts of memory

c)

It is slow and complex

d)

It is only suitable for regression tasks

16.

What assumption does Naive Bayes make about the features involved in classification?

a)

Features are independent of each other given the class variable

b)

Features are always dependent on each other

c)

Features are irrelevant to the class variable

d)

Features must be binary

17.

Which of the following is NOT a typical application of the Naive Bayes classifier?

a)

Predicting weather patterns

b)

Text classification

c)

Traffic risk management

d)

Predicting Alzheimer’s disease from genome-wide data

18.

Naive Bayes is considered a probabilistic model because it calculates the probability of each class given the features using Bayes theorem. In which real-world scenario might its assumption of feature independence be violated?

a)

In spam email detection, because certain words often appear together, making their occurrences dependent.

b)

In image recognition, because feature independence is always maintained.

c)

In medical diagnosis, because feature independence is never violated.

d)

In text classification, because feature independence is always true.

19.

Which are the two major phases of a classifier?

a)

A) Training phase and testing phase

b)

B) Learning phase and validation phase

c)

C) Prediction phase and evaluation phase

d)

D) Feature selection phase and deployment phase

20.

What is generated during the training phase of a classifier?

a)

A) A prediction model that correlates features to a class label

b)

B) A confusion matrix for model evaluation

c)

C) A set of random features for testing

d)

D) A list of possible class labels only

21.

In the naive Bayes classifier, what is calculated at the end of the training phase?

a)

A) Class probabilities and conditional probabilities for feature values given a class

b)

B) Only the accuracy of the classifier

c)

C) The number of features in the dataset

d)

D) The mean and variance of each feature

22.

Calculating conditional probabilities for each feature value given a class is important in the naive Bayes classifier because:

a)

It allows the classifier to estimate the likelihood of a data point belonging to a class based on its features.

b)

It helps in reducing the number of features in the dataset.

c)

It is used to visualize the data distribution.

d)

It is necessary for generating random predictions.

23.

Which theorem is used to calculate the probability of a feature vector belonging to a particular class in the Naive Bayes classifier?

a)

Bayes theorem

b)

Pythagorean theorem

c)

Central Limit theorem

d)

Fundamental theorem of calculus

24.

In the context of Naive Bayes classifier, what does $ p(Y_j|s) $ represent?

a)

Posterior probability of class $ Y_j $ given feature vector $ s $

b)

Prior probability of class $ Y_j $

c)

Conditional probability of feature vector given class $ Y_j $

d)

Prior probability of the feature vector

25.

What is the role of $ p(Y_j) $ in the Naive Bayes classifier?

a)

It is the prior probability of class $ Y_j $

b)

It is the posterior probability of class $ Y_j $

c)

It is the prior probability of the feature vector

d)

It is the conditional probability of the feature vector given class $ Y_j $

26.

How is the prior probability of class $ Y_j $ typically calculated in the Naive Bayes classifier?

a)

Using the training data

b)

Using the test data

c)

By random assignment

d)

By averaging all probabilities

27.

Which term in the Bayes theorem formula for Naive Bayes classifier represents the conditional probability of the feature vector given the class?

a)

$ p(s|Y_j) $

b)

$ p(Y_j|s) $

c)

$ p(Y_j) $

d)

$ p(s) $

28.

Why is the denominator $ p(s) $ included in the Bayes theorem formula for Naive Bayes classifier?

a)

To normalize the probability

b)

To increase the probability

c)

To ignore the feature vector

d)

To calculate the prior probability of the class

29.

Given the Bayes theorem formula p(Yj∣s)=p(Yj)p(s∣Yj)p(s)p(Y_j|s) = \frac{p(Y_j)p(s|Y_j)}{p(s)} , explain how you would use training data to estimate p(Yj)p(Y_j) and p(s∣Yj)p(s|Y_j) for a classification task.

a)

By counting occurrences of each class and feature vector in the training data

b)

By using only the test data

c)

By assigning random probabilities

d)

By ignoring the training data

30.

Which part of the probability equation can be ignored in the naive Bayes classifier when predicting the most likely class of a test sample?

a)

The numerator

b)

The denominator p(s)

c)

The prior probability

d)

The likelihood

31.

What does the naive Bayes classifier use to predict the class label Y for a test sample?

a)

Only the prior probabilities

b)

Only the likelihoods

c)

Probabilities calculated on the training data

d)

Random guessing

32.

Given the formula for the naive Bayes classifier: Y=argmaxj∈1,2,...,Jp(Yj)∏i=1np(si∣Yj)Y = argmax_{j ∈ {1,2,...,J}} p(Y_j) ∏_{i=1}^n p(s_i | Y_j) , what does the classifier maximize to predict the class label?

a)

The sum of probabilities

b)

The minimum probability

c)

The product of prior and conditional probabilities

d)

The average probability

33.

Which machine learning algorithm is being discussed in the provided material?

a)

Naive Bayes classifier

b)

Decision Tree classifier

c)

K-Nearest Neighbors classifier

d)

Support Vector Machine

34.

In the sample dataset for naive Bayes training, how many features are present for each sample?

a)

Three

b)

Two

c)

Four

d)

Five

35.

What is the class label for the sample with feature values s1=1, s2=1, s3=0?

a)

Y1

b)

Y2

c)

Y3

d)

Y4

36.

How many samples in the dataset have the class label Y1?

a)

Three

b)

Two

c)

Four

d)

One

37.

Given the sample dataset, which feature value combination corresponds to the class label Y2?

a)

s1=0, s2=1, s3=0 and s1=1, s2=0, s3=1

b)

s1=1, s2=1, s3=0 and s1=1, s2=0, s3=0

c)

s1=0, s2=0, s3=1 and s1=1, s2=1, s3=0

d)

s1=1, s2=1, s3=1 and s1=0, s2=0, s3=0

38.

If a new sample has feature values s1=0, s2=0, s3=1, what is the most likely class label based on the given dataset?

a)

Y1

b)

Y2

c)

Y3

d)

Cannot be determined

39.

Which classifier is being discussed in the provided material?

a)

Naive Bayes classifier

b)

Decision Tree classifier

c)

Support Vector Machine

d)

K-Nearest Neighbors

40.

How many training samples are considered in the dataset mentioned?

a)

5

b)

3

c)

2

d)

10

41.

What is the probability of class Y₁ in the given dataset?

a)

0.6

b)

0.4

c)

0.5

d)

0.2

42.

What is the probability of class Y₂ in the given dataset?

a)

0.4

b)

0.6

c)

0.2

d)

0.8

43.

If you are given the conditional probabilities for all three features s₁, s₂, and s₃, what can you use them for in the context of Naive Bayes classification?

a)

To calculate the likelihood of each class given the feature values

b)

To determine the mean of the dataset

c)

To cluster the data into groups

d)

To visualize the data distribution

44.

What is the conditional probability P(s₁ = 0 | Y₁) according to the table?

a)

1/3

b)

2/3

c)

1/2

d)

1/4

45.

Which feature has the highest conditional probability P(sᵢ = 0 | Y₁)?

a)

s₁

b)

s₂

c)

s₃

d)

All features have the same probability

46.

For Class Y₂, what is the conditional probability P(s₂ = 1 | Y₂)?

a)

1/2

b)

1/3

c)

2/3

d)

1/4

47.

Compare the conditional probabilities P(s₃ = 0 | Y₁) and P(s₃ = 0 | Y₂). Which class has a higher probability for s₃ = 0?

a)

Class Y₁

b)

Class Y₂

c)

Both are equal

d)

Cannot be determined

48.

If you are given a feature value s₂ = 0, which class (Y₁ or Y₂) has a higher conditional probability for this feature value?

a)

Class Y₁

b)

Class Y₂

c)

Both are equal

d)

Cannot be determined

49.

Which classifier is being discussed in the provided material?

a)

Naive Bayes classifier

b)

Decision Tree classifier

c)

K-Nearest Neighbors classifier

d)

Support Vector Machine classifier

50.

Given a test sample s = (0, 1, 1), what does the naive Bayes classifier calculate?

a)

p(Y1|s) and p(Y2|s)

b)

Only p(Y1|s)

c)

Only p(Y2|s)

d)

p(Y1) and p(Y2)

51.

What is the formula for calculating p(Y1|s = (0, 1, 1)) using the naive Bayes classifier?

a)

p(Y1) * p(s1 = 0|Y1) * p(s2 = 1|Y1) * p(s3 = 1|Y1)

b)

p(Y1) + p(s1 = 0|Y1) + p(s2 = 1|Y1) + p(s3 = 1|Y1)

c)

p(Y1) / p(s1 = 0|Y1) / p(s2 = 1|Y1) / p(s3 = 1|Y1)

d)

p(Y1) - p(s1 = 0|Y1) - p(s2 = 1|Y1) - p(s3 = 1|Y1)

52.

Calculate p(Y1|s = (0, 1, 1)) given p(Y1) = 0.6, p(s1 = 0|Y1) = 1/3, p(s2 = 1|Y1) = 1/3, p(s3 = 1|Y1) = 1/3.

a)

0.022

b)

0.05

c)

0.6

d)

0.4

53.

Based on the calculations, to which class does the naive Bayes classifier assign the sample s = (0, 1, 1)?

a)

Y2

b)

Y1

c)

Both Y1 and Y2

d)

Neither Y1 nor Y2

54.

Explain why the naive Bayes classifier assigns the sample s = (0, 1, 1) to class Y2 instead of Y1.

a)

Because p(Y2|s) is greater than p(Y1|s)

b)

Because p(Y1|s) is greater than p(Y2|s)

c)

Because both probabilities are equal

d)

Because the sample matches the prior of Y1