CompTIA DataX DY0-001 (V1) Practice Question

A data scientist is building a decision tree classifier to predict customer churn. At a specific node containing 20 samples, 10 customers have churned and 10 have not. The scientist is evaluating two features, 'Contract Type' and 'Has Tech Support', to determine the optimal split. The results of splitting by each feature are as follows:

  • Split by 'Contract Type':

    • Node A ('Month-to-Month'): 12 samples (9 Churn, 3 No Churn)
    • Node B ('One/Two Year'): 8 samples (1 Churn, 7 No Churn)
  • Split by 'Has Tech Support':

    • Node C ('Yes'): 10 samples (3 Churn, 7 No Churn)
    • Node D ('No'): 10 samples (7 Churn, 3 No Churn)

Given that the algorithm uses entropy to maximize information gain, which of the following conclusions is correct?

  • The 'Contract Type' feature should be selected because its resulting split has a lower weighted average entropy (approximately 0.705) than the 'Has Tech Support' split (approximately 0.881).

  • The 'Has Tech Support' feature should be selected because its child nodes are perfectly balanced in size (10 samples each), which maximizes the reduction in impurity.

  • The 'Has Tech Support' feature should be selected because its resulting split has a lower weighted average entropy than the 'Contract Type' split.

  • The information gain for both splits is equal, so the Gini index must be calculated to determine the optimal feature.

CompTIA DataX DY0-001 (V1)
Mathematics and Statistics
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

SAVE $64
$529.00 $465.00
Bash, the Crucial Exams Chat Bot
AI Bot