Dataset For: Gaussian Hidden Markov Model for Detecting Liquidity-Driven Regime Shifts in Gold and Equities
Year: 2026
Type: dataset
Abstract: –Gold and equities are fundamentally inversely correlated. The bullion typically thrives in fear while equities rally in growth. However, certain economic drivers such as monetary policy, inflation expectations, or extreme fear can trigger simultaneous sell-offs. Such an extreme fear is fundamentally bullish for gold, but the excessive need for liquidity overrides strategy. This study aims to produce a descriptive Hedge Failure Index (HFI) to display the downside coupling of gold and equities. While correlation tools like PCC (Pearson Correlation Coefficient) exist, such a homoskedastic tool is inadequate for the nonlinear, regime-dependent dynamics of financial markets. After the dataset is prepared using Principal Component Analysis (PCA) and RobustScaler, the index is constructed by utilizing unsupervised learning Gaussian Hidden Markov Model to identify latent regimes in the markets. Viterbi and Forward-Backward algorithms provide regime persistence and suppress flickering. The model successfully classified 4 latent regimes from financial markets: Hedge Failure, Hedge Active, Risk-On, Neutral/Transition. Empirical validations are done to indirectly verify the model's accuracy since unsupervised models lack ground truth. Label stability test produced 94.5\% agreement in different seed initializations. Furthermore, Forward-Looking validation on Hedge Failure exhibits a decent lift and regime persistence decay that aligns with Hedge Failure having the lowest mean duration and total distribution. An event study on the Liberation Day tariff sweep confirms the index's responsiveness in acute liquidity-driven sell-offs. While the model provide significant information through its unsupervised learning, the model possesses several limitations including lack of ground truth which is an inherent problem in unsupervised models and trade-off of reactivity and timeliness caused by the smoothing mechanism. The proposed HFI is a diagnostic, historical-analysis tool rather than a live trading signal, as PCA and RobustScaler were applied across the full dataset, introducing indirect look-ahead bias that would require rolling, out-of-sample refitting for real-time deployment. Ultimately, the index serves as a descriptive "thermometer" signal for periods when the gold safe haven hedge is likely to break down or the opposite. Data DescriptionThis repository contains the raw data to train the model and produce findings in the thesis described above. File Formats: .csv Data Included: hourly data of XAUUSD, NAS100, US500, USDX, VIX sourced from Pepperstone via MT5. Each file contains date, time, open, high, low, close, tickvol, vol, spread attributes. US10Y and US02Y (US Treasury bond yields) sourced from FRED only contains daily data of date and yield rates. Coverage period: Raw data spans 2019 – January 2026. The thesis uses April 2020 – January 2026 after cleansing Note: The dataset provided is raw; it contains anomalies and inconsistencies. Accessible yield rates are only available in daily timeframe and published at the end of the day. Data cleaning and preprocessing and normalization are required before use. Data Availability and Terms of Use DisclaimerThe data files associated with this record contain historical market candle data extracted from the MetaTrader 5 platform via Pepperstone Group Limited. This data is proprietary to the broker and its third-party liquidity providers. In compliance with the broker's data redistribution policies, the raw data files are Restricted and are not available for public download or commercial use. For Academic Verification: Access to the raw files may be requested exclusively by verified academic researchers for the sole purpose of reproducing and validating the findings published in the corresponding paper. Replication Alternative: Researchers wishing to replicate this study independently are encouraged to use the provided source methodologies/code alongside their own valid MetaTrader 5 data connection.
Institution: Binus University
Language: English
Field: Decision Sciences
Domain: Social Sciences
Open Access status: green
OpenAlex ID: W7203875476
