{
  "version": "1.0",
  "article": "https://decentralised.news/qlib-ic-rankic-prediction-horizon-2027",
  "title": "Qlib IC and RankIC in 2027: Match the Signal to Its Holding Period",
  "checkedOn": "2026-11-28",
  "evidenceKind": "Executed original synthetic calculation and dated primary-source inspection",
  "scope": "One fixed score vector for five fictional assets compared with authored one-, five- and twenty-bar return labels sharing the same next-bar reference and comparison cohort.",
  "limitations": [
    "No model training, Qlib runtime or market data.",
    "Authored endpoints contain no intervening price paths or executable portfolio.",
    "One cross-section cannot measure temporal decay, factor half-life, significance or stability."
  ],
  "sources": [
    {
      "label": "Qlib report documentation",
      "url": "https://qlib.readthedocs.io/en/stable/component/report.html",
      "supports": "Definitions of the displayed IC and RankIC measures and the example forward-return label.",
      "checked": "2026-11-28"
    },
    {
      "label": "Qlib pinned Alpha158 label definition",
      "url": "https://github.com/microsoft/qlib/blob/54355232463878d2eebb91fe0ee5fa7fa1f5976c/qlib/contrib/data/handler.py",
      "supports": "Version-specific default label timing and configurable label definition.",
      "checked": "2026-11-28"
    },
    {
      "label": "Qlib pinned IC and RankIC implementation",
      "url": "https://github.com/microsoft/qlib/blob/54355232463878d2eebb91fe0ee5fa7fa1f5976c/qlib/contrib/eva/alpha.py",
      "supports": "Correlation-based score/label evaluation inspected as source; Qlib was not executed.",
      "checked": "2026-11-28"
    }
  ],
  "illustrativeInputs": {
    "assets": "A,1,100,96,99,104\nB,2,100,98,102,102\nC,3,100,100,100,100\nD,4,100,102,102,98\nE,5,100,104,99,96"
  },
  "illustrativeOutputs": {
    "summary": "All horizons use the same 5-asset complete-case cohort. Labels are endpoint close divided by the common next-bar reference, minus one.",
    "metrics": [
      {
        "label": "Assets in every horizon",
        "value": 5
      },
      {
        "label": "Assets excluded from every horizon",
        "value": 0
      },
      {
        "label": "1-bar Pearson IC",
        "value": 1
      },
      {
        "label": "1-bar Spearman RankIC",
        "value": 1
      },
      {
        "label": "5-bar Pearson IC",
        "value": 0
      },
      {
        "label": "5-bar Spearman RankIC",
        "value": 0
      },
      {
        "label": "20-bar Pearson IC",
        "value": -1
      },
      {
        "label": "20-bar Spearman RankIC",
        "value": -1
      }
    ],
    "table": {
      "columns": [
        "Asset",
        "Fixed score",
        "1-bar return (%)",
        "5-bar return (%)",
        "20-bar return (%)",
        "5-bar return midrank"
      ],
      "rows": [
        [
          "A",
          1,
          -4,
          -1,
          4,
          1.5
        ],
        [
          "B",
          2,
          -2,
          2,
          2,
          4.5
        ],
        [
          "C",
          3,
          0,
          0,
          0,
          3
        ],
        [
          "D",
          4,
          2,
          2,
          -2,
          4.5
        ],
        [
          "E",
          5,
          4,
          -1,
          -4,
          1.5
        ]
      ]
    },
    "warnings": [
      "No assets were excluded for missing values.",
      "Pearson IC correlates scores with labels. RankIC correlates their ascending average ranks. Exact decimal ratios determine return ties; fewer than two paired assets or zero variance makes the relevant correlation undefined.",
      "One authored cross-section does not measure a factor’s half-life, statistical significance, temporal stability or profitable holdings. No Qlib training, market data or model run is represented."
    ]
  },
  "author": "Heath Muchena",
  "publisher": "Decentralised News"
}
