Lecture 11 - SimplerLinear and Simple Logistic Regression
Lecture 11 - SimplerLinear and Simple Logistic Regression
11– Regression
-Aarif Baksh
1
Introduction
2
Introduction
3
Simple Linear Regression
4
Simple Linear Regression
◊ Method of Least Squares The difference between each actual value,, and
each predicted value, , is called a
_____________.
5
Simple Linear Regression
6
Simple Linear Regression
7
Simple Linear Regression
8
Simple Linear Regression
10
Simple Linear Regression
Bloomfield, two neighbouring villages, Model R R Square Adjusted R Square Std. Error of the Estimate
for eight consecutive days in May 2016. 1 .997a .994 .993 .72151
a regression analysis and the output Rainfall_at_Johns .864 .027 .997 32.465 .000
Table 1:
Table 1: Descriptive
Descriptive Statistics
Statistics
Std.
Std.
Rainfall_at_Bloomfield
Rainfall_at_Bloomfield 8.3625
8.3625 8.87854
8.87854 88
Rainfall_at_Johns
Rainfall_at_Johns 8.6500
8.6500 10.25057
10.25057 88
a) Calculate the value of the blank space in Table 3.
b) Write the equation of the estimated regression Table 2:
Table 2: Model
Model Summary
Summary
a. Dependent
a. Dependent Variable:
Variable: Rainfall_at_Bloomfield
Rainfall_at_Bloomfield 12
Simple Linear Regression
13
Simple Linear Regression
14
Simple Linear Regression
15
Simple Linear Regression
17
Simple Linear Regression
◊ Linearity
18
Simple Linear Regression
◊ Normality
19
Simple Linear Regression
20
Simple Linear Regression
21
Simple Logistic Regression
25
Simple Logistic Regression
If Odds(A) is or 1:5, we interpret
this as there A occurs once for
◊ Odds and Odds Ratio every five times it does not occur
OR We expect A to occur once in 6
The odds of an event is defined as trials.
the ratio of the probability that
_______________ to the
probability that ______________.
Question 1 (Odds):
What is the odds of:
𝑜𝑑𝑑𝑠 ( 𝐴 )=¿
a) Obtaining a head when a fair coin is
tossed once? Interpret the result.
b) Obtaining an even number when a fair
die is rolled? Interpret the result
26
Simple Logistic Regression
𝛽 0+ 𝛽 1 𝑥
^= 𝑒
𝑝 𝛽 + 𝛽1 𝑥
1 +𝑒 0
29
Simple Logistic Regression
30
Simple Logistic Regression
Does Motivation and Referral source affect whether a client completes a drug and alcohol
treatment program? A researcher investigates the above question. Motivation is a continuous
variable and Referral is dichotomous ( agency referral, self referral). The outcome is coded
complete the program and do not complete the program. The SPSS output is shown below.
31