Skip to main content
QUICK REVIEW

[Paper Review] A Comparison of Public Causal Search Packages on Linear, Gaussian Data with No Latent Variables

Joseph Ramsey, Bryan Andrews|arXiv (Cornell University)|Sep 13, 2017
Bayesian Modeling and Causal InferenceComputer Science9 references7 citations
TL;DR

This paper benchmarks five public causal discovery packages—Tetrad (Java), BNT (Matlab), pcalg (R), and bnlearn (R)—on linear, Gaussian, acyclic graphical models with no latent variables. Using 270 datasets across varying sample sizes (100–1000), variable counts (50–500), and graph densities (2–6), it evaluates adjacency and orientation accuracy as well as runtime. Tetrad consistently outperforms others in structure recovery, especially in high-dimensional settings, while bnlearn and pcalg show strong performance in moderate settings, and BNT is notably slower.

ABSTRACT

We compare Tetrad (Java) algorithms to the other public software packages BNT (Bayes Net Toolbox, Matlab), pcalg (R), bnlearn (R) on the \vanilla" task of recovering DAG structure to the extent possible from data generated recursively from linear, Gaussian structure equation models (SEMs) with no latent variables, for random graphs, with no additional knowledge of variable order or adjacency structure, and without additional specification of intervention information. Each one of the above packages offers at least one implementation suitable to this purpose. We compare them on adjacency and orientation accuracy as well as time performance, for fixed datasets. We vary the number of variables, the number of samples, and the density of graph, for a total of 27 combinations, averaging all statistics over 10 runs, for a total of 270 datasets. All runs are carried out on the same machine and on their native platforms. An interactive visualization tool is provided for the reader who wishes to know more than can be documented explicitly in this report.

Motivation & Objective

  • To provide a head-to-head comparison of widely used public causal search packages on a standardized, realistic benchmark task.
  • To evaluate performance differences in adjacency and orientation accuracy, and execution time, under identical conditions.
  • To establish a baseline for future algorithm development and tool selection in causal discovery.
  • To offer an interactive visualization tool to explore detailed results beyond tabulated summaries.

Proposed method

  • Simulate 270 datasets from linear, Gaussian structural equation models with no latent variables, varying sample size (100, 500, 1000), number of variables (50, 100, 500), and average graph degree (2, 4, 6).
  • Use random DAG generation with forward-order edge addition and coefficients drawn uniformly from (0.2, 0.9), and error variances from (1, 3).
  • Run each algorithm on its native platform (Java, Matlab, R) on the same machine and datasets to ensure fair comparison.
  • Measure performance using adjacency precision (AP), adjacency recall (AR), adjacency F1 (AHP), orientation F1 (AHR), Markov blanket adjacency (McAdj), Markov blanket arrow accuracy (McArrow), and execution time (E).
  • Average results over 10 independent runs per configuration and compile into a comprehensive dataset for interactive visualization.
  • Use an interactive web-based tool to explore results beyond static tables, enabling users to compare algorithms across parameter combinations.

Experimental results

Research questions

  • RQ1How do Tetrad, BNT, pcalg, and bnlearn compare in adjacency and orientation accuracy across varying sample sizes and graph sizes?
  • RQ2Which package achieves the highest structure recovery accuracy (F1 scores) in high-dimensional settings (500 variables)?
  • RQ3What is the relative runtime performance of each package, and how does it scale with increasing sample size and graph complexity?
  • RQ4How consistent are the results across multiple runs, and which algorithms show the most stable performance?
  • RQ5Which algorithm performs best on the 'vanilla' causal discovery task: linear, Gaussian, no latent variables, no intervention data?

Key findings

  • Tetrad (Java) achieves the highest average adjacency F1 (AHP) of 0.97 and orientation F1 (AHR) of 0.92 across all configurations, particularly excelling at high variable counts (500 variables).
  • bnlearn (R) shows strong performance with an average McAdj of 0.97 and McArrow of 0.87 at 500 variables and 1000 samples, outperforming most others in high-dimensional settings.
  • pcalg (R) achieves high adjacency precision (AP) of 0.99 and recall (AR) of 0.97 at 500 variables and 1000 samples, but has slower runtime (mean 39.69s) compared to Tetrad (mean 33.51s).
  • BNT (Matlab) is significantly slower than others, with a mean runtime of 71.41s for 500 variables and 1000 samples, and shows lower accuracy (AP: 0.86, AR: 0.99) in some configurations.
  • Tetrad consistently outperforms other packages in orientation accuracy (AHR) and McArrow, achieving 0.89 at 500 variables and 1000 samples, indicating better arrow direction recovery.
  • The interactive visualization tool reveals that Tetrad and bnlearn maintain high accuracy across all parameter combinations, while BNT and pcalg show more variability, especially in high-dimensional, low-sample regimes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.