Skip to main content
Skip to main content
DigiCalcs

Covariance ની ગણતરી કેવી રીતે કરવી

Covariance શું છે?

Covariance measures how two variables change together. Positive covariance means they tend to increase together; negative means one increases as the other decreases. It is the foundation of correlation and portfolio theory.

સૂત્ર

Cov(X,Y) = E[(X − μₓ)(Y − μᵧ)] = (Σ(xᵢ − x̄)(yᵢ − ȳ)) / (n−1)
X, Y
two variables/datasets
μₓ, μᵧ
means of X and Y
Cov(X,Y)
covariance — measure of joint variability
n
number of data points

પગલું દ્વારા પગલું માર્ગદર્શિકા

  1. 1Sample covariance: Cov(X,Y) = Σ(xᵢ−x̄)(yᵢ−ȳ) / (n−1)
  2. 2Positive: variables move together
  3. 3Negative: variables move oppositely
  4. 4Zero: no linear relationship

Worked Examples

ઇનપુટ
X=[2,4,4,4,5], Y=[1,3,3,4,4]
પરિણામ
Cov ≈ 0.95 (positive relationship)

Frequently Asked Questions

What does positive covariance mean?

Positive covariance: when X increases, Y tends to increase. They vary together.

What does zero covariance mean?

Zero covariance suggests no linear relationship, but nonlinear relationships may exist.

How is covariance related to correlation?

Correlation = Cov(X,Y) / (σₓ × σᵧ). Correlation is covariance normalized to [−1, 1].

ગણતરી માટે તૈયાર છો? મફત Covariance કેલ્ક્યુલેટર અજમાવી જુઓ

તેને જાતે અજમાવી જુઓ →

સेटिंग्स