SlideShare a Scribd company logo
Covariance & Correlation

Jerrell T.Stracener – Ph.D.

1
Covariance – Cov(X,Y)
Covariance between X and Y is a measure
of the association between two random
variables, X & Y
If positive, then both move up or down
together
If negative, then if X is high, Y is low, vice
versa

[

σ XY = Cov( X , Y ) = E ( X − µ X )( Y − µY )

]
Correlation Between X and Y
Covariance is dependent upon the units of
X & Y [Cov(aX,bY)=abCov(X,Y)]
Correlation, Corr(X,Y), scales covariance
by the standard deviations of X & Y so that
it lies between 1 & –1

ρ XY

σ XY
Cov ( X , Y )
=
=
1
σ X σ Y [Var ( X )Var (Y )] 2
More Correlation & Covariance
If σX,Y =0 (or equivalently ρX,Y =0) then X
and Y are linearly unrelated
If ρX,Y = 1 then X and Y are said to be
perfectly positively correlated
If ρX,Y = – 1 then X and Y are said to be
perfectly negatively correlated
Corr(aX,bY) = Corr(X,Y) if ab>0
Corr(aX,bY) = –Corr(X,Y) if ab<0
Properties of Expectations
E(a)=a, Var(a)=0
E(µX)=µX, i.e. E(E(X))=E(X)
E(aX+b)=aE(X)+b
E(X+Y)=E(X)+E(Y)
E(X-Y)=E(X)-E(Y)
E(X- µX)=0 or E(X-E(X))=0
E((aX)2)=a2E(X2)
More Properties
Var(X) = E(X2) – µx2
Var(aX+b) = a2Var(X)
Var(X+Y) = Var(X) +Var(Y) +2Cov(X,Y)
Var(X-Y) = Var(X) +Var(Y) - 2Cov(X,Y)
Cov(X,Y) = E(XY)-µxµy
If (and only if) X,Y independent, then


Var(X+Y)=Var(X)+Var(Y), E(XY)=E(X)E(Y)
Covariance of X and Y
Let X and Y be random variables with joint mass function
p(x,y) if X & Y are discrete random variables or with joint
probability density function f(x, y) if X & Y are continuous
random variables. The covariance of X and Y is

σ XY = E [ ( X − µ X )( Y − µ Y ) ] = ∑ ∑ ( x − µ x ) ( y − µ y ) p( x, y )
x

y

if X and Y are discrete, and

σ XY = E [ ( X − µ X )( Y − µ Y ) ] =

∞ ∞

∫ ∫ ( x − µ ) ( y − µ ) f ( x, y ) dxdy
x

− ∞− ∞

if X and Y are continuous.
Jerrell T.Stracener – Ph.D.

7

y
Covariance of X and Y

The covariance of two random variables X and Y with means
µX and µY , respectively is given by

σ XY = E ( XY ) − µ X µ Y

Jerrell T.Stracener – Ph.D.

8
Correlation Coefficient
Let X and Y be random variables with covariance σXY and
standard deviation σX and σY , respectively. The correlation
coefficient of X and Y is

ρ XY

σ XY
=
σ Xσ Y

Jerrell T.Stracener – Ph.D.

9
Theorem
If X and Y are random variables with joint probability
distribution f(x, y), then

σ

2
aX + bY

= a σ + b σ + 2abσ XY
2

2
X

Jerrell T.Stracener – Ph.D.

10

2

2
Y
Theorem

If X and Y are independent random variables, then

σ

2
aX + bY

= a σ +b σ
2

2
X

Jerrell T.Stracener – Ph.D.

11

2

2
Y
Correlation Analysis
A statistical analysis used to obtain a quantitative measure of
the strength of the linear relationship between a dependent
variable and one or more independent variables

Jerrell T.Stracener – Ph.D.

12
Correlation – Scatter Diagram
Visual Relationship Between X and Y

Jerrell T.Stracener – Ph.D.

13

More Related Content

What's hot

5.5 Linear Equations Point Slope Form
5.5 Linear Equations Point Slope Form5.5 Linear Equations Point Slope Form
5.5 Linear Equations Point Slope Form
guest772a458
 
Simple regression model
Simple regression modelSimple regression model
Simple regression model
MidoTami
 
Eigen values and eigenvectors
Eigen values and eigenvectorsEigen values and eigenvectors
Eigen values and eigenvectors
Amit Singh
 

What's hot (20)

5.5 Linear Equations Point Slope Form
5.5 Linear Equations Point Slope Form5.5 Linear Equations Point Slope Form
5.5 Linear Equations Point Slope Form
 
1.3 Solving Linear Equations
1.3 Solving Linear Equations1.3 Solving Linear Equations
1.3 Solving Linear Equations
 
