ML Final Solution Set Obe 2021
ML Final Solution Set Obe 2021
ML Final Solution Set Obe 2021
Solutions to overfitting (any 3) (short description is required for all three):( 2 marks for each
correct explanation)
Q.2 (total 6 marks (3 for designing + explanation and 3 for correct calculation))
pick w = -1 and b = 0.5 (or any other possible bias and weight giving correct answer)
when X1=1 :
1 * (-1) + 0.5= -0.5 < 0 so output =0 (after application of heavyside step function as the
activation function )
When X1= 0 :
0 * -1 + 0.5 = 0.5 >0 so output = 1 (after application of heavyside step function as the activation
function )
XOR function cannot be modelled by using single layer perceptron because it is not linearly
separable. (2 marks)
Solution is to use multilayer neural networks as shown below. (Explanation of the solution +
calculation demonstrating correct results is required) (4.75 marks)
.
Binary sigmoid (x) = 0 61064227354 (3 marks)
Q. 3 calculation of xmean and ymean (2+2 marks)
b1 = 470/730
b1 = 0.644
Once we know the value of the regression coefficient (b1), we can solve for the regression slope (b0): (3
marks)
b0 = y - b1 * x
b0 = 77 - (0.644)(78)
b0 = 26.768
y=0.644x+26.78
predicted
X Y y error Squared error
95 85 87.948 2.948 8.690704
85 95 81.508 -13.492 182.0341
80 70 78.288 8.288 68.69094
70 65 71.848 6.848 46.8951
60 70 65.408 -4.592 21.08646
SSE 327.3973
ŷ = b0 + b1x
Q. 4 (4 marks for basic calculation below, 3 marks for each iteration (3+3)) (total 10)
(y- (y-
ypred)*x ypred)*x
x0 x1 x2 y z ypred y-ypred 1 2
Iteration 1
b0 0.93
b1 -0.04
b2 -0.19
(y- (y-
ypred)*x ypred)*x
x0 x1 x2 y z ypred y-ypred 1 2
Iteration 2
b0 0.89
b1 -0.08
b2 0.34
(Calculation of
SSE = 6 marks)
1.48
for given scenario (2.75
of marks)
x1 = 6.2 x2 = 3.1
prob 0.8089
therefore class = 1
(total 3 marks )
Calculations :
For (PhD Student, Class=No):
– If Class=No
a. Boolean function
b. Continuous function
c. Arbitrary function