Module 6B Simple Linear and Binary Logistic Regression - Updated PDF
Module 6B Simple Linear and Binary Logistic Regression - Updated PDF
𝑛 −2
𝑡𝑐𝑜𝑚𝑝𝑢𝑡𝑒𝑑 =𝑟
1 − 𝑟2
𝑛 −2
𝑡𝑐𝑜𝑚𝑝𝑢𝑡𝑒𝑑 =𝑟
1 − 𝑟2
▪ After calculating this value, we can find its p-value by using Excel’s
function = 𝑇. 𝐷𝐼𝑆𝑇. 2𝑇(𝑡, deg _𝑓𝑟𝑒𝑒𝑑𝑜𝑚) .
Source: Statistics for Manager Using Microsoft Excel, 5e @ 2008 Prentice-Hall, Inc
Regression Analysis: Types of relationships
Source: Statistics for Manager Using Microsoft Excel, 5e @ 2008 Prentice-Hall, Inc
Regression Analysis: Types of relationships
Source: Statistics for Manager Using Microsoft Excel, 5e @ 2008 Prentice-Hall, Inc
Simple Linear Regression Model
▪ Only one independent variable, X
▪ The relationship between X and Y is described by a linear
function.
▪ The changes in Y are related to changes in X.
1 1 53 6 11 84
2 5 74 7 14 96
3 7 59 8 15 69
4 8 43 9 15 84
5 10 56 10 19 83
Intercept = 49.477
0 ≤ 𝑟2 ≤ 1
Statistical Analysis with Software Applications, Mc Graw Hill
Example 1 Coefficient of determination
2
𝑆𝑆𝑅 1020.341
𝑟 = = = 0.39412
𝑆𝑆𝑇 2588.90
39.41% of the variation in scores
is explained by the variation in
study hours.
𝑆𝑌𝑋 = 14.002
1.9641 − 0
𝑡= = 1.9641
0.8610
𝑑𝑓 = 𝑛 − 2 = 10 − 2 = 8
𝑏1
𝑇. 𝐷𝐼𝑆𝑇 2.281221,8,2 = .052
𝑇. 𝐷𝐼𝑆𝑇 2.281221,8,2
= .052 = p-value
• H0: β1 = 0
• H1: β1 ≠ 0
Aside from visually examining the scatter plots of the IV and DV to assess linearity, the
scatter plot of the IV vs the residuals may also be examined. The plots at the left show curve
patterns which indicates that the data relationship is not linear. Another model should be
used.
Statistical Analysis with Software Applications, Mc Graw Hill
Checking the assumptions by examining the residuals
Residual
Analysis for
Equal Variance:
Plot X against
residuals
Residual
Analysis for
Equal variance:
Plot predicted
values against
residuals
D= i =2
n
▪ The possible range is 0 ≤ D ≤ 4
i
e 2
i =1
▪ D should be close to 2 if H0 is true
The assumption of
normality of residuals is
satisfied since the points
follow a straight line.