Homework Assignments and Self-check Tools

Hey, we know that you love to do the homework, and especially to do it correctly! Here, we offer you a self-check tool to develop your code AND to check whether it works. Give it a shot!

Homework #1: Calculating Financial returns

based on Cornell ORIE 5258, taught by Irene Aldridge
  1. Pick any financial instrument
  2. Find its ticker (symbol) on Yahoo! Finance
  3. Download Yahoo daily data
  4. Compute returns
  5. Compute the following summary statistics for daily data:
    • Mean
    • Std
    • Skewness
    • Kurtosis
    • Percentiles: [0.01, 0.03, 0.05, 0.10, 0.25, 0.5, 0.75, 0.90, 0.95, 0.97, 0.99]
  6. Pretend you bought this financial instrument on December 31, 2018, and have been holding it ever since (“buy and hold”). Compute:
    • Annualized return
    • Year-to-date (YTD) return
    • Annualized Sharpe Ratio
  7. Enter your results below to see whether your code works correctly.
    • If your code does not work correctly, please try to fix it and try it again!

Test your results

Your ticker(s):
Start date:
End date:

Homework #2: Calculating Optimal Minimum-Variance Portfolio Weights

based on Cornell ORIE 5258, taught by Irene Aldridge
  1. Pick symbols of stocks, Futures, Crypto currencies that have data on Yahoo! Finance
  2. Download daily data from Yahoo! for the chosen symbols
  3. Generate minimum-variance portfolios from start date to end date, using the following techniques:
    • Ridge penalization
    • LASSO
    • Elastic Net
  4. Enter your results below to see whether your code works correctly.
    • If your code does not work correctly, please try to fix it and try it again!

Test your results

Your ticker(s):
Start date:
End date:

Not yet registered? Please Register or Login to access code and other materials complementary to the book.