1. Home
  2. Data Science
  3. NumPy
  4. Which function is used to compute the correlation matrix…

Added 25 Feb 2024

Which function is used to compute the correlation matrix of multiple arrays in NumPy?

  1. np.corrcoef() Correct answer
  2. np.cov()
  3. np.correlate()
  4. np.corr()

Correct answer

A. np.corrcoef()

17 views

MCQSEXAM

Explanation

The np.corrcoef() function computes the correlation matrix of multiple arrays. It calculates the correlation coefficients between pairs of variables, providing insights into their linear relationship.

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More NumPy MCQs

Practise all NumPy MCQs

Similar MCQs