Home Research Data & Code

💻 Code & 📦 Data

This page contains some (hopefully) useful Python code and data used in our research. An acknowledgement and citation of doi.org/10.17605/OSF.IO/Z2486 in your paper would be much appreciated.

💻 Code

Option-Implied Moments (Python)

📁 Computed Moments & Characteristics

qmoms uses out-the-money (OTM) implied volatilities interpolated as a function of moneyness (Strike/Underlying or Strike/Forward) within the available range. Outside the available range, boundary values are extended. OTM Definition: moneyness ≥ 1 for calls and < 1 for puts.

📦 Data

Data hosted in OSF Data Repository

Direct Downloads

  • From Carbon Tail Risk (2021 RFS)
    📊 Excel Data (2020-05-20)

  • From Measuring Equity Risk with Option-implied Correlations (2012 RFS)
    📁 Zipped mat Data (1996–2009)

    Contents

    Contains 5 MATLAB .mat files:

    • market_betas_1996_2009.mat:
      Structure betas with 6 different beta methodologies, aligned to a common timeline in time vector dt. Also includes permno ID vector. In the paper we used:

      • implied: impl_daily_251d_mfiv, impl_monthly_60m_mfiv
      • historical: hist_daily_251d, hist_monthly_60m
    • id_dt.mat:
      Time vector dt, and vector of IDs (PERMNO from CRSP). The first PERMNO = 999999 is the market itself (S&P 500).

    • weights.mat:
      Synthetic weights w of stocks in the S&P 500. The first column is NaN because it refers to the market itself.

    • dailyret.mat:
      Daily returns (ret and retx for ex-div returns) for the S&P 500 and its components.

    • mnthly_ret.mat:
      Monthly returns retm for the S&P 500 and its components. Includes time vector dtm.