0% found this document useful (0 votes)
76 views2 pages

Practice Question

Students are required to create a folder on their desktop named after their Exam roll number and save individual Python files for each question. The first question involves creating a linear regression model to predict sales based on TV advertising data, while the second question focuses on predicting placement eligibility based on GPA using logistic regression. Both questions require data input in Excel, analysis of statistical measures, and interpretation of regression results.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
76 views2 pages

Practice Question

Students are required to create a folder on their desktop named after their Exam roll number and save individual Python files for each question. The first question involves creating a linear regression model to predict sales based on TV advertising data, while the second question focuses on predicting placement eligibility based on GPA using logistic regression. Both questions require data input in Excel, analysis of statistical measures, and interpretation of regression results.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

INSTRUCTIONS

 Students have to create a folder on desktop with their Exam roll no.
 Each question will be saved separately as a Python file as follows : “Exam roll no.
_Q1.pynb”
 Screenshot of entire question will be saved in word doc and then saved in the same folder
on desktop.

Ques1. Create a linear regression which predicts the sales based on Tv advertising using following data :
(10 marks)

In Million ($)
TV RADI NEWSPAPE SALES
ADVERTISIN O R
G
230.1 37 69 22.1
44.5 39 45 10.4
17.2 45 69 12
151.5 41 58 16.5
180.8 10 58 17.9
8.7 48 75 7.2
57.5 32 23 11.8

1. Input the data given above in an excel file named “sales” and then Import the excel
file in Jupyter Notebook.
(1)
2. Calculate the mean, median, mode and standard deviation for the variable Job
Satisfaction and analyse. (2)
3. Fit the Multiple Regression Model using OLS method regression between Sales (Y),
TV advertisement (X1), Radio (X2) and Newspaper (X3). (2)
4. Obtain the regression equation and interpret it. (1)
5. Interpret the value of R square. (1)
6. Is the overall model significance? Elaborate. (1)
7. Discuss the significance of individual independent variables. (1)
8. Test for the presence of autocorrelation in the data and comment on it. (1)
Ques2. Create a regression which predicts Whether a person will be eligible for placement based on GPA
(10 marks)

GPA ELIGIBLE
3.78 0
4.92 1
4.96 1
21.6 0
2.44 0
2.09 0
0.14 0
1.72 0
1.65 0
4.37 0
4.52 1
3.69 1
5.88 1

a) Input the data given above in an excel file named “pass” and then Import the
excel file in Jupiter Notebook.

(1)
b) Display first five rows of the data imported.
(1)
c) Fit the logistic regression model between the variables GPA (X1) and
ELIGIBLE (Y).
(2)
d) Obtain the Classification Report including Precision, Recall, F Score, Accuracy &
Specificity and Confusion Matrix and analyze it. (6)

You might also like