Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

beta =1.00 We have the following inputs into the optimization problem: RET: a 1801 vector of expected returns BETA: a 1801 vector of market betas

image text in transcribed

beta =1.00 We have the following inputs into the optimization problem: RET: a 1801 vector of expected returns BETA: a 1801 vector of market betas RF: risk-free rate =2.78% COV_MAT: a 180180 Ledoit-Wolf covariance matrix of returns. Which set of contraints do we need to provide in the Python code below? from scipy.optimize import minimize def objective(weights, Eret, RF, cov): Risk_premium = weights.T @ Eret - RF portfolio_volatility = np.sqrt(weights.T@cov @. weights) sharpe_ratio = Risk_premium / portfolio_volatility return -sharpe_ratio \# Define the constraint(s constraints = [ THS INFORMATION IS MIS SING ] \# YOU NEED TO PROVIDE THIS INFORMATION \# Initial guess initial_weights = np.repeat (1/N,N) \# Solve the optimization problem result = minimize(objective, initial_weights, args =( RET, RF, COV_MAT), method='SLSQP', constraints=constraints ) a. constraints =[ \{'type'. 'eq', 'fun': lambda x: np.sum(minimum (x,0)=0.3}, \{type': 'ineq', 'fun': lambda :x.T @ betas.MKT = 1.0\}, \{'type': 'ineq', 'fun': lambda x : np.sum(np.abs(x))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beyond Bitcoin Economics Of Digital Currencies And Blockchain Technologies

Authors: Hanna Halaburda, Miklos Sarvary, Guillaume Haeringer

2nd Edition

3030889300,3030889319

More Books

Students also viewed these Finance questions

Question

How is the efficiency of sample information computed?

Answered: 1 week ago