Skip to content
masterclass Buddy

NumPy · Function

np.cov

numpy.cov estimates how variables vary together and returns their covariance matrix. By default, rows are variables and columns are observations.

Last updated

Since
1.20

Syntax

numpy.cov(m, y=None, rowvar=True, bias=False, ddof=None, fweights=None, aweights=None, *, dtype=None)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • corrcoef

Source: numpy.cov — NumPy v2.5 Manual. Checked 2026-11-03.