Which statistical tests in the drift metrics table suit numerical and categorical columns?
- Exam domain
- MLOps44% of the exam
- Difficulty
- Hard
- In this mock
- 22 questions on this domainPractise this domain
Why the exam asks this
Objective in the exam guide: Apply any statistical tests from the drift metrics table in Lakehouse Monitoring to detect drift in numerical and categorical data and evaluate the significance of observed changes.
Statistical drift tests are named.
Why B is the answer
KS test for numerical, chi-squared for categorical
The drift metrics table includes KS tests for numeric distributions and chi-squared tests for categories, plus distance metrics such as Jensen-Shannon and PSI.
Remember: KS for numbers, chi-squared for categories.
How it works
Drift tests depend on column type.
In detail
- KS for numeric.
- Chi-squared for categorical.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Accuracy for numerical columns and RMSE for categorical columnsWrongMost tempting
Those are model metrics, not drift tests.
Why it tempts: Model metrics are familiar.
B. KS test for numerical, chi-squared for categoricalRight
KS for numbers, chi-squared for categories.
C. Only the row count for bothWrong
Counts miss distribution shifts.
D. Correlation for categorical columnsWrong
Correlation is for numeric pairs.
Use case
An illustrative scenario, not a real incident.
Illustrative: a KS p-value of 0.001 on income flags a real shift after a campaign.
See it in different ways
flowchart TD
Q{"Column type?"}
Q -->|"Numerical"| A0["KS test"]
Q -->|"Categorical"| A1["Chi-squared test"]How to read this chart
- At "Column type?": if "Numerical", go to "KS test"; if "Categorical", go to "Chi-squared test".
mindmap
root(("Drift metrics table"))
n1["Tests"]
n2["ks_test"]
n3["chi_squared_test"]
n4["Distances"]
n5["js_distance"]
n6["population_stability_index"]How to read this chart
- The centre is "Drift metrics table".
- "Tests" covers "ks_test", "chi_squared_test".
- "Distances" covers "js_distance", "population_stability_index".