p is the proportion of points with label 1 in some node in a decision tree. Which of the following statements are true?
As the value of p increases from 0 to 1, the impurity of the node increases.
As the value of p increases from 0 to 1, the impurity of the node decreases.
The impurity of the node does not depend on p.
p = 0.5 correspond to the case of maximum impurity.
Q4MCQ2 marks
To prevent numerical errors when calculating the variance of Gaussianfeatures.
To ensure that unseen categorical feature values receive small but nonzeroprobabilities.
To strengthen the model’s predictions by increasing the weight of certainfeatures.
To balance the likelihood values of all features before computing posteriorprobabilities.
Q5MCQ4 marks
(a)
(b)
Insufficient information
Q6MSQ3 marksselect all that apply
It ensures that the regression model remains linear.
It computes the similarity between data points in a transformed feature space.
It allows the model to capture non-linear relationships by mapping data to ahigher-dimensional space.
It helps in reducing the variance of the model.
It minimizes the loss function in regression problems.
Q7MSQ3 marksselect all that apply
Q8SA4 marks
Q9SA4 marks
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions.
Q10SA3 marks
Q11SA2 marks
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions.
Q12SA2 marks
Q13SA3 marks
Compute the Leave-one-out cross validation (LOOCV) error for the 3- nearest neighbour (3-NN) algorithm on this dataset. Enter the answer correct to two decimal places.
Q14MCQ2 marks
Is it possible to reduce the cross-validation error obtained in the previous question by changing the label of certain points?
Auto-generated summary from the source site. Handy as a checklist; the lessons above explain each idea from scratch.
Summary of Core Topics, Concepts, Principles, and Equations
1. Ridge Regression
Concept: Ridge regression is a regularized version of linear regression that includes a penalty term to prevent overfitting.
Optimization Problem:
w∈Rnmini=1∑n(wTxi−yi)2subject to∥w∥2≤θ
Key Idea: Ridge regression shrinks the coefficients to reduce variance.
Equation:
∥w^R∥≤∥w^∥
where w^R is the ridge coefficient estimate and w^ is the least squares estimate.
2. Naive Bayes Classifier
Concept: Naive Bayes is a probabilistic classifier based on Bayes' theorem with strong independence assumptions between features.
Number of Parameters: For k classes and n binary features, the number of parameters is:
(k−1)+k⋅n
Laplace Smoothing: Adds a small constant to feature counts to avoid zero probabilities.
P(xi∣y)=Ny+VNxi∣y+1
where Nxi∣y is the count of feature xi in class y, Ny is the total count of features in class y, and V is the number of possible feature values.
3. Decision Trees
Impurity Measures: Gini impurity and entropy are used to measure the disorder in a node.
Information Gain: Used to decide the best split.
Information Gain=Entropy(D)−γEntropy(DYes)−(1−γ)Entropy(DNo)
Key Idea: The impurity is maximum when p=0.5 for binary classification.
4. Kernel Regression
Concept: Kernel regression uses a kernel function to compute similarity between data points in a transformed feature space.
Polynomial Kernel:
K(x,x′)=(xTx′+1)d
Role of Kernel: Captures non-linear relationships by mapping data to a higher-dimensional space.
5. Gradient Descent
Concept: An optimization algorithm used to minimize the loss function.
Update Rule:
w=w−η∇f(w)
where η is the learning rate and ∇f(w) is the gradient of the loss function.
6. k-Nearest Neighbors (k-NN)
Concept: A non-parametric method used for classification and regression.
Prediction: For a test point, the label is determined by the majority vote of its k nearest neighbors.
Leave-One-Out Cross Validation (LOOCV): A method to evaluate the model's performance by leaving one data point out as the test set and using the rest as the training set.