Correlation Course Title Correlation Correlation coe ffi cient - - PowerPoint PPT Presentation

correlation
SMART_READER_LITE
LIVE PREVIEW

Correlation Course Title Correlation Correlation coe ffi cient - - PowerPoint PPT Presentation

CORRELATION AND REGRESSION Correlation Course Title Correlation Correlation coe ffi cient between -1 and 1 Sign > direction Magnitude > strength Correlation and Regression Near perfect correlation Correlation and


slide-1
SLIDE 1

CORRELATION AND REGRESSION

Correlation

slide-2
SLIDE 2

Course Title

Correlation

  • Correlation coefficient between -1 and 1
  • Sign —> direction
  • Magnitude —> strength
slide-3
SLIDE 3

Correlation and Regression

Near perfect correlation

slide-4
SLIDE 4

Correlation and Regression

Strong

slide-5
SLIDE 5

Correlation and Regression

Moderate

slide-6
SLIDE 6

Correlation and Regression

Weak

slide-7
SLIDE 7

Correlation and Regression

Zero

slide-8
SLIDE 8

Correlation and Regression

Negative

slide-9
SLIDE 9

Correlation and Regression

Non-linear

slide-10
SLIDE 10

Correlation and Regression

Non-linear correlation

> run10 %>% filter(divPlace <= 10) %>% ggplot(aes(x = age, y = pace, color = gender)) + geom_point()

slide-11
SLIDE 11

Correlation and Regression

Pearson product-moment correlation

slide-12
SLIDE 12

Correlation and Regression

Pearson product-moment correlation

slide-13
SLIDE 13

CORRELATION AND REGRESSION

Let’s practice!

slide-14
SLIDE 14

CORRELATION AND REGRESSION

Correlation

slide-15
SLIDE 15

Correlation and Regression

Anscombe

> ggplot(data = Anscombe, aes(x = x, y = y)) + geom_point() + facet_wrap(~ set)

slide-16
SLIDE 16

Correlation and Regression

Anscombe 1

> Anscombe %>% filter(set == 1) %>% ggplot(aes(x = x, y = y)) + geom_point()

slide-17
SLIDE 17

Correlation and Regression

Anscombe 2

> Anscombe %>% filter(set == 2) %>% ggplot(aes(x = x, y = y)) + geom_point()

slide-18
SLIDE 18

Correlation and Regression

Anscombe 3

> Anscombe %>% filter(set == 3) %>% ggplot(aes(x = x, y = y)) + geom_point()

slide-19
SLIDE 19

Correlation and Regression

Anscombe 4

> Anscombe %>% filter(set == 4) %>% ggplot(aes(x = x, y = y)) + geom_point()

slide-20
SLIDE 20

CORRELATION AND REGRESSION

Let’s practice!

slide-21
SLIDE 21

CORRELATION AND REGRESSION

Interpretation of Correlation

slide-22
SLIDE 22

Correlation and Regression

Exercise and beer

Source: hp://well.blogs.nytimes.com/2015/12/02/the-close-ties-between-exercise-and-beer/

slide-23
SLIDE 23

Correlation and Regression

Exercise and beer

slide-24
SLIDE 24

Correlation and Regression

Exercise and beer

slide-25
SLIDE 25

Correlation and Regression

NFL arrests

Source: hps://www.nytimes.com/2014/09/13/upshot/what-the-numbers-show-about-nfl-player-arrests.html

slide-26
SLIDE 26

Correlation and Regression

NFL arrests

slide-27
SLIDE 27

Correlation and Regression

Correlation vs. regression

Source: hp://www.nytimes.com/2012/11/02/business/questions-raised-on-withdrawal-of-congressional-research-services-report-on-tax-rates.html

slide-28
SLIDE 28

Correlation and Regression

Can you plot a correlation?

Source: hp://heatst.com/world/no-correlation-between-voting-for-brexit-and-racism-study-finds/

slide-29
SLIDE 29

CORRELATION AND REGRESSION

Let’s practice!

slide-30
SLIDE 30

CORRELATION AND REGRESSION

Spurious correlations

slide-31
SLIDE 31

Correlation and Regression

Spurious over time

slide-32
SLIDE 32

Correlation and Regression

Spurious over time

slide-33
SLIDE 33

Correlation and Regression

Spurious over space

slide-34
SLIDE 34

Correlation and Regression

Spurious for whatever reason

slide-35
SLIDE 35

CORRELATION AND REGRESSION

Let’s practice!