Interpolation
InterpolationInterpolation
Interpolation
 
Matrix of linear transformation 1.9-dfs
Matrix of linear transformation 1.9-dfsMatrix of linear transformation 1.9-dfs
Matrix of linear transformation 1.9-dfs
 
Continuous probability distribution
Continuous probability distributionContinuous probability distribution
Continuous probability distribution
 
Linear algebra-Basis & Dimension
Linear algebra-Basis & DimensionLinear algebra-Basis & Dimension
Linear algebra-Basis & Dimension
 
Unit 1: Topological spaces (its definition and definition of open sets)
Unit 1:  Topological spaces (its definition and definition of open sets)Unit 1:  Topological spaces (its definition and definition of open sets)
Unit 1: Topological spaces (its definition and definition of open sets)
 
Uniform Distribution
Uniform DistributionUniform Distribution
Uniform Distribution
 
Interpolation
InterpolationInterpolation
Interpolation
 
Simple regression model
Simple regression modelSimple regression model
Simple regression model
 
the inverse of the matrix
the inverse of the matrixthe inverse of the matrix
the inverse of the matrix
 
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
CMSC 56 | Lecture 16: Equivalence of Relations & Partial OrderingCMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
CMSC 56 | Lecture 16: Equivalence of Relations & Partial Ordering
 
Eigen values and eigenvectors
Eigen values and eigenvectorsEigen values and eigenvectors
Eigen values and eigenvectors
 
Mathematical Expectation And Variance
Mathematical Expectation And VarianceMathematical Expectation And Variance
Mathematical Expectation And Variance
 
Continuous Random Variables
Continuous Random VariablesContinuous Random Variables
Continuous Random Variables
 
Probability Distributions for Discrete Variables
Probability Distributions for Discrete VariablesProbability Distributions for Discrete Variables
Probability Distributions for Discrete Variables
 
Random Variables and Distributions
Random Variables and DistributionsRandom Variables and Distributions
Random Variables and Distributions
 
Continutiy of Functions.ppt
Continutiy of Functions.pptContinutiy of Functions.ppt
Continutiy of Functions.ppt
 
Geometric Distribution
Geometric DistributionGeometric Distribution
Geometric Distribution
 
orthogonal matrix and its properties
orthogonal matrix and its propertiesorthogonal matrix and its properties
orthogonal matrix and its properties
 

Similar to probability :- Covariance and correlation Faisalkhan2081@yahoo.com

Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
Shubham Mehta
 
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptxSM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
Manjulasingh17
 
S Project 1st Rough Draft
S Project 1st Rough DraftS Project 1st Rough Draft
S Project 1st Rough Draft
Jordan Laubler
 

Similar to probability :- Covariance and correlation Faisalkhan2081@yahoo.com (20)

Correlation mp
Correlation mpCorrelation mp
Correlation mp
 
Co vand corr
Co vand corrCo vand corr
Co vand corr
 
Statistics
Statistics Statistics
Statistics
 
How to learn Correlation and Regression for JEE Main 2015
How to learn Correlation and Regression for JEE Main 2015 How to learn Correlation and Regression for JEE Main 2015
How to learn Correlation and Regression for JEE Main 2015
 
Correlation
CorrelationCorrelation
Correlation
 
Statistics
StatisticsStatistics
Statistics
 
Statistics
Statistics Statistics
Statistics
 
qasimsir-151129033239-lva1-app6bbbbbbbb892.pdf
qasimsir-151129033239-lva1-app6bbbbbbbb892.pdfqasimsir-151129033239-lva1-app6bbbbbbbb892.pdf
qasimsir-151129033239-lva1-app6bbbbbbbb892.pdf
 
Conditional Expectations Liner algebra
Conditional Expectations Liner algebra Conditional Expectations Liner algebra
Conditional Expectations Liner algebra
 
Multivariate Distributions, an overview
Multivariate Distributions, an overviewMultivariate Distributions, an overview
Multivariate Distributions, an overview
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
 
Variance.pdf
Variance.pdfVariance.pdf
Variance.pdf
 
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptxSM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
 
Galichon jds
Galichon jdsGalichon jds
Galichon jds
 
S Project 1st Rough Draft
S Project 1st Rough DraftS Project 1st Rough Draft
S Project 1st Rough Draft
 
Linear regression.ppt
Linear regression.pptLinear regression.ppt
Linear regression.ppt
 
A correlation analysis.ppt 2018
A correlation analysis.ppt 2018A correlation analysis.ppt 2018
A correlation analysis.ppt 2018
 
Fuzzy Morphism
Fuzzy MorphismFuzzy Morphism
Fuzzy Morphism
 
