PROBABILITY & STATISTICS ยท INTERVIEW QUESTION
Explain covariance and correlation.
๐ก intermediate ยท ML Math
Hint: Focus on the decision rule, assumptions, and failure mode behind ml math.
Answer
Covariance measures joint linear variation in original units. Correlation normalizes covariance by standard deviations, giving a unitless value between -1 and 1.
Interview reasoning
Covariance scales with units; correlation divides by both standard deviations. Replacing meters with centimeters multiplies covariance but leaves correlation unchanged.
Validation
Check constant variables and compare scatterplots with linear correlation.
Common pitfalls
Zero correlation does not imply independence outside special families such as a jointly Gaussian distribution.
Likely follow-up: Check constant variables and compare scatterplots with linear correlation.
Related questions
- What is the central limit theorem relevance to ML?
- Explain Bayes' theorem and give an ML application.
- What is the difference between Type I and Type II errors? How do they relate to precision and recall?
- Explain the difference between MAP and MLE estimation. When would you prefer one over the other?
- How do you determine sample size for an A/B test?