Docsity

Statistics 301: Correlation and Simple Linear Regression, Study notes of Statistics

Toggle sidebar
bg1
STAT 301 TA : Lisa Chung [email protected]
DISCUSSION 13
(April. 25. 2004)
Correlation
•Population X,Y are numerical random variables
ρ=σXY
σXσY,−1≤ρ≤+1
σXY =C ov(X, Y ), σX=V ar(X), σY=V ar(Y)
•Sample of size n ˆρ=r=sxy
sxsy,−1≤ρ≤+1
sxy =1
n−1Pn
i=1(xi−¯x)(yi−¯y)
•Inference for ρ H0:ρ= 0 (i.e. no linear correlation between X and Y) vs. HA:ρ6= 0
Test Statistic T=r√n−2
√1−r2∼tn−2
Simple Linear Regression: Y=β0+β1X+ǫ
•k=2 parameters, regression coefficients
•Estimate β0, β1that minimizes the Error(or Residual) Sum of Squares
–Slope: b1=ˆ
β1=sxy
s2
x
–Intercept: b0=ˆ
β0= ¯y−ˆ
β1¯x
–Then ˆ
Y=b0+b1X
•Inference for regression coefficients
–(1 −α)100% Confidence limits
For β0:b0±tα/2,n−2seq1
n+(¯x)2
Sxx
For β1:b1±tα/2,n−2seq1
√Sxx
–Test Statistics
For β0:T= ( b0−β0
se)qnSxx
Sxx+n(¯x)2∼tn−2
For β1:T= ( b1−β1
se)√Sxx ∼tn−2
where s2
e=SSEr ror
n−2,Sxx = (n−1)s2
x
•ANOVA Formulation
–SST otal =Pn
i=1(yi−¯y)2, with dfT otal =n−1
–SSReg =Pn
i=1( ˆyi−¯y)2, with dfReg =k−1
–SSE rror =Pn
i=1(yi−ˆyi)2, with dfError =n−k
Examples 1. A survey was conducted by sampling 400 persons who were questioned regarding union
membership and attitude toward decreased national spending on social welfare program.
Office: 1335 MSC, 263-5948 1 Office Hour: Wed.1:00-2:00 and Thurs. 11:00-12:00
pf2

Partial preview of the text

Download Statistics 301: Correlation and Simple Linear Regression and more Study notes Statistics in PDF only on Docsity!

STAT 301 TA : Lisa Chung [email protected]

DISCUSSION 13

(April. 25. 2004)

Correlation

  • Population X,Y are numerical random variables

ρ =

σXY

σX σY

, − 1 ≤ ρ ≤ +

σXY = Cov(X, Y ), σX = V ar(X), σY = V ar(Y )

  • Sample of size n ˆρ = r =

sxy

sxsy

, − 1 ≤ ρ ≤ +

sxy =

1

n− 1

n

i=

(xi − x¯)(yi − y¯)

  • Inference for ρ H 0

: ρ = 0 (i.e. no linear correlation between X and Y) vs. H A

: ρ 6 = 0

Test Statistic T =

r

√

n− 2 √

1 −r

2

∼ tn− 2

Simple Linear Regression: Y = β

0

1

X + ǫ

  • k=2 parameters, regression coefficients
  • Estimate β 0 , β 1 that minimizes the Error(or Residual) Sum of Squares
    • Slope: b 1

β 1

sxy

s

2 x

  • Intercept: b 0 =

β 0 = y¯ −

β 1 x¯

  • Then

Y = b 0

  • b 1

X

  • Inference for regression coefficients
    • (1 − α)100% Confidence limits

For β 0

: b 0

± t α/ 2 ,n− 2

s e

1

n

(¯x)

2

Sxx

For β 1

: b 1

± t α/ 2 ,n− 2

s e

1 √

Sxx

  • Test Statistics

For β 0

: T = (

b 0 −β 0

se

nSxx

Sxx+n(¯x)

2

∼ t n− 2

For β 1

: T = (

b 1 −β 1

se

S

xx

∼ t n− 2

where s

2

e

SS Error

n− 2

, S

xx

= (n − 1)s

2

x

  • ANOVA Formulation

– SS

T otal

n

i=

(y i

− y¯)

2 , with df T otal

= n − 1

  • SSReg =

n

i=

( ˆyi − ¯y)

2 , with dfReg = k − 1

– SS

Error

n

i=

(y i

− yˆ i

2 , with df Error

= n − k

Examples 1. A survey was conducted by sampling 400 persons who were questioned regarding union

membership and attitude toward decreased national spending on social welfare program.

Office: 1335 MSC, 263-5948 1 Office Hour: Wed.1:00-2:00 and Thurs. 11:00-12:

STAT 301 TA : Lisa Chung [email protected]

  1. p.516, # 3.

Office: 1335 MSC, 263-5948 2 Office Hour: Wed.1:00-2:00 and Thurs. 11:00-12: