Day 7 – Covariance & Correlation in Machine Learning

Dhairya PatelDhairya Patel
2 min read

Hey everyone πŸ‘‹ Dhairya here.

Before diving in β€” a small personal update: I had to take a 4-day break because I was feeling sick πŸ€’. I didn’t want to force myself and burn out, so I allowed my body to rest. I’m back now and ready to continue the challenge with full energy. πŸ’ͺ


πŸ”’ What I Learned Today

Today’s focus was on Covariance and Correlation β€” two fundamental statistical tools that measure the relationship between variables.

  • Covariance

    • Measures how two variables vary together.

    • Positive β†’ variables increase together

    • Negative β†’ one increases while the other decreases

    • Limitation: depends on scale (not standardized).

  • Correlation

    • Standardized version of covariance (values between -1 and 1).

    • +1 β†’ strong positive relationship

    • -1 β†’ strong negative relationship

    • 0 β†’ no linear relationship

    • Used a lot in ML for feature selection, multicollinearity detection.


🌱 Reflections

I always thought correlation was just "relationship strength," but now I see it’s directly tied to covariance β€” just normalized. This makes correlation much more useful in ML since it’s scale-independent.

Visualizing scatter plots and comparing covariance/correlation values made things click.


πŸ’» Notebook

My Day 7 notebook (with examples & plots) is here πŸ‘‰ GitHub Link – Day 7 Notebook


πŸ“š Resources

πŸŽ₯ YouTube

🌐 Websites


🎯 What’s Next?

For Day 8, I’ll explore Probability Distributions in ML Applications (how they’re used in actual algorithms).

See you tomorrow πŸ‘‹
β€” Dhairya

0
Subscribe to my newsletter

Read articles from Dhairya Patel directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Dhairya Patel
Dhairya Patel

I'm a student, trying to find experience and develop skills, and I want to log that journey here. πŸ˜€πŸ‘Š