Question: The function requires the quantstats package, which is not installed on Google Colab. Install the quantstats package before creating the function.The function name is MONTHLY

The function requires the quantstats package, which is not installed on Google Colab.
Install the quantstats package before creating the function.The function name is MONTHLY_RETURN and it includes the following arguments:
SYMBOLS : The symbols of the selected securities on Yahoo Finance,
FROM : The beginning date of the historic data (inclusive),
TO : The end date of the historic data (exclusive).
Download the module and upload it into Google Colab.
Notice that if you download multiple copies of the module in the same folder, your operating system will rename the copies of the module as bull(1), bull(2), etc.
Import the module, and then apply the MONTHLY_RETURN function and download the monthly returns on the following securities:
Chipotle Mexican Grill, Inc. (CMG),
Tesla Inc. (TSLA),
Cheesecake Factory Inc. (CAKE),
Spotify Technology S.A.(SPOT).
Set the beginning date of the data to Jan 31,2019(inclusive) and the end date to Feb 1,2024(exclusive).
Then use the Riskfolio-Lib library and compute the optimum portfolio that maximizes the Sharpe Ratio such that no asset weight will exceed 70%.
Use standard deviation of monthly returns as the measure of risk.
Assume that the monthly risk-free rate is 0.1%.
Allow short-selling in the optimum portfolio, and set the maximum sum of the positive weights to 150%.
money woman bag jpg-1.jpg
Suppose you will invest $45,000 in the optimum portfolio.
How much will you invest in CAKE?
Round your answer to the nearest integer.
Remember that if you own the shares, the amount must be positive.
If you loan the shares, the amount must be negative.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!