Correlation and Simple Regression
Correlation and Simple Regression
r = +1
if the trend of the line graph is going upward, the value of r is positive
this indicates that as the value of x increases the value of y also increases
ex. as waist line gets bigger, it means weight is also getting heavier
r = -1
if the trend of the line graph is going downward, the value of r is negative
as x increases, y decreases
r=0
if the trend of the line graph cannot be established either upward or downward, then r = 0
nΣxy − ΣxΣy
r=
[nΣx2 − (Σx)2 ] ⋅ [nΣy2 − (Σy)2 ]
example—
x - 75 70 65 90 85 85 80 70 65 90
y - 80 75 65 95 90 85 90 75 70 90
solve for ‘r’
example—
below are the midterm (x) and final (y) grades
x - 75 70 65 90 85 85 80 70 65 90
y - 80 75 65 95 90 85 90 75 70 90
step 1 - problem
→ is there a significant relationship between the midterm and the final grades of 10 students in Mathematics?
step 2 - hypotheses
→ Ho = there IS NO significant relationship between the midterm and the final grades of 10 students in Mathematics
→ Ha = there IS a significant relationship between the midterm and the final grades of 10 students in Mathematics
step 3 - level of significance
→ n = 10
→ a = 0.05
→ df = 8 (n-2)
→ r0.5 = 0.632
step 4 - test statistic / computation
→ r = 0.949
step 5 - decision rule
→ if the computed r value is greater than the tabular value, disconfirm Ho
r > 0.632 (tabular value at 0.05 level of significance with 8 degrees of freedom)
Formula
y = bx + a
to get a,
y = dependent to get b,
variable a = yˉ − bx
ˉ
x = independent nΣxy − ΣxΣy
b= ȳ=
nΣx2 − (Σx)2
variable
average of
a = y-intercept y
example—
y - 80 75 65 95 90 85 90 75 70 90
suppose the midterm report is x = 88, what is the value of the final grade?
r = 0.949
x̄ = 77.5
a = 6.25