Databricks Machine Learning Associate exam dumps

Databricks Machine Learning Associate practice question 508 of 656

Databricks Certified Machine Learning Associate. Associate level, Databricks. Free question with the correct answer and a full explanation.

Databricks Machine Learning Associate Question 508

Select 2

You are working on a machine learning project using Databricks, and you want to visualize the relationship between a categorical feature 'Product_Category' and a continuous feature 'Sales'. Which of the following visualizations are most appropriate for this purpose?

  1. A

    Box plot

  2. B

    Bar chart

  3. C

    Scatter plot

  4. D

    Histogram

  5. E

    Violin plot

Show answer and explanation

Correct answers: A, E

Explanation

To visualize the relationship between a categorical feature and a continuous feature, you need visualizations that display the distribution of the continuous variable across categories. Both box plots and violin plots are ideal for this purpose as they display the spread, quartiles, and even density of the continuous variable within each category. Other options, like scatter plots and histograms, are not appropriate for visualizing relationships between categorical and continuous variables.

  • A. Correct.

    Box plot is an excellent choice for visualizing the distribution of a continuous variable (Sales) across different categories (Product_Category). It provides insights into the spread, quartiles, and potential outliers for each category.

  • B. Incorrect.

    Bar chart is typically used to display aggregated data for categorical variables, but it does not show the distribution of a continuous variable across categories. Hence, it is not suitable for this specific case.

  • C. Incorrect.

    Scatter plot is used to visualize the relationship between two continuous variables. Since one variable here is categorical, this option is not appropriate.

  • D. Incorrect.

    Histogram is used to visualize the distribution of a single continuous variable. It does not show the relationship between a categorical and a continuous variable, so it is not suitable in this case.

  • E. Correct.

    Violin plot is a suitable choice as it provides a detailed visualization of the distribution of a continuous variable (Sales) for each category (Product_Category), including both density and spread.

Timed practice exam

Take a Databricks Machine Learning Associate practice test under exam conditions

48 questions in 90 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam