Please answer these in a Python program in Google Colab.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Please answer these in a Python program in Google Colab.

Post by answerhappygod »

Please answer these in a Python program in Google Colab.
Please Answer These In A Python Program In Google Colab 1
Please Answer These In A Python Program In Google Colab 1 (255.59 KiB) Viewed 38 times
1. (5 marks) Load the "avocado_data.csv" file in to a pandas DataFrame. The response/target variable is contained in the ‘Price' column, and all other columns are predictors/features. Extract predictors and responses making sure that you include only the columns with numerical values. Scale predictors to have 0 mean and unit variance. Split your data into training and test sets. 2. (5 marks) Plot some predictors versus the price in a way you find the most convenient. Which predictors do you think will be most important? 3. (5 marks) Fit a standard multilinear regression model which uses all the predictors/features. Estimate the R2 and MSE values of your model. 4. (5 marks) Use Lasso regression to create a model which uses only four features. What is the R2 of this simpler model? 5. (10 marks) Open ended question: Using any method you wish, build a avocado price predictor with the best possible predictive power. Credit will be given for for clear coding and comments, creative and rigourous use of methods, and quality of predictions on the test.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply