Professional Documents
Culture Documents
08 Introduction To Correlation and Linear Regression Analysis 2
08 Introduction To Correlation and Linear Regression Analysis 2
INTRODUCTION TO CORRELATION AND LINEAR REGRESSION | 10 INTRODUCTION TO CORRELATION AND LINEAR REGRESSION | 11 INTRODUCTION TO CORRELATION AND LINEAR REGRESSION | 12
department of
statistics Formal Hypothesis Test Example 1
department of
statistics Formal Hypothesis Test Example 1 department of
statistics
test whether there is a significant linear relationship/correlation between the 3. Decision Rule Alpha
tail
number of absences(x) and the final exam grade (y) at 5% level (Example 1 in Reject 𝐻𝑜 if 𝑡𝑐 > 𝑡(𝛼/2,𝑛−2)
Correlation) α = 0.05, n = 7, 𝑟 = −0.9270 (see slide 13)
𝑡(𝛼/2,𝑑𝑓) = 𝑡(0.05/2,5) = 𝟐. 𝟓𝟕𝟏(see next slide) 𝑡 0.05/2,5 = 𝟐. 𝟓𝟕𝟏 α = 0.05
1. Ho : ρ = 0 (There is no significant linear relationship/correlation.) Reject Ho if 𝒕𝒄 > 𝟐. 𝟓𝟕𝟏
0.05/2 Tail: two-tailed
Ha : ρ ≠ 0 (There is a significant linear relationship/correlation.) -> claim 0.05/2
df = n−2 = 7−2 = 5
−𝑡0.05/2,5 = −2.571 𝑡0.05/2,5 = 2.571
2. Test statistic: t-test 4. Computation
tail: two-tailed Tail of distribution Null hypothesis (Ho) Alternative hypothesis (Ha) −0.9270
𝑡𝑐 = = −𝟓. 𝟓𝟐𝟔𝟕
Two-tailed ρ=0 ρ≠0 1 − (−0.9270)2
Right-tailed ρ≤0 ρ>0 7−2
Left-tailed ρ≥0 ρ<0
INTRODUCTION TO CORRELATION AND LINEAR REGRESSION | 16 INTRODUCTION TO CORRELATION AND LINEAR REGRESSION | 17 INTRODUCTION TO CORRELATION AND LINEAR REGRESSION | 18
department of
statistics Formal Hypothesis Test Example 1 department of
statistics
department of
statistics Formal Hypothesis Test Example 2
5. Decision test whether there is a positive linear relationship between the weights in
Since −5.5267 > 2.571, we reject 𝐻𝑜 pounds of discarded food (x) and sizes of households (y) at 5% level (Example 2
in Correlation)
1. Ho : ρ ≤ 0
0.05/2 0.05/2 Ha : ρ > 0 (There is a positive linear relationship/correlation.) -> claim
−𝑡0.05/2,5 = −2.571 𝑡0.05/2,5 = 2.571
significant linear relationship/correlation between the number of absences(x) Two-tailed ρ=0 ρ≠0
and the final exam grade (y) Claim: ρ ≠ 0 Right-tailed ρ≤0 ρ>0
(see next slide for the wording of final conclusion) Decision: Reject 𝑯𝒐 Left-tailed ρ≥0 ρ<0
INTRODUCTION TO CORRELATION AND LINEAR REGRESSION | 19 INTRODUCTION TO CORRELATION AND LINEAR REGRESSION | 20 INTRODUCTION TO CORRELATION AND LINEAR REGRESSION | 21
department of
statistics Formal Hypothesis Test Example 2 department of
statistics
department of
statistics Formal Hypothesis Test Example 2
Alpha
3. Decision Rule tail 5. Decision
Reject 𝐻𝑜 if 𝑡𝑐 > 𝑡(𝛼,𝑛−2) Since 0.3144 > 1.943, we fail to reject 𝐻𝑜
α = 0.05, n = 8, 𝑟 = 0.1273 (see slide 15)
𝑡(𝛼,𝑑𝑓) = 𝑡(0.05,6) = 𝟏. 𝟗𝟒𝟑 (see next slide) 𝑡 0.05,6 = 𝟏. 𝟗𝟒𝟑 α = 0.05
Reject Ho if 𝒕𝒄 > 𝟏. 𝟗𝟒𝟑
0.05 Tail: one-tailed 0.05
Estimated Regression Model by Least Squares Method ෝ based on some given value of x
In predicting a value of 𝒚
Estimate of the Estimate of the The formulas for 𝒃𝟏 and 𝒃𝟎
Estimated (or regression intercept regression slope
Independent 1. If there is no significant linear correlation, the best predicted
predicted) y value
variable 𝑛 σ 𝑋𝑖 𝑌𝑖 – σ 𝑋𝑖 σ 𝑌𝑖
𝑏1 = y-value is 𝑦ത
𝒚ෝ𝒊 = 𝒃𝒐 + 𝒃𝟏 𝑿 𝑛 σ 𝑋𝑖 2 − σ 𝑋𝑖 2
2. If there is a significant linear correlation, the best predicted
Interpretation of the slope and the intercept 𝑏0 = 𝑦ത − 𝑏1 𝑥ҧ y-value is found by substituting the x-value into the
▪ 𝑏0 is the estimated average value of y when the value of x is zero regression equation.
▪ 𝑏1 is the estimated change (increase or decrease) in the average
value of y as a result of a one-unit increase in x
INTRODUCTION TO CORRELATION AND LINEAR REGRESSION | 28 INTRODUCTION TO CORRELATION AND LINEAR REGRESSION | 29 INTRODUCTION TO CORRELATION AND LINEAR REGRESSION | 30