Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please use any dataset. 2-Split your dataset into training and testing samples. Testing sample should include data with year>=2016. 3. Use LassoCV to run
Please use any dataset. 2-Split your dataset into training and testing samples. Testing sample should include data with year>=2016. 3. Use LassoCV to run lasso regression to predict stock monthly returns. Use the timeseriessplit for the cross validation. Run lasso regression using your new training sample and report the selected value of Alpha and coefficients on all the selected independent variables. 4. Use RidgeCV to run ridge regression to predict stock monthly returns. Use the timeseriessplit for the cross validation. Please build your own candidate values for the search of Alpha. Run ridge regression using your new training sample and report the selected value of Alpha and coefficients on all the independent variables. 5. Use ElasticNetCV to run elasticnet regression to predict stock monthly returns. Use the timeseriessplit for the cross validation. Please build your own candidate values for the search of 11_ratio. Run elasticnet regression using your new training sample and report the selected value of 11_ratio and coefficients on all the selected independent variables.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
To perform Lasso Ridge and ElasticNet regression to predict stock monthly returns youll need a dataset that contains relevant features and target variable stock returns over time Ill provide you with ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started