What happens to the correlation coefficient if one of the variables is constant or has zero variance?
Role: Data Scientist
Category: Statistics & Math
Difficulty: easy
Interview Round: Other
Overview: Asks what the Pearson correlation coefficient becomes when one variable is constant or has zero variance. Tests reading the correlation formula, knowing how pandas and NumPy report the result, and handling zero-variance and near-constant columns in a real analysis.