0

Machine Learning Decision Trees

Description: Machine Learning Decision Trees Quiz
Number of Questions: 15
Created by:
Tags: machine learning decision trees classification regression
Attempted 0/15 Correct 0 Score 0

What is a decision tree in machine learning?

  1. A supervised learning model that uses a tree-like structure to make decisions.

  2. An unsupervised learning model that uses a tree-like structure to find patterns in data.

  3. A reinforcement learning model that uses a tree-like structure to learn from its environment.

  4. A neural network model that uses a tree-like structure to process data.


Correct Option: A
Explanation:

A decision tree is a supervised learning model that uses a tree-like structure to make decisions. It starts with a root node, which represents the entire dataset. Each internal node represents a decision, and each leaf node represents a class label or a continuous value.

What is the main advantage of decision trees?

  1. They are easy to interpret.

  2. They can handle both categorical and numerical data.

  3. They are robust to outliers.

  4. All of the above.


Correct Option: D
Explanation:

Decision trees have several advantages, including ease of interpretation, ability to handle both categorical and numerical data, and robustness to outliers.

What is the main disadvantage of decision trees?

  1. They can be biased towards the majority class.

  2. They can be sensitive to noise in the data.

  3. They can overfit the data.

  4. All of the above.


Correct Option: D
Explanation:

Decision trees have several disadvantages, including bias towards the majority class, sensitivity to noise in the data, and overfitting.

What is the most common algorithm used to build decision trees?

  1. ID3

  2. C4.5

  3. CART

  4. All of the above.


Correct Option: D
Explanation:

ID3, C4.5, and CART are all popular algorithms used to build decision trees.

What is the difference between ID3 and C4.5?

  1. ID3 uses information gain to split the data, while C4.5 uses gain ratio.

  2. ID3 can handle only categorical data, while C4.5 can handle both categorical and numerical data.

  3. ID3 is more sensitive to noise in the data than C4.5.

  4. All of the above.


Correct Option: D
Explanation:

ID3 and C4.5 differ in the way they split the data, the types of data they can handle, and their sensitivity to noise.

What is the difference between CART and ID3/C4.5?

  1. CART uses the Gini impurity to split the data, while ID3/C4.5 use information gain or gain ratio.

  2. CART can handle both categorical and numerical data, while ID3/C4.5 can handle only categorical data.

  3. CART is less sensitive to noise in the data than ID3/C4.5.

  4. All of the above.


Correct Option: D
Explanation:

CART differs from ID3 and C4.5 in the way it splits the data, the types of data it can handle, and its sensitivity to noise.

What is pruning in decision trees?

  1. Removing unnecessary branches from a decision tree to improve its performance.

  2. Adding new branches to a decision tree to improve its performance.

  3. Changing the decision criteria at each node of a decision tree to improve its performance.

  4. None of the above.


Correct Option: A
Explanation:

Pruning is the process of removing unnecessary branches from a decision tree to improve its performance.

What is the most common pruning method used in decision trees?

  1. Cost-complexity pruning

  2. Reduced error pruning

  3. Minimum description length pruning

  4. All of the above.


Correct Option: A
Explanation:

Cost-complexity pruning is the most common pruning method used in decision trees.

What is the main advantage of pruning decision trees?

  1. It reduces the size of the tree.

  2. It improves the accuracy of the tree.

  3. It makes the tree easier to interpret.

  4. All of the above.


Correct Option: D
Explanation:

Pruning decision trees has several advantages, including reducing the size of the tree, improving its accuracy, and making it easier to interpret.

What is the main disadvantage of pruning decision trees?

  1. It can lead to underfitting.

  2. It can make the tree more sensitive to noise in the data.

  3. It can increase the computational cost of building the tree.

  4. All of the above.


Correct Option: D
Explanation:

Pruning decision trees has several disadvantages, including the potential for underfitting, increased sensitivity to noise, and increased computational cost.

When should you use a decision tree?

  1. When you have a large dataset.

  2. When you have a dataset with both categorical and numerical features.

  3. When you need a model that is easy to interpret.

  4. All of the above.


Correct Option: D
Explanation:

Decision trees are a good choice for problems with large datasets, datasets with both categorical and numerical features, and problems where interpretability is important.

When should you not use a decision tree?

  1. When you have a small dataset.

  2. When you have a dataset with a lot of noise.

  3. When you need a model with high accuracy.

  4. All of the above.


Correct Option: D
Explanation:

Decision trees are not a good choice for problems with small datasets, datasets with a lot of noise, and problems where high accuracy is required.

What are some applications of decision trees?

  1. Fraud detection

  2. Customer churn prediction

  3. Medical diagnosis

  4. All of the above.


Correct Option: D
Explanation:

Decision trees are used in a wide variety of applications, including fraud detection, customer churn prediction, and medical diagnosis.

What are some of the most popular decision tree libraries in Python?

  1. scikit-learn

  2. XGBoost

  3. LightGBM

  4. All of the above.


Correct Option: D
Explanation:

scikit-learn, XGBoost, and LightGBM are all popular decision tree libraries in Python.

What are some of the most popular decision tree libraries in R?

  1. rpart

  2. party

  3. randomForest

  4. All of the above.


Correct Option: D
Explanation:

rpart, party, and randomForest are all popular decision tree libraries in R.

- Hide questions