Tag: riskmanagement

  • Gold ETF Price Prediction using the Bayesian Ridge Linear Regression

    Gold ETF Price Prediction using the  Bayesian Ridge Linear Regression

    Featured Photo by Pixabay. Let’s set the working directory GOLD import osos.chdir(‘GOLD’) os. getcwd() and import the following libraries from sklearn.linear_model import LinearRegression import pandas as pdimport numpy as np import matplotlib.pyplot as plt%matplotlib inlineplt.style.use(‘seaborn-darkgrid’) import yfinance as yf Let’s read the dataDf = yf.download(‘GLD’, ‘2022-01-01’, ‘2023-03-25’, auto_adjust=True) Df = Df[[‘Close’]] Df = Df.dropna() Let’s…

  • Applying a Risk-Aware Portfolio Rebalancing Strategy to ETF, Energy, Pharma, and Aerospace/Defense Stocks in 2023

    Applying a Risk-Aware Portfolio Rebalancing Strategy to ETF, Energy, Pharma, and Aerospace/Defense Stocks in 2023

    In this post, we will apply the Guillen’s asset rebalancing algorithm (cf. the Python code) to the following risk-aware portfolio: stocks = [‘SPY‘, ‘XOM‘, ‘ABBV‘, ‘AZN‘, ‘LMT‘] The initial portfolio value to be allocated is portfolio_value = 10**6 and the weight allocation per asset is weights = [0.15 , 0.30, 0.40, 0.075, 0.075] Conventionally, our…

  • Revision 360 of Risk Aware Investing after SVB Collapse – 1. The Financial Sector

    Revision 360 of Risk Aware Investing after SVB Collapse – 1. The Financial Sector

    Following our recent analysis of the US banking crisis, let’s perform revision 360 of risk aware investing after the collapse of Silicon Valley Bank and Signature Bank. Clickable Table of Contents: Headlines The Guardian Mon 13 Mar 2023 06.42 GMT: Seeking Alpha Update Zacks Investment Research 15 March 2023: Stocks Close Higher On Moderating CPI…

  • Risk-Return Analysis and LSTM Price Predictions of 4 Major Tech Stocks in 2023

    Risk-Return Analysis and LSTM Price Predictions of 4 Major Tech Stocks in 2023

    The open-source Python workflow breaks down our investigation into the following 4 steps: (1) invoke yfinance to import real-time stock information into a Pandas dataframe; (2) visualize different dataframe columns with Seaborn and Matplotlib; (3) compare stock risk/return using historical data; (4) predict stock prices in 2023 with the trained LSTM model. Input Data Let’s…

  • Portfolio max(Return/Risk) Stochastic Optimization of 20 Dividend Growth Stocks

    Portfolio max(Return/Risk) Stochastic Optimization of 20 Dividend Growth Stocks

    The goal of portfolio optimization is to build a stock portfolio that yields the maximum possible return while maintaining the amount of risk you’re willing to carry. Referring to our previous case study, let’s invoke the stochastic optimization algorithm and the corresponding code to create an optimized portfolio by testing 10,000 combinations of the following…

  • Towards Max(ROI/Risk) Trading in Q1 2023

    Towards Max(ROI/Risk) Trading in Q1 2023

    In this post, we will compare 1Y ROI/Risk of selected stocks vs ETF using a set of basic stock analyzer functions. The posts consists of the following three parts: Looking at the closing price of a stock over time is a good way to track its performance We combine the risk and return metrics into…

  • The Donchian Channel vs Buy-and-Hold Breakout Trading Systems – $MO Use-Case

    The Donchian Channel vs Buy-and-Hold Breakout Trading Systems – $MO Use-Case

    Featured Photo Graham Wizardo on Pexels In fact, this algo trading Python project was inspired by the recent thread by @simply_robo Indeed, this is all about Altria Group, Inc. (NYSE: MO) – a Dividend King moving beyond smoking.   In this article, the historical data of $MO will be used to backtest and compare trading…

  • Turkey/Syria Earthquake Live Knowledge Update & Charity Guide

    Turkey/Syria Earthquake Live Knowledge Update & Charity Guide

    Today’s Earthquakes in Turkey Sunday, 12 March 2023: Turkey has had: (M1.5 or greater) The largest earthquake in Turkey: Inside Turkey’s post-earthquake homelessness crisis – BBC News: Earthquake survivors are living on the streets in Turkey, one month on from the devastating earthquakes that killed more than 50,000 people across southern Turkey and northern Syria. Past Events…

  • ECG Early Warning System (EWS) in Terms of Time-Variant Deformations and Creep-Recovery Strain Tests

    ECG Early Warning System (EWS) in Terms of Time-Variant Deformations and Creep-Recovery Strain Tests

    Featured Photo by Hernan Pauccara on Pexels Referring to an earlier stress-strain case study, the objective of this risk management project is to develop the ECG Early Warning System (EWS) based upon time-dependent viscoelastic deformations and observed creep-recovery mechanisms in the cardiac muscle. The creep-recovery test involves loading a material at constant stress, holding that…

  • Stock Market ’22 Round Up & ’23 Outlook: Zacks Strategy vs Seeking Alpha Tactics

    Stock Market ’22 Round Up & ’23 Outlook: Zacks Strategy vs Seeking Alpha Tactics

    Featured Photo by Pixabay Contents: Zacks Market Research 2022 has been a strong year for jobs: Commodity markets: Energy: Global Investments: In the Zacks October 2022 Chief Investment Officer (CIO) survey, the CIOs made it fairly clear how they felt about investing outside the US. Answer: not great. Corporate High Yield and Investment Grade Bonds:In…

  • The $ASML Trading Strategies via the Plotly Stock Market Dashboard

    The $ASML Trading Strategies via the Plotly Stock Market Dashboard

    Featured Photo by Jeremy Waterhouse. Recently, Dr. Dividend shared his insights into $ASML EUV business. This post is a follow-up based upon the highly interactive Plotly Stock Market Dashboard. Let’s import/install the key libraries !pip install pandas_datareader Successfully installed pandas_datareader-0.10.0 !pip install ta Successfully installed ta-0.10.2 import numpy as npimport pandas as pdfrom pandas_datareader import…

  • Bear vs. Bull Portfolio Risk/Return Optimization QC Analysis

    Bear vs. Bull Portfolio Risk/Return Optimization QC Analysis

    Based on the Portfolio Allocation and Optimization Algorithm discussed earlier and the related portfolio management, let’s run the Bear vs. Bull QC test of the portfolio P=[MSFT, AAPL, NDAQ] in terms of the Risk/Return Ratio (RRR). We have got a Sharpe ratio of less than one that is considered unacceptable or bad. The risk the…

  • The Zacks Steady Investor – A Quick Look  

    The Zacks Steady Investor – A Quick Look  

    Featured Photo by Bram Naus on Unsplash Let’s look at what is going on in the U.S. markets and the current Zacks’s view for investors to consider (as of Sunday, 9 October 2022).

  • Stock Portfolio Risk/Return Optimization

    Stock Portfolio Risk/Return Optimization

    Featured Image by D koi on Unsplash Following the Garcia’s exercise on how to create a portfolio testing 10,000 combinations of stocks, let’s implement the end-to-end Python stock optimization workflow that minimizes the Risk/Retun ratio with respect to a market benchmark. Such a stand alone workflow consists of the following steps: Let’s set up the…

  • Invest in AI via Macroaxis Sep ’22 Update

    Invest in AI via Macroaxis Sep ’22 Update

    Invest in AI via Macroaxis Sep ’22 Update 4 AI pillars AI thematic idea 20 stocks Asset Allocation Market Capitalization (%) Instrument Composition Market Elasticity Risk/Return Ratio Asse ratings Technical Analysis Correlation Matrix Takeaways Business headlines

  • Towards Optimized ML Wildfire Prediction

    Towards Optimized ML Wildfire Prediction: This Python case example stems from the initial research into ML/AI wildfire prediction using the dataset that was downloaded from the UCI Machine Learning Repository.

  • SeekingAlpha Risk/Reward July Rundown

    SeekingAlpha Risk/Reward July Rundown

    Lets see what SA is up to in terms of Risk/Reward as of 2022-07-25: Cryptocurrency Digest: SA Morning Briefing: SPY: Overbought Demand Testing Resistance (Technical Analysis) Wall Street Breakfast: In arguably the most important week for Wall Street this summer, with the Fed decision and GDP on tap, earnings could actually end up determining direction. There are 175…

  • Algorithmic Testing Stock Portfolios to Optimize the Risk/Reward Ratio

    Algorithmic Testing Stock Portfolios to Optimize the Risk/Reward Ratio

    Investors can optimize their stock portfolio by invoking backtesting within the realm of algorithmic trading. The goal is to optimize the specific portfolio by maximizing returns and the Sharpe ratio.

  • RISK AWARE INVESTMENT: GUIDE FOR EVERYONE 

    This is a 7-day risk aware investing/trading tour for all levels of newbies to benefit from. The goal is to answer the million-dollar question: How do I get started within 1 week (!) without prior knowledge, what to invest in – and how much? Based on an extensive stock data analysis of the largest Fortune…