MACHINE LEARNING RECIPES
DATA CLEANING PYTHON
DATA MUNGING
PANDAS CHEATSHEET
ALL TAGS
# What is covariance and how to find covariance in python?

# What is covariance and how to find covariance in python?

This recipe explains what is covariance and how to find covariance in python

What is covariance? How to find covariance in python? Covariance It is the measure of the strength of correlation between two variables or set of variables. There are certain possibilities which are:

Cov(xi, xj) = 0 then the variabels are not correlated

Cov(xi, xj) > 0 then the variabels are possitively correlated

Cov(xi, xj) >< 0 then the variabels are negatively correlated.

```
import numpy as np
```

```
Sample_data = np.array([[11,20,35],[40,58,64],[71,87,96]])
print("This is Sample array:","\n",Sample_data)
```

This is Sample array: [[11 20 35] [40 58 64] [71 87 96]]

```
print("The Covariance of Sample data:","\n",np.cov(Sample_data))
```

The Covariance of Sample data: [[147. 138. 146.5 ] [138. 156. 157. ] [146.5 157. 160.33333333]]

In this R data science project, we will explore wine dataset to assess red wine quality. The objective of this data science project is to explore which chemical properties will influence the quality of red wines.

PySpark Project-Get a handle on using Python with Spark through this hands-on data processing spark python tutorial.

Machine Learning Project in R-Detect fraudulent click traffic for mobile app ads using R data science programming language.

In this project you will use Python to implement various machine learning methods( RNN, LSTM, GRU) for fake news classification.

In this machine learning churn project, we implement a churn prediction model in python using ensemble techniques.

Data Science Project in R-Predict the sales for each department using historical markdown data from the Walmart dataset containing data of 45 Walmart stores.

Data Science Project in Python- Given his or her job role, predict employee access needs using amazon employee database.

In this machine learning project you will work on creating a robust prediction model of Rossmann's daily sales using store, promotion, and competitor data.

Use the Amazon Reviews/Ratings dataset of 2 Million records to build a recommender system using memory-based collaborative filtering in Python.

In this machine learning and IoT project, we are going to test out the experimental data using various predictive models and train the models and break the energy usage.