This is part of a weekly series covering generative AI as applied to investing, drawn from source material from the full-length book, Truth Engine: Applying AI to Investing.

We examined how biological inspiration is improving causal AI. Unexpectedly, directly using causality in the TVTP (sec. 2.1) is effective. Forward chaining, also known as forward reasoning or walk-forward validation, bakes in causality inherent in the time series setting. The idea is to make the training set grow over time while keeping the test set as a fixed size window that moves forward in time (figure). This method respects the temporal order of the data.

file24.png
Figure: Forward chaining progressively grows the training set while using a held-out in time test set. 

Importantly, forward chaining window size hedges survivorship bias, that the dataset is overly optimistic, in two ways. The writer Hemingway observed bankruptcy occurs, “gradually, and then suddenly”. Unusually, tightening the resolution of the chaining window hones in on gradual decline, converging onto the solution from indices. Indices that focus on the top 1000 companies proactively remove companies in decline. By keeping pace with index cleaning, survivorship bias is mitigated. Forward chaining thus aligns well with a bottom-up approach to reasoning, where the starting point is available data, and logical conclusions or predictions are made based on this data. It’s particularly useful in situations where the initial data is well-understood, such as a recent period of valuations, and the objective is to forecast near-term effects.

For causal modeling, forward chaining promotes correct learning. Causal modeling prefers cause-and-effect relationships. Forward chaining naturally integrates with this framework using a starting scenario, and permitting cause-and-effect relationships. As the chaining process progresses, it moves in the direction of these causal links, making it an intuitive and effective way to transition from cause to effect.

NLU can be effectively integrated with economic indicators for multi-modal analysis. A typical macro approach encompasses more than 35 types of economic indicators, including metrics like the Federal Funds Rate, Consumer Price Index, and Unemployment Rate, among others. The goal is to offer a practical, task-oriented perspective on economic trends that are inherently time-sensitive and operate on different time scales. We indicate the symbol used with the Federal Reserve Economic Database (FRED).

The Federal Funds Rate (FEDFUNDS) is the interest rate at which depository institutions lend reserve balances to other depository institutions overnight. It’s set by the Federal Reserve and serves as a benchmark for other interest rates in the economy. In contrast, the Repo Rate (SOFR) or Secured Overnight Financing Rate, is the cost of borrowing cash overnight collateralized by Treasury securities. SOFR more accurately reflects the cost of short-term borrowing to companies.

The M2 Money Stock (M2) comprises cash, checking deposits, and easily convertible near-money. It’s a broad measure of a nation’s money supply and is used to understand the availability of liquidity in the economy (M1 is slightly narrower excluding money market and time deposits under $100k). The Consumer Price Index (CPIAUCSL) measures the average change in the prices for a market basket of consumer goods and services to probe inflation.

The Unemployment Rate (UNRATE) measures the percentage of the total labor force that is unemployed but actively seeking employment. It’s a key indicator of labor market conditions. The Industrial Production Index (INDPRO) measures the real output of all relevant establishments located in the US, regardless of their ownership, but not those located in US territories. It’s often used as a barometer for the overall health of the industrial sector. Real Gross Domestic Product (GDPC1) measures the value of all finished goods and services produced, adjusted for changes in price or inflation. The Personal Savings Rate (PSAVERT) is the ratio of personal income saved to personal net disposable income.

The Consumer Confidence Index (UMCSENT) taps into the financial pulse of households across the country, measuring whether people are optimistic or pessimistic about economic prospects. If consumers are feeling good, they spend more, and that lifts the economy. Producer Price Index for All Commodities (PPIACO) plays a similar role, albeit from the other side of the aisle. It monitors how much domestic producers are charging for their goods. It’s a handy crystal ball for predicting consumer inflation down the line.

When it comes to the property market, Housing Starts (HOUST) is the yardstick. It tracks the number of new homes under construction each month, signaling the health of the residential construction sector. The more new builds, the more optimistic developers are about future demand.

Real Disposable Personal Income (DSPIC96) uncovers what’s left in household coffers after the taxman has had his share. Meanwhile, Retail Sales Total Excluding Food Services (RSXFS) paints a vivid picture of consumer spending behavior, tallying up how much stores are selling each month.

