nerdexam
Amazon

MLS-C01 · Question #373

A machine learning (ML) specialist collected daily product usage data for a group of customers. The ML specialist appended customer metadata such as age and gender from an external data source. The…

The correct answer is B. Create crosstabs for day_of_week and binned_age. To discover the relationship between two categorical features like 'dayofweek' and 'binned_age', crosstabulations are the most appropriate visualization and analysis approach.

Exploratory Data Analysis

Question

A machine learning (ML) specialist collected daily product usage data for a group of customers. The ML specialist appended customer metadata such as age and gender from an external data source. The ML specialist wants to understand product usage patterns for each day of the week for customers in specific age groups. The ML specialist creates two categorical features named dayofweek and binned_age, respectively. Which approach should the ML specialist use discover the relationship between the two new categorical features?

Options

  • ACreate a scatterplot for day_of_week and binned_age.
  • BCreate crosstabs for day_of_week and binned_age.
  • CCreate word clouds for day_of_week and binned_age.
  • DCreate a boxplot for day_of_week and binned_age.

How the community answered

(38 responses)
  • A
    3% (1)
  • B
    89% (34)
  • C
    5% (2)
  • D
    3% (1)

Why each option

To discover the relationship between two categorical features like 'dayofweek' and 'binned_age', crosstabulations are the most appropriate visualization and analysis approach.

ACreate a scatterplot for day_of_week and binned_age.

A scatterplot is used to visualize the relationship between two numerical variables and is not suitable for analyzing the relationship between two categorical features.

BCreate crosstabs for day_of_week and binned_age.Correct

Crosstabs, or cross-tabulations, are used to display the joint distribution of two or more categorical variables. They show the frequency or proportion of observations for each combination of categories, making them ideal for understanding how product usage patterns vary across different days of the week and age groups.

CCreate word clouds for day_of_week and binned_age.

Word clouds are used for visualizing the frequency of words in text data and are irrelevant for understanding the relationship between numerical or categorical features.

DCreate a boxplot for day_of_week and binned_age.

A boxplot is typically used to display the distribution of a numerical variable across different categories of a categorical variable or to compare distributions, not to directly show the relationship between two categorical features.

Concept tested: Exploratory Data Analysis - Categorical features

Source: https://docs.aws.amazon.com/sagemaker/latest/dg/data-wrangler-analyze.html

Topics

#Exploratory Data Analysis#Categorical Features#Crosstabulation#Feature Relationship

Community Discussion

No community discussion yet for this question.

Full MLS-C01 Practice