1 of 29

ESE633� Statistic in EducationChapter 9�SIMPLE LINEAR REGRESSIONVideo E�

Dr Kim Teng Siang

kskim2007@gmail.com

0124661131

2 of 29

2

INTRODUCTION

We want to find the relationship between IQ and

Mathematics Achievement (DV)

IQ --> IV , interval scale

Math Scores --> DV , interval scale

How to find the relationship?

Scatter plot

Math Score = Y axis

IQ = X axis

3 of 29

Scattergram

  1. Plot of All (Xi, Yi) Pairs (points)
  2. Suggests how well which relationship Model (line) will fit

(Linear Model of relationship)

Math

score

IQ

0

20

40

60

0

20

40

60

X

Y

4 of 29

Thinking Challenge

How would you draw a straight line through the points? How do you determine which line ‘fits best’? (balance for all points)

Math

Score

IQ

5 of 29

Thinking Challenge

How would you draw a line through the points? How do you determine which line ‘fits best’? (balance for all points)

Math

Score

IQ

6 of 29

Thinking Challenge

How would you draw a line through the points? How do you determine which line ‘fits best’?

7 of 29

Thinking Challenge

How would you draw a line through the points? How do you determine which line ‘fits best’? (balance for all points)

8 of 29

Thinking Challenge

How would you draw a line through the points? How do you determine which line ‘fits best’? (balance for all points)

9 of 29

Thinking Challenge

How would you draw a line through the points? How do you determine which line ‘fits best’? (balance for all points)

Math

Score

IQ

10 of 29

Other Non-linear Relationships

No Relationship

0

20

40

60

0

20

40

60

X

Y

11 of 29

Scattergram

Non-linear Relationship - Curve

0

20

40

60

0

20

40

60

X

Y

12 of 29

Types of �Regression Models

Regression

Models

Linear

Non-

Linear

2+ Explanatory

Variables

Simple

Multiple

Linear

1 Explanatory

Variable

Non-

Linear

13 of 29

Linear Equations

High School Teacher

© 1984-1994 T/Maker Co.

14 of 29

Linear Regression Model �for Prediction

Relationship Between Variables is in a Linear Function

Y

X

i

i

i

=

+

+

β

β

ε

0

1

Dependent Variable (Response) �(e.g., income)

Independent Variable (Explanatory) �(e.g., education level)

Population Slope

Population �Y-Intercept

Random Error

15 of 29

Inference About the Population Slope and Intercept

  • If then we have a graph like this:

15

X

16 of 29

Inference About the Population Slope and Intercept

  • If then we have a graph like this:

16

X

This is the mean of Y for those whose independent variable is X

17 of 29

Inference About the Population Slope and Intercept

  • If then we have a graph like this:

17

X

Note how the mean of Y does not depend on X: Y and X are independent

18 of 29

18

Attitude towards English

English Test Score

 

 

34

80

 

 

37

87

 

 

39

89

 

 

29

70

 

 

28

69

 

 

30

72

 

 

33

79

 

 

37

85

 

 

32

81

 

 

32

79

 

 

*

*

*

*

*

*

*

*

*

English

score

Attitude

Scatter plot shows that there

Is a linear relationship between

English score (DV) and

attitude (IV)

Estimating Regression

Coefficients Using SPSS

Based on data in Table 9.1,

page 4

19 of 29

Estimating Regression Coefficients Using SPSS

  • Refer to page 4
  • (Type in the values in Table 9.1)
  • Lets carry out the Testing procedure using Linear Model
  • a) Test for Linearity (Global Hypothesis)
      • R² = 0
  • b) Test of Sig. of Slope

- Regression slope is equal to zero

19

20 of 29

a) Testing the Assumption of Linearity (Global Hypothesis)

      • Ho: The variation in the DV is not explained by the Linear Model (R² =0)

  • H1: A significant porting of the variation in the DV is explained by the Linear Model (R² = 0)

20

21 of 29

21

22 of 29

22

23 of 29

23

Model Summary

Model

R

R Square

Adjusted

R Square

Std Error of the Estimate

1

.879a

.772

.743

4.1937

Is there a Linear Regression (Table 2 & 3)?

Predictors: (Cons tant), ATTITUDE

 

 

Sum of

 

 

 

 

Model

 

Squares

df

Mean Square

F

Sig.

1

Regression

476.202

1

476.202

27.076

.001a

 

Residual

140.698

8

17.587

 

 

 

Total

616.900

9

 

 

 

Table 2 : Model Summary

Table 3 : ANOVA

R square = .88, and ANOVA shows that it is significantly not zero

Conclusion: there is a Linear relationship betw English score and attitude

24 of 29

b) Testing the Significant of the Slope

  • Ho : The regression slope is equal to

zero (beta = 0)

  • H1: The regression slope is not equal to

zero (beta ≠ 0)

24

25 of 29

‘Coefficients’ table (see Table 4).� 

25

 

 

Table 4:

 Coefficients

 

 

 

 

 

 

Unstandardized

Standardized

 

 

 

 

 

 

Model

 

Coefficients

Coefficients

 

t

 

Sig.

 

 

B

 

Std. Error

Beta

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 1 (Constant)

0.70

 

0.20

13.54

 

.000

 

 

 

 

 

 

 

 

 

 

 

 

Attitude

1.50

 

.007

 

 

 

 

 

 

 Toward English

 

1.36

 

   5.43

 

 .006

 

 

 

 

 

 

 

 

 

 

 

 

 

Significant

Beta 1 or slope is not zero

26 of 29

Predicting English Performance

26

ENGLISH Score (Y) = β1X +  βo

= Slope ((β1) multiplied by Attitude Score (X)) + Intercept (βo)

REGRESSION EQUATION

  • The simbol ‘β’ is pronounced as “beta”

  • So β0  is pronounced ‘beta zero’ which is the intercept

  • and β1 is pronounced ‘beta one’ which is the slope

 (Should be reverse: Beta 1 is the slope, beta zero is the

constant or intercept)

 

27 of 29

To Predict performance when attitude score is 30.0

  • ENGLISH performance (Y) = 1.50 X 30.0 + 0.70

= 45.70

  • By applying the regression equation, the predicted score is 45.70.

27

28 of 29

Assignment Question 2

  • Explain the Relationship between 2 variables (interval scale),
  • Statistical test used

28

Reading

Comprehension

Hours spent playing video games

29 of 29

Thank You

29