Professional Documents
Culture Documents
ML - Int-1 Solutions
ML - Int-1 Solutions
MCQ
1. (B) P(B|A) decreases
The conditional probability equation for joint probability distribution;
P(A, B) = P(A|B)P(B) = P(B|A)P(A).
In P(A, B) = P(B|A)P(A) if P(A) increases then, only the decrease in P(B|A) will result in decrease of P(A,
B).
3.A) L1 norm.
6. (b) lasso
For feature selection, we would prefer to use lasso since solving the optimization problem when using
lasso will cause some of the coefficients to be exactly zero (depending of course on the data) whereas
with ridge regression, the magnitude of the coefficients will be reduced, but won't go down to zero.
7. A)
take the derivative of the given function, equate to zero and solve for u, as it is given, we want to minimize
the squared error
8. B)
Av = λv given, To check whether v is a eigen vector of A2, Consider A2v = A(Av) = A(λv) = λ(Av) = λ(λx)
= λ2x. Hence A50v = λ50 v
9. A)
for multiplication and addition the calculation is (64*200 + 200 * 10) = 14800
10. A
11. C
take vectors whose eigen values are maximum as it captured the spread of data more. so v1, v3 are the
vectors with λ1 = 6, λ4 = 6
12. D
Expected Gain is : 75% chance is number above 35 to come, and 35% chance you loose (win chance *
amount + loss chance * -amount)
A - (0.75 * 1 + 0.35 * -1) * 100 = 40
B - (0.75 * 10 + 0.35 * -10) * 10= 40
C - (0.75 * 100 + 0.35 * -100) * 1= 40
All have same expected gain, so ans is D
13. D
¼ - to select same number, ¾ not to select same number for friend 1 and friend 2. if friend 1 and friend 2
select same number, friend 3 to match with same number has ¼ probability. so same number chose
probability amongst three friends is ¼ * ¼ = 1/16If friend 1 and friend 2 did not select same number,
probability of friend 3 to match either friend1 or friend 2 number is 2/4 . So total Yes probability to choose
same number is 1/16 + (¾ * 2/4) = 7/16
14. C
15. D
1.
= 0.287
2. 0.63
𝑃(𝑇/𝑋)∗𝑃(𝑋)
P(X|T) = 𝑃(𝑇)
0.99∗0.05
=
0.99∗0.05+0.03∗0.95
0.0495
=
0.078
= 0.63
3. Give 1 mark each even if the formula is missing but the final answer matches, otherwise if the final answer is
wrong but formula is written correctly then give 0.5 marks each.
4.
Bias occurs when the predicted values are further from the actual values. Low bias indicates a model where the
prediction values are very close to the actual ones. High bias can cause an algorithm to miss the relevant relations
between features and target outputs.
Variance refers to the amount the target model will change when trained with different training data. For a good
model, the variance should be minimized. High variance can cause an algorithm to model the random noise in the
training data rather than the intended outputs.