May Wed Lec 3
May Wed Lec 3
May Wed Lec 3
Regression اﻹﻧﺣدار
∑ ∑ ∑
= ∑ (∑ )
=∑ ∑
Ex. 1
Find the regression equation of the straight line for the following data
x 2 3 4 5 6 7 8 9
y 94 95 96 101 98 103 104 106
Estimate the value of y at x =10
∑ ∑ ∑
Y = ax + b = ∑ (∑ )
=∑ ∑
Ex. 2
Find the egression equation of the straight line for the following data
x 2 4 6 8 10 12 14
y 15 13 11 9 9 7 5
∑ ∑ ∑
= ∑ (∑ )
=∑ ∑
x y xy X2
2 15 30 4
4 13 52 16
6 11 66 36
8 9 72 64
10 9 90 100
12 7 84 144
14 5 70 196
56 69 464 560
Correlation اﻻرﺗﺑﺎط
∑ ∑ ∑
=
∑ (∑ ) ∑ (∑ )
Remark: a in the regression equation and person's correlation coefficient have the same
sign for the same data
Example 3
Evaluate Person’s correlation coefficient for the following table
x 2 3 4 5 6 7 8 9
y 94 95 96 101 98 103 104 106
x 2 3 4 5 6 7 8 9
y 94 95 96 101 98 103 104 106
∑ ∑ ∑
=
∑ (∑ ) ∑ (∑ )
∑ ∑ ∑
=
∑ (∑ ) ∑ (∑ )
Example 4
Evaluate Person’s correlation coefficient for the following table
x 2 4 6 8 10 12 14
y 15 13 11 9 9 7 5
x y xy X2 Y2
∑ ∑ ∑
2 15 30 4 225 =
∑ (∑ ) ∑ (∑ )
4 13 52 16 169
6 11 66 36 121
8 9 72 64 81
10 9 90 100 81
12 7 84 144 49
14 5 70 196 25
56 69 464 560 751
∑
=1− ( )
Example 5
Evaluate the rank correlation coefficient for the following table
Stat. B C F D B- F D C A
O. M A A A C F C F B D
Solution
∑
=1− ( )
∑
=1− ( )
Example 6
Evaluate the rank correlation coefficient. For the following table
x B C A F B+ A C D A
y C D B D C A F F B
Solution
∑
=1− ( )
x.
Order 1 2 3 4 5 6 7 8 9
Grade F D C C B B+ A A A
Rank 1 2 5 6
y.
Order 1 2 3 4 5 6 7 8 9
Grade F F D D C C B B A
Rank