Build a Linear Regression model on Boston Housing dataset, “Boston.csv” to predict median house values “MEDV” from the other variables
Case study #3 – PCA applied to Linear Regression – 20 points
Objective:
Build a Linear Regression model on Boston Housing dataset, “Boston.csv” to predict median house values “MEDV” from the other variables. Then build another model after carrying out Principal Component Analysis (PCA) and compare the performance of both models to draw conclusions about the efficacy of PCA.
Tasks:
Exploratory and preparatory 4 points
· Explore the data set and carry out EDA
· Separate target and predictor variables and split the data 70% – 30% (use random_state=42)
Build Linear regression model on original data and evaluate 4 points
· Build a linear regression model on the train data
· Calculate evaluation metrics, R-square, RMSE, MAE and MAPE on train and test data
Carrying out PCA 8 points
· Normalize (scale) the original data (only predictor variables)
· Carry out PCA and examine cumulative variance explained by PCs
· Select number of PCs that explain at least 85% variance
· Extract the chosen number of PCs and fit on scaled data (use random_state=42)
Linear regression on scaled data and comparison 4 points
· Construct another linear regression model – on PCA transformed data
· Evaluate performance and compare both models
· Conclusion about efficacy of PCA
Guidelines for submitting:
· Annotate your Jupyter Notebook, to explain your procedures, comments and conclusions
· After completion, run the Jupyter notebook from start to finish
· Download the notebook in HTML format and upload on CANVAS in assignment space.
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
