Docsity

ACTL30004 Week 2 Summary, Summaries of Marketing Business-to-business (B2B)

Toggle sidebar
bg1
ACTL30004 Week 2 Summary
Jiacheng Min
August 1, 2022
1 Correlation
1.1 Pearson’s Correlation r
•Pearson’s Correlation (Degree of association between two variables)
r=Sxy
pSxxSyy
=Pn
i=1(xi¯x)(yi¯y)
pPn
i=1(xi¯x)2pPn
i=1(yi¯y)2=Pn
i=1 xiyin¯x¯y
pPn
i=1 x2
in¯x2pPn
i=1 y2
in¯y2
•X, Y is bivariate normal distribution with correlation parameter ⇢.
H0:⇢=0,H
1:⇢>0
T=rpn2
p1r2⇠tn2
- One-sided test
- Reject H0if P⇣tn2>|rpn2
p1r2|⌘<p
•Limitations of r
1. rmeasures linear relationship only.
2. ris a↵ected by outliers and high leverage points.
•Rcommand: cor(x,y, method = "pearson")
1.2 Spearman’s Rank Correlation rs
•Spearman’s Rank Correlation (Monotonic relationship)
rs=Sr(x)r(y)
pSr(x)r(x)Sr(y)r(y)
rs=16Pn
i=1(r(xi)r(yi))2
n(n21)
| {z }
Equal Weight for nranks
1
IISei
Ehrig Igi gritty
Euriyi IYi gnitasty
Epiyi 2ns'stasty Ihrig rig
IIIatest
É
am
idaho
hear Garson's
Inonlinear Kendall
Yard
Assumption ra riv discrete unof
Efrat IVarro Mf
pf3

Partial preview of the text

Download ACTL30004 Week 2 Summary and more Summaries Marketing Business-to-business (B2B) in PDF only on Docsity!

ACTL30004 Week 2 Summary

Jiacheng Min

August 1, 2022

1 Correlation

1.1 Pearson’s Correlation r

  • Pearson’s Correlation (Degree of association between two variables)

r =

S

xy

p

S

xx

S

yy

P

n

i=

(x

i

¯x)(y

i

y¯)

p P

n

i=

(x i

x¯)

2

p P

n

i=

(y i

y¯)

2

P

n

i=

x

i

y

i

nx¯y¯

p P

n

i=

x

2

i

n¯x

2

p P

n

i=

y

2

i

ny¯

2

  • X, Y is bivariate normal distribution with correlation parameter ⇢.

H

0

: ⇢ = 0, H

1

T =

r

p

n 2

p

1 r

2

⇠ t

n 2

  • One-sided test
  • Reject H 0

if P

t n 2

r

p

n 2

p

1 r

2

< p

  • Limitations of r
    1. r measures linear relationship only.
    2. r is a↵ected by outliers and high leverage points.
  • R command: cor(x,y, method = "pearson")

1.2 Spearman’s Rank Correlation r

s

  • Spearman’s Rank Correlation (Monotonic relationship)

r s

S

r(x)r(y)

p

S

r(x)r(x)

S

r(y)r(y)

r s

P

n

i=

(r(x i

) r(y i

2

n(n

2

| {z }

Equal Weight for n ranks

I

I

Sei

Ehrig Igi

gritty

Euriyi

I

Yi g

ni

tasty

Epiyi

2ns's

tasty

Ihrig

rig

IIIatest

É

am

idaho

hear

Garson's

I

non linear

Kendall

Yard

Assumption ra

riv

discrete

unof

Efrat

I

Varro

Mf

  • Non-parametric Test

H

0

: r s

= 0, H

1

: r s

r

s

CLT

⇠ N

n 1

  • Two-sided test
  • Reject H 0

if P

t > |

r s

p

1

n 1

p

2

  • Advantages of r

s

  • It is less a↵ected by outliers since it only considers ranks.
  • It measures positive/negative relationship between two variables regard-

less linear or non-linear relationship.

  • R command: cor(x,y, method = "spearman")

1.3 Kendall Rank Correlation ⌧

  • Kendall Rank Correlation(Monotonic relationship)

n

c

n

d

n

2

n(n 1)

X

i<j

sgn(x i

x j

)sgn(y i

y j

  • Concordant: x i

x j

, y i

y j

or x i

< x j

, y i

< y j

) n ci

  • Discordant: x i

x j

, y i

< y j

or x i

< x j

, y i

y j

) n di

  • Neither if x i

= x j

, y i

= y j

  • Non-parametric Test (for small samples < 10)

H

0

: ⌧ = 0, H

1

CLT

⇠ N

2(2n + 5)

9 n(n 1)

  • Two-sided test
  • Reject H 0

if P

t > |

⌧

q

2(2n+5)

9 n(n1)

A

p

2

  • Advantages of ⌧
    • It only considers the relative of the data instead of actual values.
    • Better than r s

for small datasets with large numbers of tied ranks.

  • R command: cor(x,y, method = "kendall")

Ho

two variables are

uncorrelated

I ai

se

aguri nj

o

ai

se

xinyi

vs

xp

y

I

Xiang

Sgu

bei

xp

sync

yi yi

20

Tied sgnaci

g

sgncyi

y

co

rank