0% found this document useful (0 votes)
58 views

Assignment 2

This document contains an assignment on machine learning using Python with 4 questions. [1] It asks to elaborate on key terms in linear regression like simple and multiple regression, slope, intercept, cost function, R-squared, assumptions. [2] It provides student data and asks to calculate statistics, fit a simple linear regression model to predict mid-term scores from attendance. [3] It provides temperature and revenue data and asks to fit a regression model to predict revenue from temperature. [4] It asks to demonstrate Minkowski/Makowski distance and how Manhattan and Euclidean distances are special cases.

Uploaded by

Shahi Ji
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views

Assignment 2

This document contains an assignment on machine learning using Python with 4 questions. [1] It asks to elaborate on key terms in linear regression like simple and multiple regression, slope, intercept, cost function, R-squared, assumptions. [2] It provides student data and asks to calculate statistics, fit a simple linear regression model to predict mid-term scores from attendance. [3] It provides temperature and revenue data and asks to fit a regression model to predict revenue from temperature. [4] It asks to demonstrate Minkowski/Makowski distance and how Manhattan and Euclidean distances are special cases.

Uploaded by

Shahi Ji
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

AMITY UNIVERSITY KOLKATA

AMITY INSTITUTE OF INFORMATION TECHNOLOGY


MACHINE LEARNING USING PYTHON (CSIT 737)

ASSIGNMENT 2 [50 MARKS]

1. Elaborate the following terms taking relevant examples wherever applicable:


i. Simple linear regression
ii. Multiple linear regression
iii. Slope
iv. Intercept
v. Dependant variable
vi. Independent variable
vii. Cost function/objective function in simple linear regression
viii. R squared value for linear regression
ix. Adjusted R squared value for linear regression
x. Lasso regression
xi. Ridge regression
xii. Assumptions in linear regression

2. The following table stores names, id numbers, marks obtained in assignment, percentage
of attendance and mid term marks for corresponding students. Consider this and answer
the questions below.

ID NO NAME Assignment Attendance Mid-Term


STUD01 TINKU 48 96 48
STUD02 PINKU 20 72 38
STUD03 RINKU 25 74 40
STUD04 SHANKU 33 89 44
STUD05 DINESH 40 81 42
STUD06 MAHESH 44 75 40
STUD07 SURESH 26 80 41
STUD08 NARESH 24 81 40
STUD09 SUKESH 40 94 47
STUD10 JIBESH 29 79 36
a. Mean of Assignment marks, attendance, and mid-term marks
b. Median of Assignment marks, attendance, and mid-term marks
c. Variance and standard deviation of Assignment marks, attendance, and mid-term
marks
d. Covariance and correlation between mid-term marks and attendance
e. Fit a simple linear regression using the data, so that you can predict the expected
marks scored by a student in mid-term when the students attendance is 83. Also
present calculate the value of R2 and write your comment on that.
3. Consider the table below that stores the values of daily temperature and the
corresponding amount of revenue generated from ice creams sales. Using this available
data, develop e simple linear regression model that can be used for predicting the amount
of revenue generated when the temperature is 25.45. Also demonstrate how robust your
model is.

Temperature Revenue
24.6 534.8
26.0 625.2
27.8 660.6
20.6 487.7
11.5 316.2
14.4 367.9
13.7 308.9
30.8 696.7
1.0 55.4
31.7 737.8

4. Demonstrate the working of Makowski distance. Also demonstrate how Mangattan


distance and Euclidian distances are special cases of Makowskis distance.

You might also like