<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by PredictNow.ai on Medium]]></title>
        <description><![CDATA[Stories by PredictNow.ai on Medium]]></description>
        <link>https://medium.com/@predictnow-ai?source=rss-ffb45d0feadc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9Yn-w5ozC5FKDmhGBgeXGg.png</url>
            <title>Stories by PredictNow.ai on Medium</title>
            <link>https://medium.com/@predictnow-ai?source=rss-ffb45d0feadc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:00:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@predictnow-ai/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Applying Corrective AI to Daily Seasonal Forex Trading]]></title>
            <link>https://predictnow-ai.medium.com/applying-corrective-ai-to-daily-seasonal-forex-trading-e323feec88b0?source=rss-ffb45d0feadc------2</link>
            <guid isPermaLink="false">https://medium.com/p/e323feec88b0</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[trading]]></category>
            <category><![CDATA[forex-trading]]></category>
            <category><![CDATA[forex]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[PredictNow.ai]]></dc:creator>
            <pubDate>Thu, 02 Mar 2023 19:51:57 GMT</pubDate>
            <atom:updated>2023-03-02T19:51:57.561Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CrjF2O-_mKQyyD4mdXsEig.jpeg" /></figure><p>By Sergei Belov (1), Ernest Chan (1), Nahid Jetha (2), and Akshay Nautiyal (1)</p><p>1 Predictnow.ai Inc. <a href="http://www.predictnow.ai/">www.predictnow.ai</a><br>2 QTS Capital Management, LLC. <a href="http://www.qtscm.com/">www.qtscm.com</a></p><h4>ABSTRACT</h4><p>We applied<a href="https://predictnow.ai/what-is-corrective-ai/"> Corrective AI</a> (Chan, 2022) to a trading model that takes advantage of the intraday seasonality of forex returns. Breedon and Ranaldo (2012) observed that foreign currencies depreciate vs. the US dollar during their local working hours and appreciate during the local working hours of the US dollar. We first backtested the results of Breedon and Ranaldo on recent EURUSD data from September 2021 to January 2023 and then applied Corrective AI to this trading strategy to achieve a significant increase in performance.</p><p>Breedon and Ranaldo (2012) described a trading strategy that shorted EURUSD during European working hours (3 AM ET to 9 AM ET, where ET denotes the local time in New York, accounting for daylight savings) and bought EURUSD during US working hours (11 AM ET to 3 PM ET). The rationale is that large-scale institutional buying of the US dollar takes place during European working hours to pay global invoices and the reverse happens during US working hours. Hence this effect is also called the “invoice effect”.</p><p>There is some supportive evidence for the time-of-the-day patterns in various measures of the forex market like volatility (see Baille and Bollerslev(1991), or Andersen and Bollerslev(1998)), turnover (see Hartman (1999), or Ito and Hashimoto(2006)), and return (see Cornett(1995), or Ranaldo(2009)). Essentially, local currencies depreciate during their local working hours for each of these measures and appreciate during the working hours of the United States.</p><p>Figure 1 below describes the average hourly return of each hour in the day over a period starting from 2019–10–01 17:00 ET to 2021–09–01 16:00 ET. It reveals the pattern of returns in EURUSD. The return pattern in the above-described “working hours’’ reconciles with the hypothesis of a prevalent “invoice effect” broadly. Returns go down during European working and up during US working hours.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/0*Y89H0hKHb-jPUhRr" /><figcaption>Figure 1: Average EURSUD return by time of day (New York time)</figcaption></figure><p>As this strategy was published in 2012, it offers ample time for true out-of-sample testing. We collected 1-minute bar data of EURUSD from Electronic Broking Services (EBS) and performed a backtest over the out-of-sample period October 2021-January 2023. The Sharpe Ratio of the strategy in this period is 0.88, with average annual returns of 3.5% and a maximum drawdown of -3.5%. The alpha of the strategy apparently endured. (For the purpose of this article, no transaction costs are included in the backtest because our only objective is to compare the performances with and without Corrective AI, not to determine if this trading strategy is viable in live production.)</p><p>Figure 2 below shows the equity curve (“growth of $1”) of the strategy during the aforementioned out-of-sample period. The cumulative returns during this period are just below 8%. We call this the “Primary” trading strategy, for reasons that will become clear below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/0*CUR2iMsqKHXbIXi8" /><figcaption>Figure 2: Equity curve of Primary trading strategy in out-of-sample period</figcaption></figure><h4>What is Corrective AI?</h4><p>Suppose we have a trading model (like the Primary trading strategy described above) for setting the side of the bet (long or short). We just need to learn the size of that bet, which includes the possibility of no bet at all (zero sizes). This is a situation that practitioners face regularly. A machine learning algorithm (ML) can be trained to determine that. To emphasize, we do not want the ML algorithm to learn or predict the side, just to tell us what is the appropriate size.</p><p>We call this problem meta-labeling (Lopez de Prado, 2018) or Corrective AI (Chan, 2022) because we want to build a secondary ML model that learns how to use a primary trading model.</p><p>We train an ML algorithm to compute the “Probability of Profit” (PoP) for the next minute-bar. If the PoP is greater than 0.5, we will set the bet size to 1; otherwise we will set it to 0. In other words, we adopt the step function as the bet sizing function that takes PoP as an input and gives the bet size as an output, with the threshold set at 0.5. This bet sizing function decides whether to take the bet or pass, a purely binary prediction.</p><p>The training period was from 2019–01–01 to 2021–09–30 while the out-of-sample test period was from 2021–10–01 to 2023–01–15, consistent with the out-of-sample period we reported for the Primary trading strategy. The model used to train ML algorithm was done using the predictnow.ai Corrective AI (CAI) API, with more than a hundred pre-engineered input features (predictors). The underlying learning algorithm is a gradient-boosting decision tree.</p><p>After applying Corrective AI, the Sharpe Ratio of the strategy in this period is 1.29 (an increase of 0.41), with average annual returns of 4.1% (an increase of 0.6%) and a maximum drawdown of -1.9% (a decrease of 1.6%). The alpha of the strategy is significantly improved.</p><p>The equity curve of the Corrective AI filtered secondary model signal can be seen in the figure below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/0*AA1UvecnPK1ylxHX" /><figcaption>Figure 3: Equity curve of Corrective AI model in out-of-sample period</figcaption></figure><p>Features used to train the Corrective AI model include technical indicators generated from indices, equities, futures, and options markets. Many of these features were created using <a href="https://www.algoseek.com/">Algoseek</a>’s high-frequency futures and equities data. More discussions of these features can be found in (Nautiyal &amp; Chan, 2021).</p><h4>Conclusion:</h4><p>By applying Corrective AI to the time-of-the-day Primary strategy, we were able to improve the Sharpe ratio and reduce drawdown during the out-of-sample backtest period. This aligns with observations made in the literature on meta-labeling for our primary strategies. The Corrective AI model’s signal filtering capabilities do enhance performance in specific scenarios.</p><h4>Acknowledgment</h4><p>We are grateful to Chris Bartlett of Algoseek, who generously provided much of the high-frequency data for our feature engineering in our Corrective AI system. We also thank Pavan Dutt for his assistance with feature engineering and to Jai Sukumar for helping us use the Predictnow.ai CAI API. Finally, we express our appreciation to Erik MacDonald and Jessica Watson for their contributions in explaining this technology to Predictnow.ai’s clients</p><h4><strong>References</strong></h4><p>Breedon, F., &amp; Ranaldo, A. (2012, April 3). <em>Intraday Patterns in FX Returns and Order Flow</em>. <a href="https://ssrn.com/abstract=2099321">https://ssrn.com/abstract=2099321</a></p><p>Chan, E. (2022, June 9). <em>What is Corrective AI?</em> PredictNow.ai. Retrieved February 23, 2023, from <a href="https://predictnow.ai/what-is-corrective-ai/">https://predictnow.ai/what-is-corrective-ai/</a></p><p>Lopez de Prado, M. (2018). <em>Advances in Financial Machine Learning</em>. Wiley.</p><p>Nautiyal, A., &amp; Chan, E. (2021). <em>New Additions to the PredictNow.ai Factor Zoo</em>. PredictNow.ai. Retrieved February 28, 2023, from <a href="https://predictnow.ai/new-additions-to-the-predictnow-ai-factor-zoo/">https://predictnow.ai/new-additions-to-the-predictnow-ai-factor-zoo/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e323feec88b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Conditional Portfolio Optimization: Using machine learning to adapt capital allocations to market…]]></title>
            <link>https://predictnow-ai.medium.com/conditional-portfolio-optimization-using-machine-learning-to-adapt-capital-allocations-to-market-9034afe5a164?source=rss-ffb45d0feadc------2</link>
            <guid isPermaLink="false">https://medium.com/p/9034afe5a164</guid>
            <category><![CDATA[portfolio-management]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[market-strategy]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[capital-allocation]]></category>
            <dc:creator><![CDATA[PredictNow.ai]]></dc:creator>
            <pubDate>Fri, 30 Sep 2022 16:54:46 GMT</pubDate>
            <atom:updated>2022-09-30T16:55:01.267Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TAjkD8mOlMch4QoRtBvuWA.jpeg" /></figure><h3>Conditional Portfolio Optimization: Using machine learning to adapt capital allocations to market regimes</h3><h3>By Ernest Chan, Ph.D., Haoyu Fan, Ph.D., Sudarshan Sawal, and Quentin Viville, Ph.D.</h3><p>Previously on this blog, we wrote about a machine-learning-based parameter optimization technique we invented, called <a href="https://predictnow.ai/blog/conditional-parameter-optimization-adapting-parameters-to-changing-market-regimes/">Conditional <strong><em>Parameter</em></strong> Optimization</a> (CPO). It appeared to work well on optimizing the operating parameters of trading strategies, but increasingly, we found that its greatest power lies in its potential to optimize <em>portfolio allocations</em>. We call this Conditional <strong><em>Portfolio</em></strong> Optimization (which fortuitously shares the same acronym).</p><p>Let’s recap what Conditional Parameter Optimization is. Traditionally, optimizing the parameters of any business process (such as a trading strategy) is a matter of finding out what parameters give an optimal outcome over past data. For example, setting a stop loss of 1% gave the best Sharpe ratio for a trading strategy backtested over the last 10 years. Or running the conveyor belt at 1m per minute led to the lowest defect rate in a manufacturing process. Of course, the numerical optimization procedure can become quite complicated based on a number of different factors. For example, if the number of parameters is large, or if the objective function that relates the parameters to the outcome is nonlinear, or if there are numerous constraints on the parameters. There are already standard methods to handle these difficulties.</p><p>What concerns us at PredictNow.ai, is when the objective function is not only nonlinear, but also depends on external time varying and stochastic conditions. In the case of a trading strategy, the optimal stop loss may depend on the market regime, which may not be clearly defined. In the case of a manufacturing process, the optimal conveyor belt rate may depend on dozens of sensor readings. Such objective functions mean that traditional optimization methods do not usually give the optimal results under a particular set of external conditions.Furthermore, even if you specify that exact set of conditions, the outcome is not deterministic. What better method than machine learning to solve this problem!</p><p>By using machine learning, we can approximate this objective function using a neural network, by training its many nodes using historical data. (Recall that a neural network is able to <a href="https://en.wikipedia.org/wiki/Universal_approximation_theorem">approximate almost any function</a>, but you can use many other machine learning algorithms instead of neural networks for this task). The inputs to this neural network will not only include the parameters that we originally set out to optimize, but also the vast set of features that measure the external conditions. For example, to represent a “market regime”, we may include market volatility, behaviors of different market sectors, macroeconomic conditions, and many other input features. To help our clients efficiently run their models, Predictnow.ai provides <a href="https://predictnow.ai/blog/new-additions-to-the-predictnow-ai-factor-zoo-2/">hundreds of such market features</a>. The output of this neural network would be the outcome you want to optimize. For example, maximizing the future 1-month Sharpe ratio of a trading strategy is a typical outcome. In this case you would feed historical training samples to the neural network that include the trading parameters, the market features, plus the resulting forward 1-month Sharpe ratio of the trading strategy as “labels” (i.e. target variables). Once trained, this neural network can then predict the future 1-month Sharpe ratio based on any hypothetical set of trading parameters and the current market features.</p><p>With this method, we “only need” to try different sets of hypothetical parameters to see which gives the best Sharpe ratio and adopt that set as the optimal. We put “only need” in quotes because of course if the number of parameters is large, it can take very long to try out different sets of parameters to find the optimal. Such is the case when the application is<em> portfolio optimization</em>, where the parameters represent the capital allocations to different components of a portfolio. These components could be stocks in a mutual fund, or trading strategies in a hedge fund. For a portfolio that holds S&amp;P 500 stocks, for example, there will be up to 500 parameters. In this case, during the training process, we are supposed to feed into the neural network <em>all possible combinations</em> of these 500 parameters, plus the market features, and find out what the resulting 5- or 20-day return, or Sharpe ratio, or whatever performance metric we want to maximize. <em>All possible combinations</em>? If we represent the capital weight allocated to each stock as w ∈ [0, 1], assuming we are not allowing short positions, the search space has w500=[0, 1]500 combinations, even with discretization, and our computer will need to run till the end of the universe to finish. Overcoming this curse of dimensionality is one of the major breakthroughs the Predictnow.ai team has accomplished with Conditional Portfolio Optimization.</p><p>To measure the value Conditional Portfolio Optimization adds, we need to compare it with alternative portfolio optimization methods. The default method is Equal Weights: applying equal capital allocations to all portfolio components. Another simple method is the Risk Parity method, where the capital allocation to each component is inversely proportional to its returns’ volatility. It is called Risk Parity because each component is supposed to contribute an equal amount of volatility, or risk, to the overall portfolio’s risk. This assumes zero correlations among the components’ returns, which is of course unrealistic. Then there is the Markowitz method, also known as Mean-Variance optimization. This well-known method, which earned Harry Markowitz a Nobel prize, maximizes the Sharpe ratio of the portfolio based on the historical means and covariances of the component returns. The optimal portfolio that has the maximum historical Sharpe ratio is also called the <em>tangency portfolio</em>. I wrote about this method in a previous <a href="http://epchan.blogspot.com/2014/08/kelly-vs-markowitz-portfolio.html">blog post</a>. It certainly doesn’t take into account market regimes or any market features. It is also a vagrant violation of the familiar refrain, “Past Performance is Not Indicative of Future Results”, and is known to produce all manners of unfortunate instabilities (see <a href="https://www.amazon.com/dp/0199959323/ref=as_sl_pc_tf_til?tag=quantitativet-20&amp;linkCode=w00&amp;linkId=&amp;creativeASIN=0199959323">here</a> or <a href="https://amzn.to/3r7y2FA">here</a>). Nevertheless, it is the standard portfolio optimization method that most asset managers use. Finally, there is the Minimum Variance portfolio, which uses Markowitz’s method not to maximize the Sharpe ratio, but to minimize the variance (and hence volatility) of the portfolio. Even though this does not maximize its past Sharpe ratio, it often results in portfolios that achieve better forward Sharpe ratios than the tangency portfolio! Another case of “Past Performance is Not Indicative of Future Results”.</p><p>Let’s see how our Conditional Portfolio Optimization method stacks up against these conventional methods. For an unconstrained optimization of the S&amp;P 500 portfolio, allowing for short positions and aiming to maximize its 7-day forward Sharpe ratio,</p><figure><img alt="Sharpe Ratio results from the Markowitz (0.31) vs CPO (0.96) method when applied to a S&amp;P 500 portfolio." src="https://cdn-images-1.medium.com/max/760/1*-TSDyiUJIFHgiNiikpANoQ.png" /><figcaption>CPO Figure 1</figcaption></figure><p>(These results are over an out-of-sample period from July 2011 to June 2021, and the universe of stocks for the portfolio are those that have been present in the SP 500 index for at least 1 trailing month. The Sharpe Ratio we report in this and the following tables are all annualized). <strong>CPO improves the Sharpe ratio over the Markowitz method by a factor of 3.1</strong>.</p><p>Then we test our CPO performs for an ETF (TSX: MESH) given the constraints that we cannot short any stock, and the weight w of each stock obeys w ∈ [0.5%, 10%],</p><figure><img alt="CPO methodology applied to a ETF" src="https://cdn-images-1.medium.com/max/1024/1*170TKfAqAq0QdZl9n1YncA.png" /><figcaption>CPO Figure 2</figcaption></figure><p>CPO performed similarly to the Markowitz method in the bull market, but remarkably, it was able to switch to defensive positions and has beaten the Markowitz method in the bear market of 2022. <strong>It improves the Sharpe ratio over the Markowitz portfolio by more than 60% in that bear market.</strong> That is the whole rationale of <em>Conditional </em>Portfolio Optimization — it adapts to the expected future external conditions (market regimes), instead of blindly optimizing on what happened in the past.</p><p>Next, we tested the CPO methodology on a private investor’s tech portfolio, consisting of 7 US and 2 Canadian stocks, mostly in the tech sector. The constraints are that we cannot short any stock, and the weight w of each stock obeys w ∈ [0%, 25%],</p><figure><img alt="CPO methodology applied to a private investor’s tech portfolio." src="https://cdn-images-1.medium.com/max/1024/1*ssmg3Aq6ccp3pegUnXVdtA.png" /><figcaption>CPO Figure 3</figcaption></figure><p>CPO performed better than both alternative methods under all market conditions. In particular,<strong> it improves the Sharpe ratio over the Markowitz portfolio by 75% in the bear market.</strong></p><p>We also tested how CPO performs for some unconventional assets — a portfolio of 8 crypto currencies, again allowing for short positions and aiming to maximize its 7-day forward Sharpe ratio,</p><figure><img alt="Sharpe Ratio results from the Markowitz (0.26) vs CPO (1.0) method when applied to a cryptocurrency portfolio." src="https://cdn-images-1.medium.com/max/886/1*eBRq0PHG_5lLxsC2cYC8CA.png" /><figcaption>CPO Figure 4</figcaption></figure><p>(These results are over an out-of-sample period from January 2020 to June 2021, and the universe of cryptocurries for the portfolio are BTCUSDT, ETHUSDT, XRPUSDT, ADAUSDT, EOSUSDT, LTCUSDT, ETCUSDT, XLMUSDT). <strong>CPO improves the Sharpe ratio over the Markowitz method by a factor of 3.8</strong>.</p><p>Finally, to show that CPO doesn’t just work on portfolios of assets, we apply it to a portfolio of FX trading strategies traded live by a proprietary trading firm WSG. It is a portfolio of 7 trading strategies, and the allocation constraints are w ∈ [0%, 40%],</p><figure><img alt="Sharpe Ratio results from the Equal Weights (1.44) vs Markowitz (0.26) vs CPO (1.0) method when applied to a FX trading strategies portfolio" src="https://cdn-images-1.medium.com/max/892/1*xWDY2L7i74jHUfd8Ax_4Yw.png" /><figcaption>CPO Figure 5</figcaption></figure><p>(These results are over an out-of-sample period from January 2020 to July 2022). <strong>CPO improves the Sharpe ratio over the Markowitz method by 19%.</strong></p><p>In all 5 cases, CPO was able to outperform the naive Equal Weights portfolio and the Markowitz portfolio during a downturn in the market, while generating similar performance during the bull market.</p><p>For clients of our CPO technology, we can add specific constraints to the desired optimal portfolio, such as average ESG rating, maximum exposure to various sectors, or maximum turnover during portfolio rebalancing. The only input we require from them is the historical returns of the portfolio components (unless these components are publicly traded assets, in which case clients only need to tell us their tickers). Predictnow.ai will provide pre-engineered market features that capture market regime information. If the client has proprietary market features that may help predict the returns of their portfolio, they can merge those with ours as well. Clients’ features can remain anonymized. We will be providing an API for clients who wish to experiment with various constraints and their effects on the optimal portfolio.</p><p>If you’d like to learn more, please join us for our Conditional Portfolio Optimization webinar on Thursday, October 22, 2022, at 12:00 pm New York time. Please register <a href="https://www.predictnow.ai/webinar/">here</a>.</p><p>In the meantime, if you have any questions, please email us at info@predictnow.ai.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9034afe5a164" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The demise of Zillow Offers: It’s not AI’s fault!]]></title>
            <link>https://predictnow-ai.medium.com/the-demise-of-zillow-offers-its-not-ai-s-fault-a27b769e5c43?source=rss-ffb45d0feadc------2</link>
            <guid isPermaLink="false">https://medium.com/p/a27b769e5c43</guid>
            <category><![CDATA[zillow]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[predictions]]></category>
            <category><![CDATA[adverse-selection]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[PredictNow.ai]]></dc:creator>
            <pubDate>Fri, 22 Jul 2022 14:06:05 GMT</pubDate>
            <atom:updated>2022-07-22T14:06:05.760Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tAPEp1w51TPgoV825SDd4A.jpeg" /></figure><h4><strong>By Ernest Chan, founder, PredictNow.ai Inc.</strong></h4><p>The story is now familiar: Zillow Group built a home price prediction system based on AI in order to become a market-maker in the housing industry. As a market maker, the goal is simply to buy low and sell high, quickly, and with minimal transaction cost. <a href="https://www.geekwire.com/2022/commentary-how-homeowners-defeated-zillows-ai-ultimately-leading-to-zillow-offers-demise/">Backtests </a>showed that its AI model’s predictive accuracy was over 96% (Hat tip: Peter U., for that article). In reality, though, it lost half a billion dollars.</p><p>This is a cautionary tale for anyone using AI to predict prices or returns, including those of us in more liquid markets than housing. Despite Zillow’s failure, the root cause of this discrepancy between backtest and live market-making is well-known, and it has nothing to do with machine learning or AI. Their failure was due to <em>adverse selection</em>, which can happen to any market maker, whether human or machine. In this context, “market maker” is used in a broad sense — a market maker provides liquidity to the market using limit orders. For instance, any mean-reversion trader is a market maker. As long as the market maker is trading against a counterparty who has more information (a.k.a. the “informed trader”), adverse selection will take money away from the market maker and give it to the informed trader. This is because as market makers, the only model is to buy when prices are cheap, no matter why they are cheap. In contrast, the informed traders may know why the asset is cheap and if it will get cheaper, so they are happy to sell to a market maker. In the opposite situation, if the informed traders believe that the current prices are cheap, but will get higher, they will refrain from selling. In this case, the limit order will not get executed, and market makers suffer from “opportunity cost”. In Zillow’s case, the informed traders are the homeowners who have a better understanding of the value of their own home due to qualitative factors (e.g. views, interior design, neighborhood safety, etc.) outside of Zillow’s model.</p><p>In my book <a href="https://www.amazon.com/gp/product/1119219604/ref%3Das_li_tl?ie=UTF8&amp;tag=quantitativet-20&amp;camp=1789&amp;creative=9325&amp;linkCode=as2&amp;creativeASIN=1119219604&amp;linkId=5da06f55eeba446e001985e48562d03a">Machine Trading</a>, I wrote, “Adverse selection happens when prices on average go down after we buy something, and go up when we sell something”. Therefore, adverse selection can be measured quite easily by computing the difference between the (paper) P&amp;L of unfilled orders and the P&amp;L of filled orders over a short time frame. In order to determine whether your AI predictive model will work in reality, it is ideal to deploy it live in a small capacity, and measure the differences over time. If there is significant adverse selection, the trader can always choose not to participate in the market. For example, it is legendary that high frequency traders stopped providing liquidity to the market during extreme events such as flash crashes. Traders don’t want to be the suckers at the game. Unfortunately for Zillow, they weren’t aware of the well-practiced art of market making.</p><p>Another common way to reduce adverse selection is to keep a close tab on your inventory. If, in a short period of time, inventory suddenly changes significantly compared to average trends, it may indicate that there is new information arriving on the market that you are not aware of (e.g. mortgage rate going up by 1%). In this situation, it would be wise to cancel your limit orders until the coast clears. For a mathematical interpretation of this concept, view the formulation by <a href="https://www.math.nyu.edu/~avellane/HighFrequencyTrading.pdf">Avellaneda and Sasha</a>. Inventory management was a key technique that Zillow did not adopt, which could have minimized their adverse selection risk.</p><p>AI has been a major asset in numerous business processes, including market making, but it is just one part of complex production machinery. As we can see from Zillow’s use case, predictions, even accurate ones, are not enough to generate profits. As I explained in my previous <a href="https://predictnow.ai/blog/what-is-corrective-ai/">blog post</a>, we at Predictnow.ai don’t think that AI is the be-all and end-all of decision making. Instead, we believe the value of AI lies in its ability to correct human-made decisions. But, an even larger lesson here is that experts in one industry (e.g. housing) can benefit from the knowledge of experts in another industry (e.g. quantitative finance). This transdisciplinary knowledge is exactly what Predictnow.ai offers enterprises to improve and enhance their processes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a27b769e5c43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Corrective AI?]]></title>
            <link>https://predictnow-ai.medium.com/what-is-corrective-ai-61a299db01?source=rss-ffb45d0feadc------2</link>
            <guid isPermaLink="false">https://medium.com/p/61a299db01</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[optimization-algorithms]]></category>
            <category><![CDATA[corrective-ai]]></category>
            <dc:creator><![CDATA[PredictNow.ai]]></dc:creator>
            <pubDate>Thu, 09 Jun 2022 16:22:08 GMT</pubDate>
            <atom:updated>2022-06-09T16:22:08.614Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f4omLaMPfq8GBUFviaLV8Q.png" /></figure><h4><em>Ernest Chan, founder, PredictNow.ai Inc.</em></h4><p>When it comes to machine learning, the holy grail is Artificial General Intelligence; essentially cloning a silicon replica of a human being capable of making autonomous decisions. Unfortunately, (or fortunately depending on your point of view), this technology is still far off. For instance, despite the billions of R&amp;D dollars spent on building fully autonomous vehicles, we are yet to find many of them driving around our neighborhoods. (A sobering assessment of Tesla Fully Self Driving capability, <a href="https://www.cnn.com/2021/11/18/cars/tesla-full-self-driving-brooklyn/index.html">here</a><a href="https://www.cnn.com/2021/11/18/cars/tesla-full-self-driving-brooklyn/index.html.)">)</a>. On the other hand, these days we can hardly buy a new car without a fully loaded set of assisted driving technologies.</p><p>The same is true in asset management. I have spent decades researching machine learning and applying it to fully autonomous trading systems at various financial institutions including IBM’s Watson Lab, Morgan Stanley’s AI group, and the hedge fund I founded. If this application had been a resounding success, I would be too busy sipping champagne on my superyacht to write about this! The reality is that <a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3031282">few funds have found success in this endeavor</a>. But, a few years ago, I learned that there was a much more pragmatic way to deploy machine learning to commercial problems that does not require decades of patience. It is already here.</p><p>PredictNow.ai believes that <strong>AI is much more effective in correcting erroneous decisions made by humans or other simple algorithms, than in making them from scratch.</strong> This is a concept that we call “Corrective AI”.</p><p>When we learned of this concept from the financial machine learning expert Dr. Marcos Lopez de Prado, (who described it using a more technical term “metalabelling”) we immediately tested it on our fund’s crisis alpha strategy in late 2019. To our amazement, it made 3 consequential, and most importantly, <strong><em>correct</em></strong> predictions on that strategy. From November 2019 to January 2020, Corrective AI told us that we shouldn’t expect any crisis in the market, and therefore shouldn’t run our crisis alpha strategy. Investors thought we were asleep during those three months and grew concerned. Starting in early February, 2020, the strategy suddenly flashed red and told us to expect a crisis and recommended trading at full leverage. The subsequent COVID-induced financial crisis led to about 80% gross return in the next few months. But Corrective AI was not done yet. In early November 2020, it once again told us that we shouldn’t expect any more crisis. A few days later, on November 9, Pfizer and BioNTech announced their vaccine.</p><p>After witnessing the shocking effectiveness and the general applicability of this approach, I decided to launch a new company called Predictnow.ai to commercialize it and take it beyond finance. (I’ve since hired a new CEO to take over management of our fund, which is in its fifth consecutive profitable year partly due to Corrective AI.) After all, <a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3031282">asset management is the most challenging use case for AI</a>, though it is projected to be a $2.7 billion market in 10 years. If Corrective AI worked for us in asset management with its ultra-low signal-to-noise and ultra-competitive arbitrage environment, surely it would work even better in other enterprise applications!</p><p><strong>Corrective AI Across Industries</strong></p><p>You may wonder what domain expertise we have outside of asset management to make experts in those domains listen to us. That was also what people thought when the legendary physicist Richard Feynman was asked to sit on the commission that <a href="https://en.wikipedia.org/wiki/Richard_Feynman#Challenger_disaster">investigated the Space Shuttle Challenger’s disaster</a>. What did Feynman know that thousands of NASA’s aeronautical experts didn’t? Feynman wasn’t even an aeronautical engineer! But it turned out his unique and simple insight was right: the O-rings that sealed the rockets lost resilience in cold weather. I am no Richard Feynman (though I did graduate from the physics Ph.D. program where he was a professor), but similarly, our team is able to bring a fresh point of view to problems outside of our domain to surprise the experts.</p><p>One example of this includes our work with the principals of an <strong>oil exploration</strong> firm. Prior to our Corrective AI approach, they used a simple formula with just a small handful of variables to predict the productivity of an oil well. After studying their data we discovered that these data actually have multiple dimensions. Instead of using just a few variables, they could be incorporating 400,000 of them! This much larger data set could allow us to potentially make more accurate predictions of oil well productivity. Note that we are not asking the experts to replace their existing formula, which is well-known and well-trusted in the oil industry — we are only correcting it. <a href="https://www.mordorintelligence.com/industry-reports/ai-market-in-oil-and-gas">AI for oil and gas exploration alone will be a $5.7B market</a> in the next 10 years.</p><p>Similarly, semiconductor manufacturers often use an expert system, handcrafted by process engineers and including many rules to predict the outcome of a manufacturing process. This system is like the old computer programs that played Go — they played well against amateurs, but not against champions. But then DeepMind’s AlphaGo machine learning program came along and defeated the best human players. Instead of using rules created by experts, AlphaGo learned from past moves to win future games all by itself. In an attempt to replicate this success in manufacturing, we are in discussions with the Head of Production Control and the Head of AI of a <strong>major semiconductor manufacturer</strong> about how Corrective AI can learn from a much larger set of predictors and make real-time adjustments to their manufacturing process. More generally, the AI market for manufacturing that includes semiconductors, automobiles, consumer goods, and aerospace and defense exceeds $1.6 billion today, with much room for growth.</p><p>In practically every enterprise, there will be opportunities for Corrective AI to improve their process. Our goal is to apply our patent-pending optimization technique delivered via a common SaaS platform, but with bespoke input features, to all of them.</p><p><strong>Deep Tech, Early Success</strong></p><p>Naturally, because of our domain expertise in finance, we have created our earliest product and found the earliest success in the asset management industry. We launched our SaaS platform for asset managers to correct their investment decisions, and have 30 paying customers using it to date. These subscribers range from professional traders to institutional fund managers, spanning both traditional and crypto asset classes. Some of them even signed profit sharing agreements with us.</p><p>New users to our platform are often surprised to find that we don’t use the much-hyped deep learning technique that, for example, AlphaGo used. Researchers have found that deep learning, while enormously successful in image and speech recognition and other natural language processing tasks, is not well-suited to most commercial data sets (including most financial data sets). Such data are often “heterogeneous”. (See for example, “<a href="https://arxiv.org/abs/2106.03253">Tabular Data: Deep Learning is Not All You Need</a>” by Shwartz-Ziv and Armon, 2021.) Furthermore, deep learning tends to require a much larger data set than is available in commercial use cases, and often requires a much longer time to train than the Corrective AI technique we use. Another advantage of our technique is “explainability” — we have published multiple papers on how we can offer better intuition to the human operators of what input features are really important to the predictions. (See “<a href="https://jfds.pm-research.com/content/3/1/127">The Best Way to Select Features?</a>” by Man and Chan, 2020, and “<a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3880641">Cluster-based Feature Selection</a>” by Man and Chan, 2021.) Ultimately, we have gone beyond merely “correcting decisions’’ to “improving decisions’’ — i.e. optimizing the parameters of a commercial process via our patent-pending technique called <a href="https://predictnow.ai/blog/conditional-parameter-optimization-adapting-parameters-to-changing-market-regimes/">Conditional Parameter Optimization</a>.</p><p>In the process of serving asset managers, we learned another key success factor in commercializing AI. No matter how good your algorithm is, it is useless to the customer unless accompanied with pre-engineered input features, customized to each application domain. For asset managers, we created over <a href="https://predictnow.ai/blog/new-additions-to-the-predictnow-ai-factor-zoo-2/">600 such features in traditional markets</a>, and over <a href="https://predictnow.ai/blog/800-new-crypto-features/">800 such features in crypto markets</a>. It requires our deep domain expertise to create these features, but many of our customers find them to be our most compelling value proposition. The same phenomenon is happening in our proof-of-concept with our oil exploration partner. Recall that they thought they had just a handful of input features to predict oil well productivity, but one of our data scientists with geological engineering expertise showed them how we can create hundreds of thousands of them.</p><p>All of our research and product development successes were accomplished by a small team of approximately 7 engineers. We are still raising a pre-seed round of $1M, though 85% is already subscribed. Despite our early stage, we have no difficulty attracting amazing talent: among them a math Ph.D. from MIT and an optimization Ph.D. from UC Berkeley. To deploy Corrective AI in each new industry vertical, we will need to hire an engineer with specific domain expertise to create pre-engineered features. It sounds difficult especially amidst the <a href="https://venturebeat.com/2021/04/19/survey-finds-talent-gap-is-slowing-enterprise-ai-adoption/">reported shortage of AI talent</a>, even major enterprises <a href="https://www.nytimes.com/2018/04/19/technology/artificial-intelligence-salaries-openai.html">have difficulty</a> competing with Big Tech for such talent. But because of the high visibility of our published research and educational materials (including highly acclaimed <a href="https://epchan.com/books/">books</a> released by a major publisher), engineers and data scientists from various verticals often show up (virtually) at our door. We are also able to attract tech and asset management leaders to become our early investors, such as the co-founders of <a href="https://www.dvtrading.co/">DV Trading</a> and the founder of <a href="https://solace.com/">Solace</a> (you would not have heard of Solace unless you are the CEO of a major bank or a senior executive in the semiconductor industry). These investors haven’t just made passive investments in us, they continue to introduce C-level contacts and refer former board members and senior executives from their own organizations to assist us. Even the former CTO of Thomson Reuters has joined our board.</p><p>PredictNow.ai already uses machine learning to correct investment decisions for multiple users everyday. Replicating that success in another vertical requires a little imagination but no leap of faith.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61a299db01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[800+ New Crypto Features]]></title>
            <link>https://predictnow-ai.medium.com/800-new-crypto-features-fecc6ecc5ee?source=rss-ffb45d0feadc------2</link>
            <guid isPermaLink="false">https://medium.com/p/fecc6ecc5ee</guid>
            <category><![CDATA[cryptocurrency-investment]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[investment-planning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[PredictNow.ai]]></dc:creator>
            <pubDate>Tue, 25 Jan 2022 00:47:10 GMT</pubDate>
            <atom:updated>2022-01-25T00:47:10.900Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fmVnz_e_6BPf2LcuNPsAOA.png" /></figure><p><em>By Quentin Viville, Sudarshan Sawal, and Ernest Chan</em></p><p>PredictNow.ai is excited to announce that we’re expanding our feature zoo to cover crypto features! This follows our work on US <a href="https://predictnow.ai/blog/new-additions-to-the-predictnow-ai-factor-zoo-2/">stock features, and features based on options activities, ETFs, futures, and macroeconomic indicators</a>. These new crypto features can be used as input to our machine-learning API to help improve your trading strategy. In this blog we have outlined the new crypto features as well as demonstrated how we have used them for short term alpha generation and crypto portfolio optimization.</p><p>Our new crypto features are designed to capture market activity from subtle movements to large overarching trends. These features will quantify the variations of the price, the return, the order flow, the volatility and the correlations that appear among them.</p><p>To create these features, we first constructed the <strong>Base Features </strong>using raw market data that includes microstructure information. Next, we applied simple mathematical functions such as exponential moving average to create the <strong>Final Features.</strong></p><h3><strong>Base Features:</strong></h3><h4>The Base Features are constructed using Binance’s dollar bar data, which includes:</h4><ul><li>Open</li><li>High</li><li>Low</li><li>Close</li><li>Volume</li><li>Order flow (sum of signed volumes) (+ve volume for buy aggressor tag and -ve volume for sell aggressor tag)</li><li>Buy market order value (sum of volumes corresponding to buy aggressor tag)</li><li>Sell market order value (sum of volumes corresponding to sell aggressor tag)</li></ul><h4>Base Features are based on:</h4><ol><li>Relations between the price, the high price, the low price.</li></ol><ul><li>Relative High: High Price relative to Open Price</li><li>Relative Low: Low Price relative to Open Price</li><li>Relative Close: Close Price relative to Open Price</li><li>Relative Volume: Buy orders relative to total absolute volume</li><li>Target Effort: computes an estimation of the “effort” that the price has to produce to reach the target price by comparing the observed low price and high price</li></ul><p>2. Volume exchanged.</p><ul><li>Dollar Speed: Average signed quantity of dollars exchanged per second.</li></ul><p>3. Relations and potential correlations among the variations of the price, the order flow and the intensity of the activity in the market.</p><ul><li>Kyle’s Lambda: Relation between price change and orderflow</li><li>SCOF: Correlation of Order Flow with its lagged series</li><li>VPIN: Volume-synchronized probability of informed trading.</li></ul><p>4. Volatility observed.</p><ul><li>VLT: Volatility of the returns (Exponentially Weighted)</li></ul><p>Each feature is associated with a ‘time span’, or lookback period, which helps capture market activity across multiple time frames.</p><h3><strong>Final Features:</strong></h3><p>Once we generated the Base Features, a new, varied set of features was derived called the<strong> </strong>Final Features<strong>.</strong> These Final Features are transformations of the initial<strong> </strong>Base Features<strong><em> </em></strong>into exponentially moving averages and probabilities over many time periods.</p><p>This approach has allowed us to produce a large set of<strong> </strong>Final Features (<strong>879</strong> <strong>features </strong>to be exact), which can capture and quantify the activity of the market within any time span we choose.</p><h3><strong>Application to Short Term Alpha Generation</strong></h3><p>PredictNow.ai’s core functionality is <a href="https://predictnow.ai/blog/what-is-the-probability-of-profit-of-your-next-trade-introducing-predictnow-ai/">metalabelling, </a>which assigns a <strong>Probability of Profit</strong> for every trade of an existing strategy (or a future time period of an existing portfolio). This requires us to build a machine learning model using a large number of input features and a target (label), which would be the trades’ (or portfolio’s) returns.</p><p>To evaluate the performance of the features described above, we first built a base strategy and then applied metalabelling to the signals of that strategy with those features as input. The base strategy is a high frequency strategy which predicts abnormal returns due to unusual order flow. The graph below displays the backtest performance of just the base strategy:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U1yfkOlEqbpLyjJbJ54arg.png" /></figure><ul><li>Maximum drawdown: −5.327%</li><li>Annualized Sharpe ratio: <strong>3.1</strong></li><li>Annualized profit: 32.6%</li></ul><p>Using the Final Features as described above as input to metalabelling, we have been successful in improving the strategy’s performance <strong><em>drastically</em></strong>. The graph below demonstrates the improved performance after applying metalabelling:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NcOFHltK2C5MzGIL44QngQ.png" /></figure><ul><li>Maximum drawdown: −4.998%</li><li>Annualized Sharpe ratio: 5.6</li><li>Annualized profit: 227%</li></ul><p>The <strong>Sharpe ratio is increased </strong>from 3.1 to <strong>5.6</strong> and we have <strong>almost 7x</strong> <strong>the annual returns to 227%</strong> by applying metalabelling using our new crypto features.</p><h3><strong>Applying CPO to Crypto Portfolio:</strong></h3><p>Mean Variance Optimization (MVO) is a popular method of portfolio optimization which generates a portfolio with maximum expected returns given a fixed level of risk. One shortcoming of the MVO method is that the selected portfolio is optimal only <em>on average </em>in the past. This doesn’t guarantee it to be optimal in different market regimes. This limitation gives us an opportunity to apply our patent-pending <a href="https://predictnow.ai/blog/conditional-parameter-optimization-adapting-parameters-to-changing-market-regimes/">Conditional Parameter Optimization (CPO)</a> technique.</p><p>Our CPO technique<a href="https://predictnow.ai/blog/conditional-parameter-optimization-adapting-parameters-to-changing-market-regimes/"> </a>can be used to improve strategy performance in different market regimes by adapting a trading strategy’s parameters to fit those regimes. Similarly, it can optimize allocations to different constituents of a portfolio in different market regimes. Rather than optimizing based only on the historical means and covariances of a portfolio’s constituents’ returns, CPO involves training a machine learning model with a vast number of external “big data” features to drive the optimization process.</p><p>In our next example, we used our crypto features as input. We then compared the Sharpe ratios of a crypto portfolio based on the conventional MVO technique vs our CPO technique on out-of-sample data.</p><h4><strong>Backtest Result:</strong></h4><ul><li>Portfolios are constituted of 8 symbols (all crypto perpetual futures): BTCUSDT, ETHUSDT, XRPUSDT, ADAUSDT, EOSUSDT, LTCUSDT, ETCUSDT, XLMUSDT</li><li>Position type includes <strong>Long </strong>and <strong>Short Positions</strong></li><li>The target variable is the forward Sharpe ratio, computed as the 3-hour return divided by the standard deviation of the sequence of the 5-minute consecutive returns during the 3-hour period</li><li>Test data set starts on Jan. 2020 and ends on June 2021</li><li>Results (annualized Sharpe ratio over 365 days per year):</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JyLKtt0gC2fmEbl75bENTg.png" /></figure><ul><li>CPO improves the Sharpe ratio by <strong>x3.8</strong>!</li></ul><h3><strong>Conclusion:</strong></h3><p>We have demonstrated that our new crypto features are powerful additions to any crypto trader or investor’s toolkit by applying them to a crypto trading strategy in live deployment, and to optimizing a crypto portfolio using our proprietary CPO technique. Our features and strategy combined with our machine learning software is proven to increase a base trading strategy’s returns by <strong>7x </strong>and increase a crypto portfolio’s Sharpe ratio <strong>3.8x </strong>over MVO. Additionally, with our Explainable AI function using our <a href="https://predictnow.ai/blog/the-amazing-efficacy-of-cluster-based-feature-selection/">feature selection methodology</a>, we’ve removed the guesswork so you’ll know exactly which of our new crypto features are important to improving your strategy.</p><p>To sign up for a free trial to experiment with these new features using our API or to explore our machine learning software please <a href="https://py.predictnow.ai/register">click here</a>. <strong>Institutional investors can also inquire about subscribing to our trading signals from our crypto strategy or to updates from our <em>dynamically optimized</em> long-short crypto portfolio.</strong></p><p>If you have any questions or would like to work with us, please email us at: info@predictnow.ai.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fecc6ecc5ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Metalabeling and the duality between cross-sectional and time-series factors]]></title>
            <link>https://predictnow-ai.medium.com/metalabeling-and-the-duality-between-cross-sectional-and-time-series-factors-1e0289f54b18?source=rss-ffb45d0feadc------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e0289f54b18</guid>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[predictions]]></category>
            <category><![CDATA[time-series-analysis]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[PredictNow.ai]]></dc:creator>
            <pubDate>Tue, 20 Jul 2021 01:11:40 GMT</pubDate>
            <atom:updated>2021-07-21T18:15:20.976Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E-VdMqbnny8hl5wf5Yr0vQ.png" /></figure><p><em>By Ernest Chan and Akshay Nautiyal</em></p><p>Features are inputs to supervised machine learning (ML) models. In traditional finance, they are typically called “factors”, and they are used in linear regression models to either explain or predict returns. In the former usage, the factors are contemporaneous with the target returns, while in the latter the factors must be from a prior period.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*oqMJeYS7aaIy1w3kghwk9Q.png" /></figure><p>There are generally two types of factors: cross-sectional vs time-series. If you are modeling stock returns, cross-sectional factors are variables that are specific to an individual stock, such as its earnings yield, dividend yield, etc. In our previous <a href="https://www.predictnow.ai/blog/introducing-pre-engineered-stock-fundamental-features-at-predictnow-ai/">blog post</a>, we described how we provide 40 such factors to our subscribers for backtesting and live predictions. But as we advocate using ML for risk management and capital allocation purposes (i.e. <a href="https://www.predictnow.ai/blog/what-is-the-probability-of-profit-of-your-next-trade-introducing-predictnow-ai/">metalabeling</a>), not for returns predictions, you may wonder how these factors can help predict the returns of your trading strategy or portfolio. For example, if you have a long-short portfolio of tech stocks such as AAPL, GOOG, AMZN, etc., and want to predict whether the portfolio as a whole will be profitable in a certain market regime, does it really make sense to have the earnings yields of AAPL, GOOG, and AMZN as individual features?</p><p>Meanwhile, time-series factors are typically market-wide or macroeconomic variables such as the familiar Fama-French 3-factors:market (simply, the market index return), SMB (the relative return of small cap vs large cap stocks), and HML (the relative return of value vs growth stocks). These time-series factors are eminently suitable for metalabeling, because they can be used to predict your portfolio or strategy’s returns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*czDKBLNC4NziwIqEGWP_zA.png" /></figure><p>Given that there are many more obvious cross-sectional factors than time-series factors available, it seems a pity that we cannot use cross-sectional factors as features for metalabeling. Actually, we can — Eugene Fama and Ken French themselves showed us how. If we have a cross-sectional factor on a stock, all we need to do is to use it to rank the stocks, form a long-short portfolio using the rankings, and use the returns of this portfolio as a time-series factor. The long-short portfolio is called a hedge portfolio.</p><p>We show the process of creation of a hedge portfolio with the help of an example, starting with Sharadar’s fundamental cross-sectional factors (which we generated as shown in the <a href="https://www.predictnow.ai/blog/introducing-pre-engineered-stock-fundamental-features-at-predictnow-ai/">blog</a>). There are 40 cross sectional factors updated at three different frequencies — quarterly, yearly and twelve month trailing. In this exercise, however, we use only the quarterly cross-sectional factors. Given a factor like capex (capital expenditure), we consider the normalized (the normalization procedure is found in the previously cited blog post) capex of approximately 8500 stocks on particular dates from January 1st, 2010 till current date. There are 4 particular dates of interest every year — January 15th, April 15th, July 15th and October 15th. We call these the ranking dates. On each of these dates we find the percentile rank of the stock based on normalized capex. The dates are carefully chosen to capture change in the cross sectional factors of the maximum number of stocks post the quarterly filings.</p><p>Once the capex across stocks is ranked at each ranking date (4 dates) each year we obtain the stocks present in the upper quartile (i.e ranked above 75 percentile) and the stocks present in the lower quartile (i.e ranked below 25 percentile). We take a long position on the ones which showed highest normalized capex and take a short position on the ones with the lowest. Both these sets together make our long-short hedge portfolio.</p><p>Once we have the portfolio on a given ranking date we generate the daily returns of the portfolio using risk parity allocation (i.e allocate proportional to inverse volatility). The daily returns of each chosen stock are calculated for each day till the next ranking date. The portfolio weights on each day are the normalized inverse of the rolling standard deviation of returns for a two month window. These weights change on a daily basis and are multiplied to the daily returns of individual stocks to get the daily portfolio returns. If a portfolio stock is delisted in between ranking dates we simply drop the stock and not use it to calculate the portfolio returns. The daily returns generated in this process are the capex time series factors. This process is repeated for all other Sharadar cross-sectional factors.</p><p>So, voila! 40 cross-sectional factors become 40 time-series factors, and they can be used for metalabeling any portfolio or trading strategy, whether it trades stocks, futures, FX, or anything at all.</p><p>What about the opposite conversion? Can we turn time-series factors into cross-sectional factors suitable for predicting the returns of individual stocks? Actually, there is no need. You can directly add any time-series factor to your feature set for predicting individual stock’s returns. This is equivalent to building a linear factor model with an individual stock’s returns as dependent variable and the time-series factor as independent variable, a process well-known in traditional finance.</p><p>On a side note: besides these 40 time-series (and their corresponding cross-sectional) features, we have compiled an additional 197 proprietary time-series features available to our <a href="https://www.predictnow.ai/services/">Premium subscribers</a>, and available via our API.</p><p>For more information about our work, visit <a href="http://www.predictnow.ai/">www.predictnow.ai</a></p><p><em>About the Authors:</em></p><p><em>Ernie is a noted quantitative hedge fund manager and quant finance author. Previously he has applied his expertise in machine learning IBM T.J. Watson Research Center’s Human Language Technologies group, at Morgan Stanley’s Data Mining and Artificial Intelligence Group, and at Credit Suisse’s Horizon Trading Group.</em></p><p><em>Akshay is a Quantitative Analyst at PredictNow.ai, working at the confluence of Machine Learning and Finance.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e0289f54b18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing: Pre-engineered Stock Fundamental Features at Predictnow.ai]]></title>
            <link>https://predictnow-ai.medium.com/introducing-pre-engineered-stock-fundamental-features-at-predictnow-ai-c9fd3ff61edc?source=rss-ffb45d0feadc------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9fd3ff61edc</guid>
            <category><![CDATA[stock-market-prediction]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[features]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[fintech-startups]]></category>
            <dc:creator><![CDATA[PredictNow.ai]]></dc:creator>
            <pubDate>Thu, 08 Jul 2021 13:37:24 GMT</pubDate>
            <atom:updated>2021-07-21T18:16:35.860Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kSpfjTX1DJ26qiYqARfxrg.png" /></figure><p><em>By Ernest Chan</em></p><p>Predictnow.ai is pleased to announce the launch of our new pre-engineered stock fundamental features. These features are ratios and indicators that have been constructed from the quarterly and annual financial statements of public companies. In the US, these are the 10-Q and 10-K filings to the SEC. Multiple independent studies have shown that merging fundamental and technical features can predict returns more accurately than using technical features alone. (For example, <a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3706532">Cao and You, 2020</a>.)</p><p>Predictnow.ai has created 40 stocks’ fundamental features, <strong><em>free</em></strong> to all our subscribers. These features are sometimes called “cross-sectional” factors (<a href="https://amzn.to/3plUQ2P">Ruppert and Matteson, 2015</a>, chapter 18), and are sourced from the Sharadar stock fundamental dataset. This dataset contains more than 6000 US listed companies1 and nearly 10,000 delisted companies. We have carefully vetted this list to ensure it is <em>survivorship-bias-free</em> and that all the data is captured <em>point-in-time</em>; without restatements. This data is available quarterly, yearly, and for trailing twelve months (these are called the 3 “dimensions” in Sharadar’s terminology). The original Sharadar dataset has around 140 raw data fields. We have narrowed and filtered this down to 40 essential features for users, as many of the features in the original set were redundant or highly correlated.</p><p>To use this data for machine learning, the time series data has been made <em>stationary</em>. For indicators which are denominated in dollars, such as total assets or capex (capital expenditure), we compute the percentage change between a given filing and the next. For indicators that are already in percentages, like gross margin or net margin, we simply take the difference between the values for successive filings. These conversions are done for each of the 3 dimensions — quarterly, yearly and trailing twelve months.</p><p>We have also <em>normalized</em> this data cross-sectionally to facilitate easy comparisons across different stocks.This allows users to merge data from different stocks into a single training data set for easy input into our <a href="https://predictnow.ai/">no-code machine learning web interface</a> or API. We multiply ratios like “earnings-per-share” or “debt-per-share” with the total number of common shares outstanding, divide by the enterprise value, then finally take the difference between consecutive filings. To reiterate, this normalization is done for each of the 3 dimensions.</p><p>Predictnow.ai has also ensured that a reused ticker symbol is assigned to the last company that uses that ticker, not to a delisted company that previously had that ticker. This is to avoid any kind of survivorship biases. All reused ticker symbols are available with a numeric counter as a postfix at the end. For example, Australia Acquisition corporation and Ares Acquisition corporation both have the ticker symbol AAC. Australia Acquisition corporation was delisted in 2012, so it is available as AAC1 in our database. In contrast, Ares Acquisition corporation is still actively listed as AAC. Conversely, in the case where the ticker symbol for a company has changed over time, all its data is tied to its last valid ticker.</p><p>As SEC filings generally happen at arbitrary times on any given day, to avoid look ahead biases during backtests, the date of the associated data has been shifted to the next trading day to guarantee its availability long before the market opens.</p><p>Predictnow.ai enables <em>automatic</em> merging of this fundamental data with your own technical or higher frequency data as one single input dataset for machine learning. When merging the Sharadar fundamental features with higher frequency data, the fundamental features are forward filled till the next valid filing date. For example, gross margin for quarterly filings will be forward filled for all dates till the gross margin for the next quarter is available on the date of its filing.</p><p>In our <a href="https://www.predictnow.ai/get-manual/">manual</a>, you can view a detailed list of all the new features, as well as a description on how to use them. The specific preprocessing functions applied are also described there. All data is updated every trading day by 5am New York Time.</p><p>If you have any questions, please do not hesitate to reach out to us at info@predictnow.com.</p><p>For more information about our work, visit <a href="http://www.predictnow.ai/">www.predictnow.ai</a></p><p>Further reading: “F<a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3706532">undamentals Analysis Via Machine learning</a>” and “<a href="https://docs-1-8--quantrocket.netlify.app/docs/data/fundamental/sharadar/">Sharadar Fundamental data doc</a>”.</p><p>Footnote:</p><p>1This includes all ADRs but not OTC stocks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9fd3ff61edc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Predicting Profitability: Introducing PredictNow.Ai a Live Machine Learning Tool to Alpaca]]></title>
            <link>https://predictnow-ai.medium.com/predicting-profitability-introducing-predictnow-ai-a-live-machine-learning-tool-to-alpaca-596aeed73d2?source=rss-ffb45d0feadc------2</link>
            <guid isPermaLink="false">https://medium.com/p/596aeed73d2</guid>
            <category><![CDATA[predictions]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[machine-learning-ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[profitability]]></category>
            <dc:creator><![CDATA[PredictNow.ai]]></dc:creator>
            <pubDate>Thu, 08 Jul 2021 13:34:58 GMT</pubDate>
            <atom:updated>2021-07-21T18:16:52.235Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TtJOgmfEf2pBKzlQiHp5rQ.png" /></figure><p><em>By Ernest Chan</em></p><p><strong>What is PredictNow.Ai?</strong></p><p>PredictNow.ai is a no-code machine learning SaaS-based in Toronto, Canada that is primarily focused on helping traders apply machine learning to their investment strategies in order to predict the profitability of their next trade. PredictNow.ai can calculate the most important input variables groups (also known as “clusters”) that empower a user’s prediction and only incorporate those in the prediction decision.</p><p>Users have to train a machine learning model based on their historical results, where they receive predictive performance results for both the in-sample and out-of-sample datasets. This trained model is then downloaded and is used in the Live section. In the Live section, users upload the model file along with the data features for that day into the PredictNow.ai software. The software then utilizes the previously trained model to provide a prediction for the daily dataset. We also provide access to a Rest API, allowing the user to directly implement the PredictNow.ai software into their internal processes.</p><p>This no-code process can help traders predict the profitability of their trades and help improve their existing trading strategies.</p><p><strong>How to sign up for PredictNow.Ai and link an Alpaca brokerage account?</strong></p><p>If you are an existing Alpaca user linking to PredictNow.ai is quite simple. Go to the PredictNow.ai website and sign up for an account. You can initially get full access through a 30 day free trial. Once this is done on the PredictNow platform you will see an option to sign in to Alpaca.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gb9YbvXDVZFwxRqXhTTnbA.png" /></figure><p>As soon as you’re logged in you will receive an authentication page asking for your permission to allow PredictNow to access the relevant information. As soon as you click allow it will take you back to the train mode page on PredictNow.Ai.</p><p><strong>How to use PredictNow.Ai with Alpaca Data?</strong></p><p>Once you’ve given permission to the PredictNow.ai platform your brokerage data can be directly imported from Alpaca to PredictNow.ai.</p><p>PredictNow.ai currently offers Alpaca users two Profit and Loss or PNL modes to choose from.</p><p>One is the round-trip PnL. A round trip would basically be taking a long version and selling it or taking a short version and buying it later. For each of the entries for the realized round-trip PnL the associated time stamp is the trade entry time stamp.The second PnL is the MTM or mark to market is basically one entry for each business day and this illustrates the change in NAV on a day to day basis.</p><p>Users will first work in train mode to create a model using training data and once the model is complete and you are satisfied with probability analysis you can go ahead and download the model and upload it into the live mode.</p><p>Attached <a href="https://youtu.be/nP9gef7ErRw">here</a> is a demo which walks you through how to link your Alpaca data to PredictNow and how to train and use the live modes. This demo will also go into detail regarding which results are relevant and what specific data sheets indicate.</p><p>If you have any questions or trouble setting up, please do not hesitate to reach out to us at info@predictnow.ca. Our team also offers professional consulting services and are happy to guide you through setting up a successful model to further improve your trading strategy.</p><p>For more information about our work, visit <a href="http://www.predictnow.ai/">www.predictnow.ai</a></p><p><em>About the Author: Ernie is a noted quantitative hedge fund manager and quant finance author. Previously he has applied his expertise in machine learning IBM T.J. Watson Research Center’s Human Language Technologies group, at Morgan Stanley’s Data Mining and Artificial Intelligence Group, and at Credit Suisse’s Horizon Trading Group.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=596aeed73d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Conditional Parameter Optimization: Adapting Parameters to Changing Market Regimes]]></title>
            <link>https://predictnow-ai.medium.com/conditional-parameter-optimization-adapting-parameters-to-changing-market-regimes-b7158ab78ed4?source=rss-ffb45d0feadc------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7158ab78ed4</guid>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[machine-learning-ai]]></category>
            <category><![CDATA[trading-strategy]]></category>
            <category><![CDATA[cpo]]></category>
            <dc:creator><![CDATA[PredictNow.ai]]></dc:creator>
            <pubDate>Thu, 08 Jul 2021 13:32:17 GMT</pubDate>
            <atom:updated>2021-07-21T18:17:09.809Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FSniZP50-W1Dmqrtq2Ehxg.png" /></figure><p><em>By Ernest Chan</em></p><p>Every trader knows that there are market regimes that are favorable to their strategies, and other regimes that are not. Some regimes are obvious, like bull vs bear markets, calm vs choppy markets, etc. These regimes affect many strategies and portfolios (unless they are market-neutral or volatility-neutral portfolios) and are readily observable and identifiable (but perhaps not predictable). Other regimes are more subtle, and may only affect your specific strategy. Regimes may change every day, and they may not be observable. It is often not as simple as saying the market has two regimes, and we are currently in regime 2 instead of 1. For example, with respect to the profitability of your specific strategy, the market may have 5 different regimes. But it is not easy to specify exactly what those 5 regimes are, and which of the 5 we are in today, not to mention predicting which regime we <em>will</em> be in tomorrow. We won’t even know that there are exactly 5!</p><p>Regime changes sometimes necessitate a complete change of trading strategy (e.g. trading a mean-reverting instead of momentum strategy). Other times, traders just need to change the parameters of their existing trading strategy to adapt to a different regime. My colleagues and I at PredictNow.ai have come up with a novel way of adapting the parameters of a trading strategy, a technique we called “Conditional Parameter Optimization” (CPO). This patent-pending invention allows traders to adapt new parameters as frequently as they like — perhaps for every trading day or even every single trade.</p><p>CPO uses machine learning to place orders optimally based on changing market conditions (<em>regimes</em>) in any market. Traders in these markets typically already possess a basic trading strategy that decides the timing, pricing, type, and/or size of such orders. This trading strategy will usually have a small number of adjustable trading parameters. Conventionally, they are often optimized based on a fixed historical data set (“train set”). Alternatively, they may be periodically reoptimized using an expanding or rolling train set. (The latter is often called “Walk Forward Optimization”.) With a fixed train set, the trading parameters clearly cannot adapt to changing regimes. With an expanding train set, the trading parameters still cannot respond to rapidly changing market conditions because the additional data is but a small fraction of the existing train set. Even with a rolling train set, there is no evidence that the parameters optimized in the most recent historical period gives better out-of-sample performance. A too-small rolling train set will also give unstable and unreliable predictive results given the lack of statistical significance. All these conventional optimization procedures can be called <em>unconditional parameter optimization,</em> as the trading parameters do not intelligently respond to rapidly changing market conditions. Ideally, we would like trading parameters that are much more sensitive to the market conditions and yet are trained on a large enough amount of data.</p><p>To address this adaptability problem, we apply a supervised machine learning algorithm (specifically, random forest with boosting) to learn from a large predictor (“feature”) set that captures various aspects of the prevailing market conditions, together with specific values of the trading parameters, to predict the outcome of the trading strategy. (An example outcome is the strategy’s future one-day return.) Once such machine-learning model is trained to predict the outcome, we can apply it to live trading by feeding in the features that represent the latest market conditions as well as various combinations of the trading parameters. The set of parameters that results in the optimal predicted outcome (e.g., the highest future one-day return) will be selected as optimal, and will be adopted for the trading strategy for the next period. The trader can make such predictions and adjust the trading strategy as frequently as needed to respond to rapidly changing market conditions.</p><p>In the example you can download <a href="https://py.predictnow.ai/request_cpo_paper">here</a>, I illustrate how we apply CPO using PredictNow.ai’s financial machine learning API to adapt the parameters of a Bollinger Band-based mean reversion strategy on GLD (the gold ETF) and obtain superior results which I highlight here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*dz4dqsV92CP2KWYJ5vjINw.png" /></figure><p>The CPO technique is useful in industry verticals other than finance as well — after all, optimization under time varying and stochastic condition is a very general problem. For example, wait times in a hospital emergency room may be minimized by optimizing various parameters, such as staffing level, equipment and supplies readiness, discharge rate, etc. Current state-of-the-art methods generally find the optimal parameters by looking at what worked best on average in the past. There is also no mathematical function that exactly determines wait time based on these parameters. The CPO technique employs other variables such as time of day, day of week, season, weather, whether there are recent mass events, etc. to predict the wait time under various parameter combinations, and thereby find the optimal combination under the current conditions in order to achieve the shortest wait time.</p><p>We can provide you with the scripts to run CPO on your own strategy using Predictnow.ai’s API. Please email info@predictnow.ai for a free trial.</p><p>For more information about our work, visit <a href="http://www.predictnow.ai/">www.predictnow.ai</a></p><p><em>About the Author: Ernie is a noted quantitative hedge fund manager and quant finance author. Previously he has applied his expertise in machine learning IBM T.J. Watson Research Center’s Human Language Technologies group, at Morgan Stanley’s Data Mining and Artificial Intelligence Group, and at Credit Suisse’s Horizon Trading Group.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7158ab78ed4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Amazing Efficacy of Cluster-based Feature Selection]]></title>
            <link>https://predictnow-ai.medium.com/the-amazing-efficacy-of-cluster-based-feature-selection-fa3543471d7a?source=rss-ffb45d0feadc------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa3543471d7a</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[learning-model]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[trading]]></category>
            <category><![CDATA[feature-selection]]></category>
            <dc:creator><![CDATA[PredictNow.ai]]></dc:creator>
            <pubDate>Wed, 07 Jul 2021 23:02:57 GMT</pubDate>
            <atom:updated>2021-07-21T18:17:24.992Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zZqassVAPbl9SucCIXHR4w.png" /></figure><p><em>By Ernest Chan</em></p><p>One major impediment to widespread adoption of machine learning (ML) in investment management is their black-box nature: how would you explain to an investor why the machine makes a certain prediction? What’s the intuition behind a certain ML trading strategy? How would you explain a major drawdown? This lack of “interpretability” is not just a problem for financial ML, it is a prevalent issue in applying ML to any domain. If you don’t understand the underlying mechanisms of a predictive model, you may not trust its predictions.</p><p>Feature importance ranking goes a long way towards providing better interpretability to ML models. The feature importance score indicates how much information a feature contributes when building a supervised learning model. The importance score is calculated for each feature in the dataset, allowing the features to be ranked. The investor can therefore see the most important predictors (features) used in the predictions, and in fact apply “feature selection” to only include those important features in the predictive model. However, as my colleague Nancy Xin Man and I have demonstrated in <a href="https://doi.org/10.3905/jfds.2020.1.047">Man and Chan 2021a</a>, common feature selection algorithms (e.g. MDA, LIME, SHAP) can exhibit high variability in the importance rankings of features: different random seeds often produce vastly different importance rankings. For e.g. if we run MDA on some cross validation set multiple times with different seeds, it is possible that a feature in a run is ranked at the top of the list but dropped to the bottom in the next run. This variability of course eliminates any interpretability benefit of feature selection. Interestingly, despite this variability in importance ranking, feature selection still generally improves out-of-sample predictive performance on multiple data sets that we tested in the above paper. This may be due to the “substitution effect”: many alternative (substitute) features can be used to build predictive models with similar predictive power. (In linear regression, substitution effect is called “collinearity”.)</p><p>To reduce variability (or what we called <em>instability</em>) in feature importance rankings and to improve interpretability, we found that LIME is generally preferable to SHAP, and definitely preferable to MDA. Another way to reduce instability is to increase the number of iterations during runs of the feature importance algorithms. In a typical implementation of MDA, every feature is permuted multiple times. But standard implementations of LIME and SHAP have set the number of iterations to 1 by default, which isn’t conducive to stability. In LIME, each instance and its perturbed samples only fit one linear model, but we can perturb them multiple times to fit multiple linear models. In SHAP, we can permute the samples multiple times. Our experiments have shown that instability of the top ranked features do approximately converge to some minimum as the number of iterations increases; however, this minimum is not zero. So there remains some residual variability of the top ranked features, which may be attributable to the substitution effect as discussed before.</p><p>To further improve interpretability, we want to remove the residual variability. <a href="https://amzn.to/39lU6or">López de Prado, M. (2020)</a> described a clustering method to cluster together features are that are similar and should receive the same importance rankings. This promises to be a great way to remove the substitution effect. In our new paper <a href="https://py.predictnow.ai/request_cmda_paper">Man and Chan 2021b</a> , we applied a hierarchical clustering methodology prior to MDA feature selection to the same data sets we studied previously. This method is generally called cMDA. As they say in social media click baits, the results will (pleasantly) surprise you.</p><p>For the benchmark <a href="https://archive.ics.uci.edu/ml/datasets/Breast+Cancer+Wisconsin+(Diagnostic)">breast cancer dataset</a>, the top two clusters found were:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*TsntDViXxyS3Q6YfvqXq9A.png" /></figure><p>Closer to our financial focus, we also applied cMDA to a <a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=517667">public dataset</a> with features that may be useful for predicting S&amp;P 500 index excess monthly returns. The two clusters found areNot only do these clusters have clear interpretations (provided by us as a “Topic”), these clusters almost never change in their top importance rankings under 100 random seeds!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*XQZpwOrR6kMxnYonOrkd_g.png" /></figure><p>The two clusters can clearly be interpreted as fundamental vs technical indicators, and their rankings don’t change: fundamental indicators are always found to be more important than technical indicators in all 100 runs with different random seeds.</p><p>Finally, we apply this technique to our proprietary features for predicting the success of our <a href="https://predictnow.ai/blog/why-does-our-tail-reaper-program-work-in-times-of-market-turmoil">Tail Reaper</a> strategy. Again, the top 2 clusters are highly interpretable, and never change with random seeds. (Since these are proprietary features, we omit displaying them.)</p><p>If we select only those clearly interpretable, top clusters of features as input to training our random forest, we find that their <em>out-of-sample</em> predictive performances are also improved in many cases. For example, the accuracy of the S&amp;P 500 monthly returns model improves from 0.517 to 0.583 when we use cMDA instead of MDA, while the AUC score improves from 0.716 to 0.779.</p><p><em>S&amp;P 500 monthly returns prediction</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*GLEoUd4jRRBQBpXFkz8cgQ.png" /></figure><p>Meanwhile, the accuracy of the Tail Reaper metalabeling model improves from 0.529 to 0.614 when we use cMDA instead of MDA and select all clustered features with above-average importance scores, while the AUC score improves from 0.537 to 0.672.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*HzEYRZnyN6PLq6GI22l9tQ.png" /></figure><p>This added bonus of improved predictive performance is a by-product of capturing all the important, interpretable features, while removing most of the unimportant, uninterpretable features.</p><p>You can try out this hierarchical cluster-based feature selection for free <a href="https://www.predictnow.ai/free-trial/">right here</a>. You can use the no-code version, or <a href="https://www.predictnow.ai/api-request/">ask for our API.</a> Details of our methodology can be found <a href="https://py.predictnow.ai/request_cmda_paper">here</a>.</p><p>For more information about our work, visit <a href="http://www.predictnow.ai/">www.predictnow.ai</a></p><p><em>About the Author: Ernie is a noted quantitative hedge fund manager and quant finance author. Previously he has applied his expertise in machine learning IBM T.J. Watson Research Center’s Human Language Technologies group, at Morgan Stanley’s Data Mining and Artificial Intelligence Group, and at Credit Suisse’s Horizon Trading Group.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa3543471d7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>