Stats, Linear Algebra.
covariance matrix: import numpy as np # Input data heights = np.array([160, 165, 155, 172, 168]) weights = np.array([60, 68, 52, 80, 73]) # Compute the covariance matrix data = np.vstack([heights, weights]) covariance_matrix = np.cov(data) print("Covariance matrix:") print(covariance_matrix) 2.