Correlation and Regression
Correlation and Regression
AND
REGRESSION
BY: MS NIPAS
CORRELATION
A correlation exists between two variables
when one of them is related to the other in
some way.
some way.
some way.
CORRELATION
If the graphical presentation is drawn and all
the coordinates of x and y lie exactly on a
straight line then there is an existence of
perfect correlation between these two
variables.
x x x
x x x
x x
(g) No Correlation (h) Nonlinear Correlation
CORRELATION
1. -1 r 1
1. -1 r 1
4. r of a.
CORRELATION
4. r of a.
CORRELATION
is a technique that is commonly used in determining relationship between two sets of data.
It is applicable once the data to be compared are measured in terms of interval or ratio
scale.
1. -1 r 1
4. r of a.
CORRELATION
4
CORRELATION – Pearson ( r )
r=
4
CORRELATION – Pearson ( r )
Notations:
n = number of pairs of data presented
(x)2 indicates that the x scores should be added and the total
then squared.
55 Linear 148
Correlation of Age and BP of the 12 Women
41
180 125
71
160 159
140
36 117
120
62
100
148
46 128 Trend line
BP
80
54
60 149
40
48 144
20
37 115
0
41 0 140 20 40 60 80
67 151 AGE
59 154
CORRELATION – Pearson ( r )
Women Age (x) BP (y) xy
1 55 148 8140 3025 21904
2 41 125 5125 1681 15625
3 71 159 11289 5041 25281
4 36 117 4212 1296 13689
5 62 148 9176 3844 21904
6 46 128 5888 2116 16384
Compute for r
7 54 149 8046 2916 22201
8 48 144 6912 2304 20736
9 37 115 4255 1369 13225
10 41 140 5740 1681 19600
11 67 151 10117 4489 22801
12 59 154 9086 3481 23716
∑ 617 1678 87986 33243 237066
CORRELATION – Pearson ( r )
In your calculator press the following
Null Hypothesis
Ho: = 0 (to mean that there is no correlation
between x and y),
and the
Alternative Hypothesis
Ha: 0 (to mean that there is correlation between
x and y)
CORRELATION
The Significance Test for the Coefficient of Correlation
The test statistics for the significance of the
correlation coefficient r is given by the following
methods:
Method 1:
t=r df = n -2 ; If n < 30
z=r ; if n > 30
or by
(uses fewer calculations)
CORRELATION
The Significance Test for the Coefficient of Correlation
Reject
Reject Fail to reject Reject
Reject
=
=00 =0 =
= 00
Decision Rule:
Reject Ho if the computed
t value is
a) < - 2.228 or
b) > 2.228,
Otherwise do not reject
Ho.
-2.228 2.228
CORRELATION
The Significance Test for the Coefficient of Correlation
Step 5: Compute
for t-value:
Method 1: Method 2:
t=r t=
0.89
t = 6.17
-2.228
Sample r = 0.89
CORRELATION
The Significance Test for the Coefficient of Correlation
Step 6: Decision:
Since the computed t-value (6.17) is greater than
the t- tabular value (2.228), then Ho should be rejected.
Step 7: Interpretation:
Rejection of Ho means that there is a significant
relationship between the age and systolic blood pressure
of women base on the sample of 12 women using 0.05
level of significance.
In your calculator
press the following:
= 1-(6x181÷(10x(-1)))= -0.097
Finding:
A correlation coefficient of -0.097 means that there is
a negligible negative relationship between academic
performance and level of awareness of the 10
freshmen students.
CORRELATION -Spearman’s Rank Correlation Coefficient
Test the Significance of
Step 1: Ho: = 0
(There is no significant relationship
between the academic performance
and level of awareness in OBE of all
Freshmen.)
Ha: 0
(There is a significant relationship
between the academic performance
and level of awareness in OBE of all
Freshmen.)
CORRELATION
The Significance Test for the Coefficient of Correlation
Decision Rule:
Reject Ho if the computed
t value is
a) < - 2.3060 or
b) > 2.3060,
Otherwise do not reject
Ho.
-2.3060 2.3060
CORRELATION
The Significance Test for the Coefficient of Correlation
Step 5: Compute for t-value:
Method 1:
t=r t = -0.0 97
t = -0.2756
-2.228
CORRELATION
The Significance Test for the Coefficient of Correlation
Step 6: Decision:
Since the computed t-value (-0.2756 ) is greater
than the t- tabular value (-2.3060) and less than
(2.3060) , then Ho should not be rejected.
Step 7: Interpretation:
Non-rejection of Ho means that there is no significant
relationship between the academic performance
and level of awareness in OBE of all Freshmen, base on
a sample of 10 freshmen using 0.05 level of significance.
-2.228
REGRESSION
-2.228
REGRESSION
Regression Equation:
𝒚 =𝒂 +𝒃𝒙
Where:
a= y- intercept (ordinate or the point where the
regression line crosses the y- axis)
-2.228
REGRESSION
Regression Equation:
𝒚 =𝒂 +𝒃𝒙
Where:
b= beta weight or the slope of the line
𝒃=𝒏 ¿ ¿
-2.228
REGRESSION
Guidelines for Using The
Regression Equation
1. If there is no significant linear
correlation, don’t use the regression
equation to make predictions.
a = 81.9878
-2.228
REGRESSION
𝒃=𝒏 ¿ ¿
=
= 1.1250
-2.228
REGRESSION
Then the Regression Equation is
𝒚 =𝟖𝟏.𝟗𝟖𝟕𝟖+𝟏. 𝟏𝟐𝟓𝟎 𝒙
-2.228
Thank You
-2.228
Thank You
-2.228