ML Assignments
Assignment-01
Question 1: Find quartile, percentile and decile for grouped and ungrouped data
Question 2: Find accuracy, misclassification or error rate, sensitivity or recall or true positive
rate, false positive rate, specificity or true negative rate, precision and F-1 score of a
confusion matrix. Also plot ROC and AUC.
Assignment-02
Question 1: Take a simple dataset and perform Logistic Regression manually.
Question 2: Take a simple dataset and perform KNN manually.
Assignment-03
Question 1: Define SVM, Hyperplane, Margin, Kernel, Soft Margin, Hard Margin
Overfitting and Underfitting.
Question 2: Take a simple dataset and perform SVM manually.
Question 3: Why slack variable is introduced in SVM
Assignment-4
Question 1: Normal Distribution and Its Properties
(i) Define the Normal Distribution.
(ii) Mention and explain its properties:
(iii) Include 3 examples
Question 2: Derive the Probability Density Function (PDF) of the normal distribution
(ii) Estimate the mean (μ) and variance (σ²) from a sample
Question 3: ANOVA Test (One-Way and Two-Way)
(i) Explain the purpose of ANOVA (Analysis of Variance).
(ii) Perform:
○ One-way ANOVA
○ Two-way ANOVA
Question 4: t-Test
(i) Define the t-test and its types:
○ One-sample t-test
Two-sample t-test (independent)
(ii) Include examples and clearly interpret null hypothesis, t-statistic, and p-value.
Question 5: Matrix Statistics Problem
Consider the following 5×3 matrix X, which represents data on three variables
collected from five observations:
X=
Calculate the mean vector and sample covariance matrix and determine the
correlation matrix.
1 1
S= D 2 R D 2 Verify this relationship.
s s
Assignment-05
Question 1: Take 10 data points and Find the PCA of them.
Assignment-06
Question 1: Compute Two clusters using K-means algorithm for clustering where initial
centers and 10 data points are given
Question 2: (i) What is Elbow Method?
(ii) How does it works?
(iii) why do we use the Elbow Method?
Question 3: Given 5 data points in 2D space
(i) Compute the single linkage method and draw the dendogram
(ii) Compute the complete linkage method and draw the dendogram
(iii) Compute the average linkage method and draw the dendogram
Assignment-07
Question 1: Take a dataset containing 5 data points with two features and one target variable
and find β 0 , β 0 . β0 , ^y and ∈.