Investment Portfolio Returns
📋 Context
You manage a portfolio of 4 stocks over 6 months. You need to calculate returns, find the best performer, and assess risk using standard deviation.
1
2
3
Step 1: Create Price Data
🎯 Task
Create prices — a (6, 4) array representing 6 months of closing prices for 4 stocks:[[100,50,200,75],[105,48,210,80],[102,52,205,78],[110,55,220,85],[108,53,215,82],[115,58,230,90]]
Print it.
np.array([[100,50,200,75], ...])
⌘⏎ run · ⌘← → nav
▶ Output
Run your code to see output here.