Risk vs Reward Clusters... for the Dow Jones Stocks. Made with Python (This is how): Step 1: Collect the data Web scrape the Dow Jones stocks from Wikipedia. Download the stock prices with finance. Step 2: Calculate the moments Returns and volatility annualized (e.g. Sharpe ratio) Step 3: K-means Clustering We do this to group return/volatility profiles into groups (or clusters of stocks). Step 4: Select Optimal K The code produces an Elbow Curve. We'll select 5 clusters for the data visualization. Step 4: Plot the Risk-Reward Clusters Step 5: Investigate Clusters What do you notice? Which stocks have the best risk-reward tradeoff? What could we do to improve this analysis? Want to learn how to get started with algorithmic trading? We're hosting a free workshop on May 8th. Register here (500 seats): https://lnkd.in/gysn5qza
-
-
-
-
-
+3