> ## Documentation Index
> Fetch the complete documentation index at: https://raymondchang.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Leakage casebook

> 資料洩漏的常見案例與檢查方法。

> [!NOTE]
>
> **Status of this page：** 大綱（skeleton）。內容尚未撰寫，未經來源驗證。案例將以學術與公開資料為主，不含任何雇主內部資料。

## 大綱

1. 洩漏分類：target leakage、train-test contamination、時間洩漏
2. 標準化與特徵選擇在切分前執行的常見錯誤
3. 重疊 label 與相鄰樣本的洩漏
4. 外部資料的公布時點與修正版本
5. 檢查流程：特徵重要性異常、過高的樣本外績效、時間錯位測試

## 面試常問

* 如何一眼看出模型有洩漏？
* 先標準化再切分訓練測試，為什麼是錯的？

## Related pages

* [Backtest bias taxonomy](https://raymondchang.me/quantitative-research/backtesting/bias-taxonomy.md)
* [Features and labels](https://raymondchang.me/quantitative-research/ml/features-labels.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.