{
  "slug": "temporal-validation",
  "term": "Temporal validation",
  "aliases": [
    "time-forward validation",
    "chronological validation"
  ],
  "definition": "Temporal validation evaluates a predictor on later observations using training information available before the evaluation boundary.",
  "note": "Training on earlier observations and testing on later ones approximates a future-prediction task; a random split can expose training to future conditions. [cv-guide]\n\nIn one disk-error study, a model trained on 1 month of data and tested on the following month reached a true-positive rate of 91.64% at a 0.1% false-positive rate under random cross-validation, but 36.50% under time-forward evaluation. The authors attribute the gap to time-sensitive and environment-sensitive features; it is setting-specific, not a universal correction factor. [xu-atc18]\n\nChronological separation differs from grouping by drive identity and does not by itself test generalization to unseen drives. Feature selection and preprocessing must be fitted using training data only. [leakage-guide]",
  "limitations": [
    {
      "text": "Storage evaluation should state prediction time, outcome horizon, label availability, drive overlap and test prevalence; a chronological split alone is not proof that all leakage is absent.",
      "citationIds": [
        "xu-atc18",
        "cv-guide",
        "leakage-guide"
      ]
    }
  ],
  "related": [
    "smart",
    "class-prevalence",
    "precision",
    "recall",
    "f1-score",
    "drive-day",
    "prediction-horizon",
    "grouped-cross-validation",
    "failure-label",
    "failure-operation-ticket",
    "matthews-correlation-coefficient",
    "label-shift"
  ],
  "citations": [
    {
      "id": "cv-guide",
      "title": "scikit-learn: cross-validation, grouped data and time-series evaluation.",
      "url": "https://scikit-learn.org/stable/modules/cross_validation.html",
      "accessed": "2026-10-23"
    },
    {
      "id": "xu-atc18",
      "title": "Xu et al. Improving Service Availability of Cloud Systems by Predicting Disk Error. USENIX ATC 2018, sections 4.1 and 4.4.",
      "url": "https://www.usenix.org/system/files/conference/atc18/atc18-xu-yong.pdf",
      "accessed": "2026-10-23"
    },
    {
      "id": "leakage-guide",
      "title": "scikit-learn: common pitfalls, preprocessing and data leakage.",
      "url": "https://scikit-learn.org/stable/common_pitfalls.html#data-leakage",
      "accessed": "2026-10-23"
    }
  ],
  "status": "shipping",
  "advantages": [
    {
      "text": "Expanding-window folds, where each training set is a superset of the previous one and test folds cover equal durations, give comparable metrics across several forward boundaries.",
      "citationIds": [
        "cv-guide"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-23",
  "provenance": [
    "xu-atc18 re-read 2026-10-23, sections 4.1 and 4.4, for the one-month training window and the 91.64% versus 36.50% comparison.",
    "cv-guide re-read 2026-10-23 for the time-series split description.",
    "leakage-guide re-read 2026-10-23 for preprocessing leakage."
  ]
}
