May Wed Lec 3

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

15 May 2024 18:18

C.I 15­ 25­ 35­ 45­ 55­65


F 8 24 30 26 12

Mean = 41 Median =41 Mode = 41

M.D = 9.24 S.D ≅ 11.358

C.I 12­ 16­ 20­ 24­ 28­ 32­36


F 13 26 32 38 16 7

Mean ≅23.077 Median ≅ 23.25 Mode ≅ 24.8

M.D ≅ 4.376 S.D ≅5.269

Regression ‫اﻹﻧﺣدار‬

x 1990 1995 2000 2005 2010 2015 2020 2025


y ‫ﻣﻌﻠوم ﻣﻌﻠوم ﻣﻌﻠوم ﻣﻌﻠوم ﻣﻌﻠوم ﻣﻌﻠوم ﻣﻌﻠوم‬ ?
Regression equation of straight line
The regression equation of the straight line can be written as
Y = ax + b

∑ ∑ ∑
= ∑ (∑ )
=∑ ∑

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

Estimate the value of y at x =16


Solution y = ax + b

∑ ∑ ∑
= ∑ (∑ )
=∑ ∑

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 ‫اﻻرﺗﺑﺎط‬

Person’s correlation coefficient

We can evaluate Person’s correlation coefficient from the following relation

∑ ∑ ∑
=
∑ (∑ ) ∑ (∑ )

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

Spearman’s ( Rank) correlation coefficient


We can evaluate spearman's correlation coefficient from the following relation :


=1− ( )

Where D : is the difference between the ranks


Rank : is the average of orders

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

You might also like