What traders should know about seasonal adjustment

The purpose of seasonal adjustment is to remove seasonal and calendar effects from economic time series. It is a common procedure but also a complex one, with side effects. Seasonal adjustment has two essential stages. The first accounts for deterministic effects by means of regression and selects a general time series model. The second stage decomposes the original time series into trend-cycle, seasonal, calendar and irregular components.
Seasonal adjustment does not generally improve the quality of economic data. There is always some loss of information. Also, it is often unclear which calendar effects have been removed. And sometimes seasonal adjustment is just adding noise or fails to remove all seasonality. Moreover, seasonally adjusted data are not necessarily good trend indicators. By design, they do not remove noise and outliers. And extreme weather events or public holiday patterns are notorious sources of distortions. Estimated trends at the end of the series are subject to great uncertainty. Furthermore, seasonally adjusted time series are often revised and can be source of bias if these data are used for trading strategy backtests.

(more…)

Inflation and precious metal prices

Theory and plausibility suggest that precious metal prices benefit from inflation and negative real interest rates. This makes gold, silver, platinum, and palladium natural candidates for hedges against inflationary monetary policy. Long-term empirical evidence supports the inflation-precious metal link. However, there are important qualifications. First, the equilibrium relation between consumer and metal prices can take many years to re-assert itself and short-term excesses in relative prices are common. Second, the relationship between precious metal and consumer prices can change over time as a consequence of evolving market structures or diverging supply and demand conditions. And third, the equilibrium relationship works better for gold, platinum and palladium than for silver.

(more…)

Real-time growth estimation with reinforcement learning

Survey data and asset prices can be combined to estimate high-frequency growth expectations. This is a specific form of nowcasting that implicitly captures all types of news on the economy, not just official data releases. Methods for estimation include the Kalman filter, MIDAS regression, and reinforcement learning. Since reinforcement learning is model-free it can estimate more efficiently. And a recent paper suggests that this efficiency gain brings great benefits for nowcasting growth expectations. Nowcasting with reinforcement learning can be applied to expectations for a variety of macro variables.

(more…)

Estimating the positioning of trend followers

There is a simple method of approximating trend follower positioning in real-time and without lag. It is based on normalized returns in liquid futures markets over plausible lookback windows, under consideration of a leverage constraint, and uses estimated assets under management as a scale factor. For optimization and out-of-sample analysis, the approach can be enhanced by sequential estimation of some key parameters, such as the momentum lookback, the normalized momentum cap and the lookback for realized volatility calculation. Trend follower positions are an important factor of endogenous market risk due to the size of assets under management in dedicated funds and the informal use of trend rules across many trading accounts.

(more…)

Forecasting energy markets with macro data

Recent academic papers illustrate how macroeconomic data support predictions of energy market flows and prices. Valid macro indicators include shipping costs, industrial production measures, non-energy industrial commodity prices, transportation data, weather data, financial conditions indices, and geopolitical uncertainty measures. Good practices include a focus on “small” models and a reduction of the dimensionality of large datasets. Forecasts can extend to predictions of the entire probability distribution of prices and – hence – can be used to assess the probability of breakouts from price ranges.

(more…)

Fundamental trend following

Fundamental trend following uses moving averages of past fundamental data, such as valuation metrics or economic indicators, to predict future fundamentals, analogously to the conventions in price or return trend following. A recent paper shows that fundamental trend following can be applied to equity earnings and profitability indicators. One approach is to pool fundamental information across a range of popular indicators and to sequentially choose lookback windows for moving averages in accordance with past predictive power for returns. The fundamental extrapolation measure predicts future stock returns positively and would historically have generated significant profits. Most importantly, fundamental trend following returns seems to have little correlation with price trend following returns, supporting the idea that these trading styles are complementary.

(more…)

Prospect theory value as investment factor

Prospect theory value as investment factor

Prospect theory value is a valid investment factor, particularly in episodes of apparent market inefficiency. Prospect theory is a popular model of irrational decision making. It emphasizes a realistic mental representation of expected gains and losses and an individual’s evaluation of such representations. Prospect theory explains asymmetric loss aversion (view post here) and gambling preferences (view post here). Since mental representations of expected returns and volatility are often driven by price charts, prospect theory value can be estimated based on historic asset return distributions. Assets with a high prospect theory value should have low subsequent returns and vice versa. This proposition holds even if part of the market is fully rational as long as there are balance sheet and risk limits. Empirical academic papers have confirmed the prospect theory value in international equity, corporate bond and foreign exchange markets.

(more…)

Understanding international capital flows and shocks

Macro trading factors for FX must foremostly consider (gross) external investment positions. That is because modern international capital flows are mainly about financing, i.e. exchanges of money and financial assets, rather than saving, real investments and consumption (which are goods market concepts). Trades in financial assets are much larger than physical resource trades. Also, financing flows simultaneously create aggregate purchasing power, bank assets and liabilities. The vulnerability of currencies depends on gross rather than net external debt. Current account balances, which indicate current net payment flows, can be misleading. The nature and gravity of financial inflow shocks, physical saving shocks, credit shocks and – most importantly – ‘sudden stops’ all depend critically on international financing.

(more…)

R tidyverse for macro trading research

The tidyverse is a collection of packages that facilitate data science with R. It is particularly powerful for macro trading research because [a] it supports efficient and standardized work with R’s vast universe of econometric models, [b] is well adapted for analyzing data vintages (i.e. data series that change over time), and [c] supports code in form of visually clean chains of statistical operations. The tidyverse’s core and peripheral packages share common design principles that harmonize workflow for crucial tasks: [1] organizing data structures, [2] transforming the content of data structures, [3] functional programming with complex nested data sets, [4] extraction of statistical information across models in a standardized form, [5] coding and mathematics with date-time objects, [6] coding with strings and regular expressions, [7] a flexible machine learning workflow, [8] highly versatile and consistent graphics creation, and [9] connectors to financial analysis packages.

(more…)

Nowcasting with MIDAS regressions

Nowcasting macro-financial indicators requires combining low-frequency and high-frequency time series. Mixed data sampling (MIDAS) regressions explain a low-frequency variable based on high-frequency variables and their lags. For instance, the dependent variable could be quarterly GDP and the explanatory variables could be monthly activity or daily market data. The most common MIDAS predictions rely on distributed lags of higher frequency regressors to avoid parameter proliferation. Analogously, reverse MIDAS models predict a high-frequency dependent variable based on low-frequency explanatory variables. Compared to state-space models (view post here), MIDAS simplifies specification and theory-based restrictions for nowcasting. The R package ‘midasr’ estimates models for multiple frequencies and weighting schemes. In practice, MIDAS has been used for nowcasting financial market volatility, GDP growth, inflation trends and fiscal trends.

(more…)