correlation in simple terms

19
Correlation explained https://stats2analytics.wordpress.com/

Upload: stats2analytics

Post on 19-Jan-2017

131 views

Category:

Data & Analytics


0 download

TRANSCRIPT

Page 1: Correlation in simple terms

Correlation explained

https://stats2analytics.wordpress.com/

Page 2: Correlation in simple terms

Correlation explains Relation between two

variables

https://stats2analytics.wordpress.com/

X Y

Correlation

Page 3: Correlation in simple terms

https://stats2analytics.wordpress.com/

X

Y

NEGATIVE CORRELATION

When X increases

Y decreases

-

Page 4: Correlation in simple terms

https://stats2analytics.wordpress.com/

X

Y

NEGATIVE CORRELATION

When X decreases

Y increases

-

Page 5: Correlation in simple terms

https://stats2analytics.wordpress.com/

X Y

POSITIVE CORRELATION

When X decreases Y also decreases

+

Page 6: Correlation in simple terms

https://stats2analytics.wordpress.com/

X Y

POSITIVE CORRELATION

When X Increases Y also Increases

+

Page 7: Correlation in simple terms

Confused?

See Next....

Page 8: Correlation in simple terms

Got it!

Correlation When?

+ X and Y move in same direction

_ X and Y move in opposite direction

Page 9: Correlation in simple terms

https://stats2analytics.wordpress.com/

Correlation coefficient

Measures

Correlation

Page 10: Correlation in simple terms

https://stats2analytics.wordpress.com/

Correlation coefficient is always between -1

and +1

Because, it is just a

scale and it is defined like that.

Page 11: Correlation in simple terms

https://stats2analytics.wordpress.com/

0 +1 -1

X and Y move in opposite direction

X and Y move in same

direction

Correlation coefficient between variables X and Y

Page 12: Correlation in simple terms

https://stats2analytics.wordpress.com/

0 +1 -1

Correlation coefficient between variables X and Y

NO Correlation

Page 13: Correlation in simple terms

Scatterplots – Positive correlation

X Y 1 2 4 3 6 5 7 7 9 2

11 11

0

2

4

6

8

10

12

0 5 10 15

Variable Y

Variable X

Graph of Y plotted against X

Linear (Y)

Trend line has positive slope -

Positive correlation

https://stats2analytics.wordpress.com/

Page 14: Correlation in simple terms

Scatterplots – Negative correlation

https://stats2analytics.wordpress.com/

X Y 1 10 4 8 6 5 7 3 9 2

11 11

0

2

4

6

8

10

12

0 5 10 15

Variable Y

Variable X

Graph of Y plotted against X

Linear (Y)

Trend line has negative slope -

Negative correlation

Page 15: Correlation in simple terms

Scatterplot – zero correlation

https://stats2analytics.wordpress.com/

X Y 1 100 2 99 3 98 4 99 5 100

97.5

98

98.5

99

99.5

100

100.5

0 1 2 3 4 5 6

Y

Y

Linear (Y)

Trend line has zero slope – Zero correlation

Page 16: Correlation in simple terms

Scatterplot – zero correlation

https://stats2analytics.wordpress.com/

X Y 1 100 2 100 3 100 4 100 5 100

0

20

40

60

80

100

120

0 1 2 3 4 5 6

Y

Y

Linear (Y)

Trend line has zero slope – Zero correlation

Page 17: Correlation in simple terms

= Interpretation of correlation coefficient

‘Correlation does not mean causation’. That means if two variables have high correlation

then an inference CAN NOT be made that one is dependent on another or one is the cause of

other.

https://stats2analytics.wordpress.com/

Correlation Causation

Page 18: Correlation in simple terms

Mathematically!

n*(∑XY) – (∑X)*(∑Y) SQRT[ (n*∑X^2 – (∑X)^2) * (n*∑Y^2 – (∑Y)^2)]

Corr. Coefficient =

https://stats2analytics.wordpress.com/

Pearson correlation (What we discussed till now) represents only a linear relationship

between two variables although the actual relationship between two variables may or

may not be linear.