Machine Learning in R - Part 1: Correlation and Regression (Basics)
Machine Learning in R - Part 1: Correlation and Regression (Basics)Machine Learning in R - Part 1: Correlation and Regression (Basics)
Machine Learning in R - Part 1: Correlation and Regression (Basics)
 
Per6 basis2_NUMBER SYSTEMS
Per6 basis2_NUMBER SYSTEMSPer6 basis2_NUMBER SYSTEMS
Per6 basis2_NUMBER SYSTEMS
 

Recently uploaded

Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
Avinash Rai
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 

Recently uploaded (20)

Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
 
Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
Forest and Wildlife Resources Class 10 Free Study Material PDF
Forest and Wildlife Resources Class 10 Free Study Material PDFForest and Wildlife Resources Class 10 Free Study Material PDF
Forest and Wildlife Resources Class 10 Free Study Material PDF
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 

probability :- Covariance and correlation Faisalkhan2081@yahoo.com

  • 1. Covariance & Correlation Jerrell T.Stracener – Ph.D. 1
  • 2. Covariance – Cov(X,Y) Covariance between X and Y is a measure of the association between two random variables, X & Y If positive, then both move up or down together If negative, then if X is high, Y is low, vice versa [ σ XY = Cov( X , Y ) = E ( X − µ X )( Y − µY ) ]
  • 3. Correlation Between X and Y Covariance is dependent upon the units of X & Y [Cov(aX,bY)=abCov(X,Y)] Correlation, Corr(X,Y), scales covariance by the standard deviations of X & Y so that it lies between 1 & –1 ρ XY σ XY Cov ( X , Y ) = = 1 σ X σ Y [Var ( X )Var (Y )] 2
  • 4. More Correlation & Covariance If σX,Y =0 (or equivalently ρX,Y =0) then X and Y are linearly unrelated If ρX,Y = 1 then X and Y are said to be perfectly positively correlated If ρX,Y = – 1 then X and Y are said to be perfectly negatively correlated Corr(aX,bY) = Corr(X,Y) if ab>0 Corr(aX,bY) = –Corr(X,Y) if ab<0
  • 5. Properties of Expectations E(a)=a, Var(a)=0 E(µX)=µX, i.e. E(E(X))=E(X) E(aX+b)=aE(X)+b E(X+Y)=E(X)+E(Y) E(X-Y)=E(X)-E(Y) E(X- µX)=0 or E(X-E(X))=0 E((aX)2)=a2E(X2)
  • 6. More Properties Var(X) = E(X2) – µx2 Var(aX+b) = a2Var(X) Var(X+Y) = Var(X) +Var(Y) +2Cov(X,Y) Var(X-Y) = Var(X) +Var(Y) - 2Cov(X,Y) Cov(X,Y) = E(XY)-µxµy If (and only if) X,Y independent, then  Var(X+Y)=Var(X)+Var(Y), E(XY)=E(X)E(Y)
  • 7. Covariance of X and Y Let X and Y be random variables with joint mass function p(x,y) if X & Y are discrete random variables or with joint probability density function f(x, y) if X & Y are continuous random variables. The covariance of X and Y is σ XY = E [ ( X − µ X )( Y − µ Y ) ] = ∑ ∑ ( x − µ x ) ( y − µ y ) p( x, y ) x y if X and Y are discrete, and σ XY = E [ ( X − µ X )( Y − µ Y ) ] = ∞ ∞ ∫ ∫ ( x − µ ) ( y − µ ) f ( x, y ) dxdy x − ∞− ∞ if X and Y are continuous. Jerrell T.Stracener – Ph.D. 7 y
  • 8. Covariance of X and Y The covariance of two random variables X and Y with means µX and µY , respectively is given by σ XY = E ( XY ) − µ X µ Y Jerrell T.Stracener – Ph.D. 8
  • 9. Correlation Coefficient Let X and Y be random variables with covariance σXY and standard deviation σX and σY , respectively. The correlation coefficient of X and Y is ρ XY σ XY = σ Xσ Y Jerrell T.Stracener – Ph.D. 9
  • 10. Theorem If X and Y are random variables with joint probability distribution f(x, y), then σ 2 aX + bY = a σ + b σ + 2abσ XY 2 2 X Jerrell T.Stracener – Ph.D. 10 2 2 Y
  • 11. Theorem If X and Y are independent random variables, then σ 2 aX + bY = a σ +b σ 2 2 X Jerrell T.Stracener – Ph.D. 11 2 2 Y
  • 12. Correlation Analysis A statistical analysis used to obtain a quantitative measure of the strength of the linear relationship between a dependent variable and one or more independent variables Jerrell T.Stracener – Ph.D. 12
  • 13. Correlation – Scatter Diagram Visual Relationship Between X and Y Jerrell T.Stracener – Ph.D. 13