Академический Документы
Профессиональный Документы
Культура Документы
Find a linear regression line y = ax + b (where a is the slope and b is the y-intercept)
for values of x and y given below.
y x
7 3
10 5
11 7
15 9
Solution:
y x xy X2
7 3 21 9
10 5 50 25
11 7 75 49
15 9 135 81
y = ax + b
So
b =nxy-(x]( y]
n x 2-( x 2)
= 4(283) – (24)(43)
4(164)-(164)2
= 1132-1032
656-576
= 100 / 80
b = 1.25
_ _
a= Y- bX
_
X =x =24 = 6
_ n 4
Y = y = 43 = 10.75
n 4
So
a = 10.75 – 1.25(6)
a = 3.25
So linear regression line y ax +b
Y=1.25+3.25X
1,2,8,7,10,11,15,20,18,25
1,2,7,8,10,11,15,18,20,25
Quartie Deviationl
Hence (as we cannot have fractional demand) the forecast for month 10 is 20
Question 4: (Non-graded)
Calculate the coefficient of variation for data given below.
10, 12, 14, 16, 18, 20
Solution:
CV = (S)
X
X X X (X X )2
10 -5 25
12 -3 9
14 -1 1
16 1 1
18 3 9
20 5 25
90 70
X = 90/6 = 15
S= (X X ) 2
n
70
S=
6
S= 11 .67
S= 3.42
S.D
C.V = * 100
X
3.42
C.V= 100
15
C.V= 22.8
Question 5: (Non-graded)
Calculate the mean, median, mode and range of the data given below.
0, 1, 2, 5, 9, 8, 3, 2, 6
Mean:
Sum = 0 + 1 + 2 + 5 + 9 + 8 + 3 + 2 + 6 = 36
Mean = 36
9
=4
Median
0,1,2,2,3,5,6,8,9
So
Median (MIDDLE VALUE) = 3
Range
=9–0
=9