DEV Community

Shaurya Lalwani
Shaurya Lalwani

Posted on

1 1

Covariance VS Correlation

Covariance:

  1. Defines 3 types of relationships: Positive Trend, Negative Trend, and No Relationship
  2. Covariance cannot tell whether the slope of the line representing the mentioned relationship between variables, is steep or not, instead, it will only express whether the slope is positive or negative.
  3. Covariance can change even when the relationship does not, because covariance values are dependent on the scale and that also makes them difficult to interpret.

Correlation:

  1. Correlation shows the strength of the relationship between variables
  2. Correlation is standardized covariance. It does not depend on the scale of the data.
  3. The more data we have, the more confidence we can have in the value of correlation that we obtain with the best fit line/plane

Thanks for reading! Happy learning!
If you'd like to support my writing, you can do that here:
https://www.buymeacoffee.com/shauryalalwani

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay