Session 13. Simple Regression
Session 13. Simple Regression
SIMPLE REGRESSION
Regression
A statistical procedure for analyzing associative relationships between one metric DV and one IV
Used to:
◦ Determine whether a relationship exists
◦ Determine strength of the relationship
◦ Determine mathematical equation relating the IV and DV
◦ Predict the values of the DV
Regression equation
◦ŷi = bo + b1xi
◦ yi denotes observed response for experimental unit i
◦ xi denotes predictor value for experimental unit i
◦ ŷi is the predicted response for experimental unit i
Regression example
Want to determine whether there is a relationship between an individual’s income and the price
they pay for a car
Want to use this information to determine which cars to offer potential customers in new areas
where average income is known
◦ Independent variable = income
◦ Dependent variable = price
ŷi = bo + b1xi
Yi – Price person is willing to pay
Xi – Income of person
Example
H0: (Coefficient of ‘Income of person’) b1 = 0
◦ (meaning Income does not have an association with Price)
H1: b1 ≠ 0
Significance level: 0.05
Regression example
Model summary
Adjusted R Std. error of
Model R R square
square estimate
1 0.873 0.762 0.749 874.779
ANOVA
Coefficients
Unstandardize Standardized
Model d coefficients coefficients t Sig.
Std. error of
Model R R square Adjusted R square
estimate
1
0.873 0.762 0.749 874.779
R – Simple correlation
Adjusted R square – Realistic estimation of predictive power of model, based on number of IV in the model –
smaller the delta between R Square and Adjusted R Square the better
Regression example
ANOVA
Model Sum of squares df Mean squares F Sig.
Regression 44182633 1 44182633 57.73 0.000
Residual 1377429 18 765238
Total 57956924 19
Sig. - p-value associated with that F value for the given dF – 2 tailed test – Why?
Regression example
Coefficients
Unstandardized coefficients – for every 1 unit increase in IV, DV will increase by this value
Standardized coefficients – allows us to compare between IV, when there are multiple IVs.
Exercise 1
Is there a connection between height and weight?
H0: Coefficient = 0
H1: Coefficient ≠ 0
Significance level: 0.05
Exercise 2
Is there is an association between weight of car and mpg?
H0: Coefficient = 0
H1: Coefficient ≠ 0
Significance level: 0.05
Example: Task Cohesion
> model<-
lm(Task_Cohesion_
Cleaned~MC_Formal Formal Task
Coordination Cohesion
Coordination_1,da
ta=mydata)
> summary(model)
Example: Task Cohesion
Call: lm(formula = Task_Cohesion_Cleaned ~ MC_FormalCoordination_1,
data = mydata)