MLCrack

    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.