Question: Please use Google Collab Python and include screenshots of the code, thank you!! You will invest in the following assets: Apple Inc. ( AAPL )

Please use Google Collab Python and include screenshots of the code, thank you!!
You will invest in the following assets:
Apple Inc. (AAPL),
The Boeing Company (BA),
The Cheesecake Factory (CAKE),
Caterpillar Inc. (CAT),
The Hershey Company (HSY),
JPMorgan Chase & Co (JPM),
McDonald's Corporation (MCD),
Starbucks Corporation (SBUX),
Tesla, Inc. (TSLA),
Visa Inc. (V).
Using the yfinance package, download the daily returns of these assets from June 1,2019(inclusive) to June 1,2024(exclusive).
Utilize the skfolio package to compute the efficient frontier of portfolios based on the assets.
The efficient frontier will consist of 300 portfolios.
Allow short-selling in the portfolios.
Set the minimum allowable asset weight to -15%.
Determine the maximum allowable asset weight such that all asset weights except one can turn out -15% in a portfolio.
Use the standard deviation of daily returns as the measure of risk.
Assume that the risk-free rate is 0%.
Consider the 300 portfolios on the efficient frontier.
Among them, you selected portfolio #75. Remember that indexing starts with 0 in Python, and portfolio #75 is the 76th portfolio on the efficient frontier.
If you had invested $25,000 in this portfolio on January 1,2020, how much would your investment be worth on June 5,2024?
Round your answer to the nearest integer.
NOTE : When you use the skfolio, empyrial, and pyfolio packages on Google Colab, install and import the skfolio package first, followed by the empyrial and pyfolio packages.

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!