Abstract
Binning (a.k.a. discretization) of numerically continuous measurements is a wide-spread but controversial practice in data collection, analysis, and presentation. The consequences of binning have been evaluated for many different kinds of data analysis methods, however so far the effect of binning on causal discovery algorithms has not been directly investigated. This paper reports the results of a simulation study that examined the effect of binning on the Greedy Equivalence Search (GES) causal discovery algorithm. Our findings suggest that unbinned continuous data often result in the highest search performance, but some exceptions are identified. We also found that binned data are more sensitive to changes in sample size and tuning parameters, and identified some interactive effects between sample size, binning, and tuning parameter on performance.
Introduction
In data science, "binning" or discretization is the process of transforming continuous numerical values into categorical buckets. While popular for simplifying models or reducing noise, its impact on Causal Discovery—inferring cause-and-effect relationships from observational data—remains under-explored. Causal discovery relies on subtle statistical dependencies; excessive binning might lead to missing real causal links (Type II error) or identifying spurious ones (Type I error). This study quantifies these effects on the Greedy Equivalence Search (GES) algorithm.
Methods
The researchers conducted a large-scale simulation study using the pcalg and graph packages in R. The workflow utilized:
- Algorithm: Greedy Equivalence Search (GES), a score-based algorithm optimizing a penalized likelihood score (BIC).
- Tuning: A tuning parameter ($\lambda$) was introduced to the BIC score, where higher $\lambda$ values favor simpler graphs.
- Binning Conditions: Five levels were tested: 2, 5, 10, and 15 equal-interval bins, alongside original unbinned continuous data.
- Metrics: Performance was measured via F1 Score (edge existence) and Structural Hamming Distance (SHD) (overall graph accuracy).
Datasets
The simulation employed five "Gold Standard" Directed Acyclic Graphs (DAGs) with varying complexity and density to test the algorithm's robustness.
Datasets of 100, 500, and 1,000 samples were generated for each graph to observe interactions between data volume and discretization levels.
Key Results and Insights
The study revealed several critical trends regarding how discretization affects causal inference:
- Continuous Data Superiority: In most scenarios, unbinned continuous data achieved the lowest SHD, indicating the most accurate structural recovery. For instance, in DAG 2, continuous data yielded an SHD of approximately 5, compared to nearly 9 for the 2-bin version.
- The DAG 3 Paradox: A specific 5-node structure (DAG 3) exhibited anomalous behavior where performance on binned data was notably higher than on continuous data, suggesting that certain graph topologies are uniquely sensitive to scoring in discrete vs. continuous spaces.
- Sample Size Sensitivity: At small sample sizes ($N=100$), performance was highly volatile based on binning and tuning choices. At $N=1,000$, the signal from continuous data consistently outperformed binned variants.
- Tuning Parameter Impact: Binned data proved significantly more sensitive to the $\lambda$ tuning parameter. Higher $\lambda$ improved precision but severely degraded recall, highlighting a delicate trade-off when working with discretized data.
Conclusion
The findings strongly suggest that for causal discovery tasks, maintaining data in its continuous form is preferable. Discretization generally degrades performance and increases sensitivity to hyperparameter selection. Future research should explore non-linear relationships and alternative binning strategies, such as equal-frequency or supervised discretization, to further refine these guidelines.
Summary updated