0% found this document useful (0 votes)
15 views1 page

Assignment 1 DS413

The document outlines Assignment-1 for the DS413 course, focusing on statistical learning with a due date of August 29, 2024. It includes programming tasks related to regression and linear classification using Python, specifically involving mobile phone price prediction and banknote authentication datasets. Students are instructed to work independently, avoid plagiarism, and utilize Jupyter notebooks for code submission while discussing doubts on Slack.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

Assignment 1 DS413

The document outlines Assignment-1 for the DS413 course, focusing on statistical learning with a due date of August 29, 2024. It includes programming tasks related to regression and linear classification using Python, specifically involving mobile phone price prediction and banknote authentication datasets. Students are instructed to work independently, avoid plagiarism, and utilize Jupyter notebooks for code submission while discussing doubts on Slack.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

DS413 - Introduction to Statistical Learning

Assignment-1
Assigned Date: 17/08/2024
11:59pm, Due Date:29/08/2024
Instructions
• Work on the assignments on your own. You are free to discuss among your selves,but
don’t copy. If we find the assignments of a group of (two or more) students very similar,
the group will get zero points towards this assignment. Plagiarism will be cheked with
tools. Please use Python for writing code. You can submit the code as a Jupyter notebook
and For the theory questions, please submit your work to TAs. Use slack to discuss, if
you have any doubts.
1 Programming Assignment

1.1 Regression
• Mobile Phone Price Prediction dataset. Implement the Linear Regression using the
following methods. Use the matrices approach. Divide the data into train and test. Use
training samples to construct data matrix and label matrix. Based on the dimension of
data, assume the parameter matrix.
1. Using closed form solution
2. Using gradient descent
3. Plot the predicted verses actual on test data for both the methods (1 and 2)
4. Repeat the 1,2 and 3 with Regression with l2 Regularization.
5. Compare the results in 4 with and without data standardization.
6. Plot the results from 4: predicted verses actual on test data by varying λ values
7. After fitting the Regression with l2 regularization, based on the weight values,comment
on the importance of the features.

1.2 Linear Classification


• Fit a Linear Classification Model (2-class classification model) for the dataset given Bank
note authentication: dataset

1. Divide the dataset into training and testing


2. Fit a classification model with and without l2 regularization. Compare the classifi-
cation accuracy on test data.
3. Plot the test accuracy and training accuracy with various λ values. Write down your
observations.
4. Plot a 3D plot of your data by choosing important 3 features.
5. Intentionally shift few data points and create outliers
6. Fit Linear classifier on the dataset with outliers and what is impact of outliers on
model’s performance? comment?

You might also like