Courseiva
Exploratory Data AnalysiseasyMultiple ChoiceObjective-mapped

MLS-C01 Exploratory Data Analysis Practice Question

A machine learning engineer is analyzing a text classification dataset with 50,000 documents. Which EDA step is most important to understand the vocabulary size and frequency distribution?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Plot frequency of each word in a bar chart

Plotting the frequency of each word in a bar chart directly shows the vocabulary size and the frequency distribution (e.g., Zipfian distribution). This EDA step helps decide vocabulary cutoff by identifying very rare words that can be removed. Option A is wrong because TF-IDF is a feature transformation, not an exploratory step. Option C is wrong because bigram collocations are for detecting phrases, not for basic word frequency. Option D is wrong because document length distribution pertains to the number of words per document, not vocabulary size or word frequency.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Compute TF-IDF matrix

    Why it's wrong here

    TF-IDF is a feature transformation, not an exploratory step. It does not directly show vocabulary size or frequency distribution.

  • Plot frequency of each word in a bar chart

    Why this is correct

    Plotting the frequency of each word in a bar chart directly shows the vocabulary size and the frequency distribution (e.g., Zipfian distribution). This EDA step helps decide vocabulary cutoff by identifying very rare words that can be removed.

  • Generate bigram collocations

    Why it's wrong here

    Bigram collocations are for detecting phrases, not for basic word frequency. They do not show vocabulary size or frequency distribution.

  • Plot histogram of document lengths

    Why it's wrong here

    Document length distribution pertains to the number of words per document, not vocabulary size or word frequency.

About these practice questions

Courseiva writes every MLS-C01 question from scratch — 1,672 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This MLS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MLS-C01 exam.