Question 7 of 10Pro Only

Explain how decision trees work for classification. What are their main advantages and disadvantages?

Sample answer preview

Decision trees are supervised learning algorithms that make predictions by learning a series of if-then rules from the training data. The model structure resembles a tree, with internal nodes representing decisions based on feature values, branches representing decision…

decision treeGini impurityentropyinformation gainsplittingleaf node

Unlock the full answer

Get the complete model answer, key points, common pitfalls, and access to 9+ more Data Scientist interview questions.

Upgrade to Pro

Starting at $19/month • Cancel anytime