You are on page 1of 6

x y x-x' y-y' (x-x')^2 (x-x')(y-y') (y-y')^2

1 3 -2 -0.6 4 1.2 0.36


2 4 -1 0.4 1 -0.4 0.16
3 2 0 -1.6 0 0 2.56
4 4 1 0.4 1 0.4 0.16
5 5 2 1.4 4 2.8 1.96
Sum 15 18 0 0 10 4 5.2
Mean 3 3.6 1.04

7 5.2
y=mx + c
c=y' - mx' 2.4

0.4
Xi Yi
(Week) (Sales in thousands) x^2 x*y

1 1.2 1 1.2
2 1.8 4 3.6
3 2.6 9 7.8
4 3.2 16 12.8
5 3.8 25 19 c=y' - mx'
Sum 15 12.6 y=mx + c
Mean 3 2.52 11 8.88

Y(7) 5.16
Y(12) 8.46
0.66

0.54
Hourly Pass (1)
Study Fail (0) Assume model z=log(odds)=-64 + 2*hours
29 0 We use Sigmoid function S(X)= 1/(1+e^-z)
15 0 assume the model suggested by the optimizer for odds of passing a course
33 1
28 1
39 1

Prob(33)
Calc z 2
Calc p 0.88
How many HRS the student should study to pass with prob >95%
0.95=1/(1+e^-z)
z 2.940 0.880797077977882
z 2.94 =-64+2*hours
hours= 32.0055
dds of passing a course

You might also like