On the business side, a key barometer is Business Inventories (BUSINV). This metric tells you how much stock is sitting in the warehouses of manufacturers, wholesalers, and retailers. If these numbers shift suddenly, it’s a hint that costly inventory is dragging on a sluggish economy.

Wage growth is captured by Average Hourly Earnings of All Employees, Total Private (CES0500000003). This indicator serves as a spotlight on income trends in the private sector, often tipping us off about inflationary pressures. Manufacturing Sector Real Output (OUTMS) adds another layer, revealing the real-world value of goods churned out by factories, adjusted for inflation.

The auto industry’s health is laid bare by Total Vehicle Sales (TOTALSA), while the Import Price Index All Commodities (IR) and Export Price Index All Commodities (IX) serve as gatekeepers for trade balance. Capacity Utilization Total Industry (TCU) completes the industrial picture by indicating how efficiently we’re using our production capabilities.

The employment scenario isn’t just numbers – it’s people and families. Non-Farm Payroll (PAYEMS) unveils the job landscape, excluding certain sectors like farming and private households. Fluctuations in this metric make or break political careers. Another politically sensitive item on the energy economy is captured by Crude Oil Prices West Texas Intermediate (WTISPLC) and the Gasoline and Diesel Fuel Update (GASREGW). These numbers tell us how much it costs to fuel our lives and can have ripple effects throughout the economy.

US Natural Gas Wellhead Price (MHPG) keeps tabs on natural gas prices, and Initial Claims (ICSA) are an early-warning system for layoffs. If more people are filing for unemployment, tough times could be ahead.

Several other indicators, from ISM Manufacturing PMI Composite Index (ISM) to US Treasury Budget, Total Receipts (MTSR) and Federal Surplus or Deficit (FYFSD), serve as the nuts and bolts holding the economic structure together. They help understand federal revenue streams and the government’s fiscal health.

Chicago Fed National Activity Index (CFNAI) and the Advance Monthly Sales reports (MARTS and RSAFS) round out the picture, providing invaluable insights into overall economic activity and sales trends in retail and food services.

The next time the state of the economy is baffling, these are the breadcrumbs. They can help navigate through a shifting environment, bringing a complex picture into sharper focus. When incorporating macroeconomic data into an AI model, it’s crucial to normalize the data effectively. Models perform better when input data has zero mean and unit variance, or is at least similarly scaled. The architecture of the model should be aptly chosen. For instance, a multi-input model should separately process company-specific and macroeconomic data before combining them, allowing the model to better learn from each data type.

Finance and Meta-language

Language philosopher Wittgenstein remarked, “the word ’this’ has been called the only genuine name; so that anything else we call a name was one only in an inexact, approximate sense.” It’s natural that language is an important tool to enhance financial statements, which describe businesses. Financial statements, while powerfully condensing business performance for comparison, come at a cost. As we discussed, the curse of shadows is the age-old trap related in Plato’s “The Republic”. When confined to an abstracted description, agents can fathom shadows on a cave wall as indicative of true forces at play. Language is an effective method by which finance aspires to escape the curse of shadows.

We had mentioned jargon as a veil on business fundamentals. In order to get up to speed, an authority such as the venture firm Andreessen Horowitz (A16Z) has tasked its managers to become developers. In 2023, a partner at A16Z sheepishly admitted their server for an AI model went offline due to budget triggers.64 Unsurprisingly, venture partners don’t become AI developers overnight. As Stanford lecturer Peter Mohanty wryly critiqued the film Armageddon, “it’s easier for an astronaut to become a miner than the other way around”. Yet the roughneck miners have the greatest heart, and crossing the chasm is the right instinct.

Wittgenstein mentioned language as recursive and adjacent like a fractal. He could’ve been describing the formless form of generative AI training. Unlike most of AI and ML work, generative AI doesn’t limit itself to one task. It’s trained like a sculpture hammered in from all sides to form the correct facets. The fractal nature gives infinite detail in the smallest region that can overwhelm the investor. Only when the fractal pattern can be appreciated, either through Buffett’s exhaustive reading or language AI, is when value investing reaches its apex. At current levels, AI generates the form from which an investor can perceive deeper into the pattern.


This is part of a weekly series covering generative AI as applied to investing, drawn from source material from the full-length book, Truth Engine: Applying AI to Investing.