Databricks Machine Learning Associate exam dumps

Databricks Machine Learning Associate practice question 502 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 502

Select 3

You are working on a Spark DataFrame named sales_data containing a column revenue. You suspect there are outliers in the revenue column. Which of the following approaches could you use in Databricks to remove these outliers effectively?

  1. A

    Filter rows where the revenue column values fall outside 3 standard deviations from the mean.

  2. B

    Filter rows where the revenue column values fall outside the interquartile range (IQR) by more than 1.5 times the IQR.

  3. C

    Use the fillna() method to replace all null values in the revenue column with the median value.

  4. D

    Drop rows with outlier values in the revenue column by setting a threshold based on domain knowledge.

  5. E

    Apply a clustering algorithm like K-Means to group similar rows and consider outliers as data points in smaller clusters.

Show answer and explanation

Correct answers: A, B, D

Explanation

Outlier removal in Spark DataFrames can be achieved using statistical methods like standard deviation or IQR-based filtering, which are computationally efficient and widely used in machine learning workflows. Alternatively, domain knowledge can be applied to set thresholds for filtering data. Methods like fillna() address missing values and are not relevant for outliers, while clustering algorithms are not directly intended for outlier removal.

  • A. Correct.

    This is a correct approach. Removing outliers based on standard deviation is a common statistical method to handle extreme values.

  • B. Correct.

    This is a correct approach. Filtering outliers based on the IQR is widely used in data preprocessing for skewed data distributions.

  • C. Incorrect.

    This is incorrect because fillna() is used to handle missing values, not outliers.

  • D. Correct.

    This is a correct approach. Setting a threshold based on domain expertise is a practical way to identify and remove outliers specific to a dataset.

  • E. Incorrect.

    This is incorrect because clustering techniques like K-Means are not specifically designed for outlier removal and require additional steps to identify outliers.

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