Repository navigation
Updates for Version 8.0.0
Page last updated: November 9, 2026.
Interim up-to-date beta versions of the Tetrad launch JAR with the
updates listed below can be downloaded using this link in py-tetrad:
https://github.com/cmu-phil/py-tetrad/blob/main/pytetrad/resources/tetrad-current.jar
To download the beta version, click the link above and then click the
button with the downward-pointing arrow in the upper-right corner of the
page. This will save a file called tetrad-current.jar, which is a
launchable Tetrad interface JAR. You may rename this file if you wish to
distinguish versions.
This release substantially expands Tetrad's nonlinear and mixed-data
workflow, introducing random Fourier feature (RFF) modeling frameworks
with heavy-tailed likelihoods, alongside strengthened diagnostics,
pre-search data auditing, calibration tooling, improved simulation
tools, exact discrete inference improvements, and a new dark-mode--
compatible interface.
It also adds a substantial body of work on latent-variable discovery,
missing data, and usability. New in this area are the RLCD family of
rank-based latent causal discovery methods, with background knowledge,
missing-data and ceiling-censoring support, and a stability report;
stratified rank tests for data gathered under several regimes; a single
three-way correctness contract shared by FCIT, FCIT-ZM, and the Star-FCI
family (BFCI, GFCI, SP-FCI, GRaSP-FCI); pooled multi-dataset methods for the LiNGAM and FASK families; robust
and pooled SEM estimation; an extended missing-data framework with its
own family of evaluation harnesses; and a broad set of interface changes
aimed at real data analysis -- graph layout, curved edge routing, zoom
and font scaling, multi-target graph comparison, dataset selection in the
estimator editors, and the plot matrix made reachable wherever it is
useful.
The newest latent-variable algorithms -- BFCI in its consolidated form,
the LV heuristic, and RLCD -- are marked experimental for this release.
They run and are tested, but their behavior at scale on real data has not
yet been measured, and their options may still change. Algorithms removed
or renamed since 7.6.10 are retained as unregistered stubs so that
sessions saved by earlier versions continue to load (item 108 under Bug
Fixes).
In addition, all identified bugs in the Tetrad interface have been fixed
and the py-tetrad Python wrapper updated to the latest version. One
correctness fix deserves attention before results are relied on: an
inverted definite-noncollider test invalidated adjustment sets computed
from PAGs, described as item 77 under Bug Fixes below.
New features
1. Added dark mode and theme-aware interface rendering.
Tetrad now includes a dark mode and broader theme-aware rendering across
the interface. Session and graph workbenches, nodes, edges, plots,
tables, and related UI components have been updated to respect the
active Swing look-and-feel. This improves readability and visual
consistency in both light and dark themes.
2. Renamed and unified FF tests and scores (formerly KFF).
The previously named KFF tests and scores have been renamed to FF
(Fourier Features) tests and scores to better reflect their underlying
methodology. Naming, defaults, and parameterization have been unified
across tests and scores, improving clarity and consistency in hybrid
workflows.
3. Added FFCI conditional independence test.
A new fast, general conditional independence test, FFCI, has been
added. FFCI uses random Fourier feature approximations to perform
nonlinear conditional independence testing efficiently and is designed
to scale to moderate and large sample sizes.
4. Added FFML score.
A new nonlinear likelihood-based score, FFML (Fourier Features --
Maximum Likelihood), has been added. FFML approximates
Gaussian-process marginal likelihood using random Fourier features and
scales well to larger datasets. A slower full-Gram-matrix version
remains available as KML (Kernel Maximum Likelihood). These scores
are optimizations of the Gaussian-process score introduced in Huang,
Zhang, Schölkopf, and Zhang (2018).
5. Added mixed versions of FFCI and FFML.
Mixed-data variants of both the FFCI test and the FFML score have been
added to support datasets containing both continuous and discrete
variables. Discrete variables are handled natively through appropriate
feature encodings, allowing nonlinear causal discovery to be applied
directly to mixed datasets.
6. Added general BIC scores for additive-noise DAG search.
The general BIC scores KCV-BIC (full Gram matrix, slower) and
RFF-BIC (Fourier feature approximation, faster) remain available for
users who wish to orient all edges in a DAG under additive noise
assumptions. These scores are intended for DAG-search methods rather
than FGES and are useful when full orientation is desired rather than a
CPDAG.
7. Improved PC-Max performance and robustness.
PC-Max has been substantially improved when used with FF-CI, often
matching or exceeding the performance of score-based methods in
simulation for moderate-density nonlinear models while remaining
computationally efficient.
8. Added cycle-prevention checks during collider orientation.
PC now explicitly forbids collider orientations that would introduce
directed cycles, improving correctness and stability in finite-sample
settings.
9. Expanded MAX-P collider orientation options.
MAX-P collider orientation now supports global and depth-stratified
variants, improved tie handling, and optional logging for diagnostics.
10. Added a diagnostic tool for detecting nonlinear and additive structure.
A new analysis tool has been added to the Tools menu of the Data
box, allowing users to detect nonlinear and additive relationships
directly from data. This tool helps users choose appropriate causal
discovery algorithms.
11. Added Vertex Checker and Markov diagnostics.
A new Vertex Checker tool has been added for diagnosing local
violations of the Markov property in an estimated graph. For each
vertex, the tool evaluates whether the conditional independencies
implied by the graph (given its Markov blanket) are supported by the
data using a selected conditional independence test.
The resulting p-values are aggregated into per-vertex diagnostics,
allowing users to identify specific variables where the model appears
mis-specified.
This tool extends the global Markov checking framework by localizing
discrepancies to individual vertices. In addition to reporting
vertex-level and model-wide uniformity statistics, the tool includes a
model repair option, which explores nearby graphs (via single-edge
edits) and ranks candidate modifications according to improvements in
vertex-level and overall Markov fit.
This workflow transforms Markov checking from a global goodness-of-fit
statistic into a localized model-debugging framework.
12. Added DAG Factorization Comparison tool.
A new visualization tool has been added for assessing how well a
DAG-based factorized decoding recovers the marginal structure of a
dataset.
The tool takes a dataset and a DAG as input and displays two
synchronized plot matrices:
- the original data on the left
- an encoded--decoded reconstruction on the right, where the decode
step is factorized according to the supplied DAG
A shared controller keeps the same variable pair and plot type in view
across both panels, making it easy to visually compare recovered
scatterplots and marginal histograms.
Internally, the reconstruction uses mechanisms learned from the dataset
(similar to the previous Trained DAG Simulator). The resulting
reconstructed data can also be exported and used downstream in other
boxes in the interface.
13. Added DAG Model Scores panel.
A new model-scoring panel has been added for evaluating proposed
DAGs against a dataset.
The panel takes a dataset and one or more DAGs as input and reports a
table of metrics such as:
- linear-Gaussian SEM fit measures (BIC, χ², CFI, model p-value,
RMSEA) - nonlinear and mixed-data scores such as FF-ML and Minimax
t-RFF BIC
This provides a single location for comparing multiple notions of model
fit.
14. Added TRFF CI Test.
A new robust conditional independence test, TRFF, has been
added. The test models nonlinear relationships using random Fourier
feature representations and evaluates conditional dependence via
heavy-tailed regression residuals.
A minimax aggregation principle guards against heterogeneous effects and
local violations of modeling assumptions.
15. Added TRFF BIC Score.
A complementary nonlinear score, TRFF BIC, represents
conditional response functions using random Fourier feature expansions
combined with a heavy-tailed likelihood and minimax aggregation.
It scales well to larger datasets and often performs competitively with
FF-ML.
16. Added GCM CI Test.
The Generalized Covariance Measure (GCM) test fits regressions for
X|Z and Y|Z, computes residuals, and tests independence between
residuals. The method is computationally efficient because its runtime
is dominated by the regression fits rather than kernel operations.
17. Added a new text-based Bayes Updater interface.
The previous interface has been replaced with a simpler text-based
interface designed to be easier to use and more compatible with
LLM-based workflows.
18. Added experimental doubly robust ATE tool.
An experimental tool for computing doubly robust average treatment
effects (ATEs) has been added in the Regression box.
19. Unified mixed-data nonlinear causal discovery workflow.
Nonlinear tests, scores, simulation, and ATE estimation now consistently
support mixed continuous and discrete datasets across the interface.
20. Experimental: causal-learn KCI integration via Python bridge.
Tetrad can optionally call the Kernel-based Conditional Independence
(KCI) test from the Python causal-learn library via a lightweight
subprocess bridge.
This allows users to run causal-learn's kernel-based CI implementation
directly within Tetrad search algorithms such as PC and PC-Max.
Configuration uses a user-specified Python virtual environment
containing causal-learn.
Setup instructions:
https://github.com/cmu-phil/tetrad/wiki/Setup-for-CL-KCI-in-Tetrad
21. Added Trek-MIMIC latent structure discovery algorithm.
Trek-MIMIC has been added to the search interface as a new latent
structure discovery algorithm targeting Multiple Indicators Multiple
Causes (MIMIC) models. Trek-MIMIC assumes linearity and uses rank-based
tests to identify clusters of indicators sharing a common latent cause,
recover measured input variables that drive those latents, and orient
and prune the latent-latent structure. Parameters controlling latent
subset size, higher-rank expansion, and orient-and-prune behavior are
configurable from the interface.
22. Added Random MIMIC graph generator.
A new Random MIMIC graph generator has been added for simulation
and benchmarking of MIMIC-style models. Each group in the generated
graph has a single latent factor with private measured cause nodes
(parents of the latent) and measured indicator nodes (children of the
latent). A random meta-DAG is built over the latents, with optional
shared measured parents wired across pairs of latents and optional
impurities including cross-loadings, directed edges among measured
nodes, and bidirected associations.
23. Added DAO simulation.
A linear simulation type that avoid VAR-Sortability issues.
https://arxiv.org/pdf/2405.13100
24. Added efficient compositional graphoid singleton closure.
A new method has been added to GraphoidAxioms for efficiently computing singleton
conditional independencies implied by the compositional graphoid axiom. The method
runs efficiently and correctly recovers the additional CIs found by the All Subsets
option in the Markov Checker.
25. Added a comprehensive missing-data handling framework.
Missing-data handling is now explicit and configurable throughout
Tetrad. A new MissingDataPolicy framework (LISTWISE, TESTWISE,
EM_COVARIANCE, MULTIPLE_IMPUTATION, FAIL) has been wired into the core
tests and scores, including Fisher Z, SEM-BIC, BDeu, Discrete BIC,
Conditional Gaussian, Degenerate Gaussian, and MVP. Supporting
components include:
- EmCovarianceEstimator for maximum-likelihood covariance
estimation under missingness via the EM algorithm - MvnImputer and MiceLiteImputer (predictive mean matching for
mixed data) behind a common MultipleImputer interface, with
ImputationSearch for running searches over multiply imputed
datasets - MissingDataAudit for auditing missingness patterns (including
Little's MCAR test) - TestwiseRows, a shared cached row-subset utility that
substantially speeds up testwise deletion
Tests and scores now report which missing-data policies they support
via new getMissingValueSupport methods, and all policies are
documented in the parameter manual. Policy enforcement has since been
extended across the remaining tests and scores (see Bug Fixes), so that
every affected test and score either honors an explicit policy or fails
loudly rather than silently dropping rows.
26. Added a pre-search Data Audit tool.
A new Data Audit tool (Tools menu of the Data box) runs a battery
of pre-search checks on a dataset and reports coded findings, including
variable typing problems, discrete cardinality and small-cell issues,
missing data, high correlation, near-determinism, non-Gaussianity,
constant columns, serial (row-order) dependence, and sample-size
adequacy. Exactly constant columns are detected first and excluded from
downstream checks so they cannot mask other findings. The serial
dependence check uses Ljung-Box tests over short lags, reports an AR(1)
effective sample size, and can optionally be computed within groups
defined by a chosen discrete grouping variable. Findings are shown in a
sortable audit table in the interface. The audit reports findings only;
interpretation and recommendations are left to the user or to
LLM-assisted workflows.
27. Added Wild Bootstrap Markov checking.
A new wild-bootstrap Markov check provides joint calibration of the
dependencies tested by the Markov Checker using omnibus statistics with
per-observation bootstrap weights. Uniformity testing in the Markov and
Vertex checkers can now be performed in KS, AD, or WB modes, and wild
bootstrap p-values are available in the Vertex Checker and Vertex
Repair tools. A new MarkovCheckFdrCutoffP statistic reports the FDR
cutoff p-value, displayed in the interface.
28. Added a modular parameter-sweep and stability-selection framework.
ParameterSweep and StARS have been refactored around a new
SweepResult abstraction for modular parameter tuning with adjacency
instability metrics, and StabilitySelection has been updated
accordingly. Sweeps are now seed-reproducible.
29. Major FCIT overhaul.
FCIT has been substantially reworked for correctness, speed, and
configurability. Changes include memoized and shallow variants of
recursive blocking, cached separation sets reused across sweeps,
per-operation timeouts, configurable recursive depth and discriminating
path length, spurious-edge detection with legality validation, a
COMPLETE_GRAPH start mode, conflict-driven mark-flip escalation in
separator search, a saturating step for stalled removals, and detailed
thoroughness parameters exposing speed--completeness tradeoffs. The
algorithm's behavior has been validated against exhaustive
enumerations of true PAG spaces using a new family of internal
correctness harnesses.
30. Added FCIT-ZM and FCIT-SL variants.
Two new FCIT variants have been added: FCIT-ZM, which routes
commits through MAG legality gates (with configurable PAG/MAG commit
routes) and tracks interim PAGs during search, and FCIT-SL, a
Step-Lemma-guided representative search with closure-cover and
class-walk candidate generation. Both are aimed at improving the
soundness of PAG output under latent confounding. FCIT-ZM now certifies
that its final output is a legal PAG, falling back to the canonical PAG
of the certified MAG when the interim graph does not conform.
31. Improved *-FCI legality gating and determinism.
The Star-FCI framework now performs PAG legality gating by default
(StarFciGuaranteePag, with a doLegalityGating parameter), applies
Possible-D-SEP removal with a configurable maxPossibleDsepPathLength,
and includes full GFCI-style reorientation. Nondeterminism in BFCI and
GFCI traced to global RNG usage and random edge shuffling has been
removed, and a parallelized parameter now gives explicit control over
parallel stream processing. BossFci has been renamed Bfci for
naming consistency, and the original GFCI implementation is retained as
GfciOld for reproducibility.
32. Preserved background-knowledge orientations in *-FCI PAGs.
A new StarFciKeepKnowledgeOrientations base class ensures that
orientations induced by background knowledge (e.g., tiers) are
preserved in the output PAGs of GFCI, SP-FCI, FCIT, FCIT-SL, and
FCIT-ZM, while maintaining legality checks. This addresses cases where
knowledge-induced orientations were previously lost or overridden
during final orientation.
33. Added ICD algorithm.
The ICD (Iterative Causal Discovery) algorithm has been added to
the search interface for learning PAGs in the presence of latent
confounders.
34. Added new RCIT implementation.
A new implementation of the Randomized Conditional Independence Test
(RCIT) has been added, with feature-based kernel approximations and
configurable hyperparameters, replacing the previously deprecated
version.
35. Added per-edge prior support.
New EdgePriors, EdgePriorScore, and EdgePriorTest classes
allow per-edge priors on adjacency presence to be combined with
existing scores and tests. Priors can be constructed from annotations
or log-odds, restricted to variable subsets, and anchored at a chosen
significance level. A Python-friendly EdgePriorFacade supports use
from py-tetrad, and a worked usage example is included. A companion
EdgePriorScoreFacade provides the same convenience construction for
score-based searches, including scaling of priors to toll penalties and
notes on score equivalence and thread safety.
36. Added experimental BOSS-Top-K and PC-AR algorithms.
BossTopK returns a top-k pool of Best Order Score Search results
with CPDAG de-duplication, split-threshold options, and optional
cross-branch pooling. PcAr is an adjacency-rescue variant of PC
with tier-1 clash detection (CPC-ambiguous and bidirected clashes) and
posterior-odds-based recovery options. Both are marked experimental.
37. Added CD-NOD-BOSS wrapper.
A CdnodBoss wrapper has been added for the CD-NOD-BOSS algorithm,
using BOSS for backbone handling with constraint-based collider
orientation, and supporting sepset logic, collider styles, and context
exclusions.
38. Improved adjustment and effect estimation.
RecursiveAdjustment and path amenability logic have been revised to
align strictly with Perkovic et al. (JMLR 2018), including visibility
checks for MAGs, with comprehensive unit tests over DAG, MAG, and PAG
scenarios. The doubly robust ATE estimator now skips degenerate
bootstrap resamples, handles non-finite estimates, and uses ridge
regression with configurable regularization.
39. Extended KML score to mixed parents.
The Kernel Marginal Likelihood (KML) score now supports mixed
continuous and discrete parents via a product-kernel approach with a
configurable categorical kernel parameter.
40. Added undo/redo and live text editing in the Graph editor.
The Graph editor now supports undo/redo with full state management, and
a text editor mode supports live graph updates.
41. Added new data transforms.
New data transforms include per-variable logarithmic transformations
(with safe offset computation and round-trip consistency), a Thin
Rows transform for thinning rows by interval and offset (useful for
serially dependent data), and a source-column option in Concatenate
Datasets recording concatenation provenance.
42. Added new graph comparison statistics.
AncestorPrecision and AncestorRecall have been added to the
graph comparison statistics, along with a statistic for bidirected
edges corresponding to an existing latent common cause. Two further
statistics, NumVisibleEdges and NumCorrectVisibleEdges, report
the number of visible edges in an estimated PAG and how many of those
are correct.
43. Improved data-selection and table interactions.
The data subsetter now starts with all variables in the Selected list
(so subsetting is a one-step removal) and provides Sort/Restore acting
on both lists. Table copying across the interface now handles empty
selections properly, uses platform shortcut conventions (Command on
macOS, Control elsewhere), and offers "Select All Cells" menu options.
The subsetter additionally supports condition-based row filtering,
with discrete and continuous constraints entered in a condition field
and a live row count; condition specifications are persisted and
restored with the session.
44. Added a Guided Algorithm Card.
A new Guided Algorithm Card replaces the previous algorithm card as
the default algorithm-selection interface (the old card is retained for
backward compatibility). The new card is structured around a common
AlgorithmChooser interface and guides selection by data
characteristics -- data type, latent confounding, cyclicity, linearity,
and so on -- using filter-based narrowing rather than requiring users to
recognize algorithm names in a flat list. The card also exposes methods
for programmatically toggling experimental mode, selecting an
algorithm, and listing the tests and scores compatible with it, which
makes it scriptable from tests and from LLM-assisted workflows.
45. Added a local "Include experimental" toggle.
Editors now carry a local Include experimental checkbox in addition
to the global "Show experimental" preference. The two settings are
independent: the card's local switch governs what that editor shows,
while the global preference sets the default. The previous requirement
to restart Tetrad after changing the global preference has been removed,
and the algorithm, test, and score registries now maintain dual
instances so that experimental and non-experimental views stay
consistent. BasisFunctionBicScore is no longer marked experimental.
46. Added pooled multi-dataset search (IMaGES-style).
Score- and test-based algorithms can now be run over several datasets
at once by pooling rather than by averaging scores. A new
poolDataSets parameter, together with PooledIndependenceWrapper
and PooledScoreWrapper, allows any test or score to be applied to a
collection of datasets. For pooled independence testing, a
pooledTestMethod parameter selects the combining rule, with
Fisher's method as the default and Tippett's method available as
an alternative. Both are supported from the interface and documented in
the parameter manual.
47. Added shared adaptive basis selection across datasets.
A new MultiDataSetScoreWrapper interface lets a score construct a
single shared embedding across several datasets, and
BasisFunctionBicScore implements it so that IMaGES-style searches use
one common basis rather than a separately fitted basis per dataset. This
removes a source of incomparability between per-dataset scores. A
companion adaptiveBasisSelection parameter prunes uninformative basis
columns, with backward-compatible defaults, and
basisRankTransform adds a rank-based embedding option.
48. Added text import and export of parameter settings.
Algorithm and simulation parameter settings can now be exported as
plain text and pasted back in. A Settings as Text... button renders
a copyable summary of the current parameterization (including the
selected simulation and graph types), and a Paste Settings... button
parses such a summary back into the interface, with validation and
dropdown restoration. This makes parameterizations reproducible across
sessions, easy to include in bug reports, and easy to move between the
interface and py-tetrad or LLM-assisted workflows.
49. Added the BE-GCM conditional independence test.
A Basis-Expanded Generalized Covariance Measure (BE-GCM) test has
been added, extending the GCM test with basis-expanded regressions.
Configurable parameters include gcmMultiplierSamples,
gcmZTruncationLimit, and gcmControlFunction. Row filtering is
supported, calibration at small sample sizes has been improved, and
p-value handling at degenerate edge cases has been refined.
50. Added median ensemble graphs for bootstrap searches.
Bootstrap searches can now report a median ensemble graph, which is
constructed so as to be a legal graph of the appropriate type. The
median graph is now the default display for bootstrap searches, and the
ensemble menu has been updated for consistency.
51. Added block resampling and time-lag-aware bootstrapping.
ParameterSweep now supports group-based (block) resampling with a
configurable grouping variable, so that resampling respects clustered or
repeated-measures structure rather than treating rows as exchangeable.
Separately, bootstrap resampling for time-lagged datasets has been fixed
so that lagging occurs before resampling, preserving temporal
structure; a helper class and unit tests support this ordering across
the core algorithms.
52. Added BOSS-CCD for cyclic causal discovery.
A new BossCcd class implements BOSS-CCD, combining BOSS backbone
search with CCD-style handling of cyclic structure. The algorithm is
available from the search interface, with a usage harness and manual
entry. Relatedly, CCD Step D now accepts a parallelized flag for
optional parallel execution, and a new Select 2-Cycles action in the
graph workbench highlight menu makes 2-cycles easy to inspect in
directed cyclic graphs.
53. Added Gaussian copula correlation estimation.
A Gaussian Copula Correlation model has been added to the interface,
backed by new copula-correlation estimation in DataTransforms. This
provides a rank-based correlation estimate suitable for continuous data
with non-Gaussian marginals, usable as input wherever a correlation or
covariance matrix is accepted.
54. Added the FLOP algorithm and ILS restarts for BOSS.
FLOP (Fast Learning of Order and Parents) has been added, comprising
FlopInitialOrder for computing an initial order, FlopCore for the
correlation-matrix-based core algorithm, and a Flop wrapper for Tetrad
compatibility. FLOP provides an efficient order-based alternative that
can also supply initial orders to order-based searches such as BOSS.
In parallel, BOSS has gained a useIlsRestarts parameter implementing
an iterated local search restart strategy for escaping local optima,
together with optional randomization of candidate visit order and tie
acceptance during grow-shrink phases, all seed-reproducible. A
BossIlsFlopStudy harness is included for comparing BOSS and FLOP
search variants.
55. Added BGe scores, including degenerate-Gaussian and basis-function variants.
A BGe (Bayesian Gaussian equivalent) score has been added, with
hyperparameters bgeAlphaMu and bgeAlphaWOffset. Two extensions
follow the same pattern used for the BIC-family scores: DG-BGe,
which applies BGe over a degenerate-Gaussian embedding, and BF-BGe,
which applies it over a basis-function embedding, both governed by
truncationLimit. A discreteInteractionOrder parameter controls
interaction columns among discrete parents in the two embedded variants.
Because BGe integrates over parameters rather than penalizing them,
these scores remove the penalty-discount tuning question entirely, which
makes them a useful reference point when calibrating BIC-family
penalties on a given dataset.
56. Added a Calibration Calculator tool.
A new Calibration Calculator (replacing the earlier standalone
penalty-discount calculator) provides a single place to reason about the
two calibration knobs that most affect search results: the significance
level alpha for constraint-based methods and the penalty
discount for BIC-family scores. Backing this are new methods on
SemBicScore -- penaltyDiscountForAlpha,
penaltyDiscountForExpectedFalseEdges,
penaltyDiscountForFalseDiscoveryRate, and
minDetectablePartialCorrelation -- which express the penalty discount
in terms of interpretable quantities (a target test size, an expected
number of false edges, a target FDR given an expected degree, or a
minimum detectable partial correlation) rather than as an ad hoc
multiplier. An AlphaReport provides the corresponding calibration
report for constraint-based methods, using the LRT-family noncentral
chi-square.
A third Explanation tab gives a plain-language account of what each
quantity means, what it assumes, and how the two interact. Calculated
values are deliberately not applied automatically: the user copies
them into the parameter fields, which keeps the choice of calibration an
explicit modeling decision rather than a hidden default.
57. Added a parametric-bootstrap null reference for the Markov check.
A new MarkovCheckNullReference supplies a simulated null reference
for the Markov check, so that a failing uniformity result can be
attributed to model inadequacy rather than to miscalibration of the
test itself. Reference distributions can be generated from a trained-DAG
simulator or from a linear SEM simulator fit to the data. This addresses
the common situation in which a test's own finite-sample behavior on a
given dataset -- not the graph -- is what drives the rejection.
58. Added per-fact effective sample size for block-structured data.
A new PerFactEss utility computes an effective sample size for each
tested conditional independence fact, accounting for block structure in
the rows. Block-aware ESS has been wired into MarkovCheck and
IndTestFisherZ, with ESS options exposed in the Vertex Checker
interface, and effective sample size is now also supported in
ConditionalGaussianScore and IndTestConditionalGaussianLrt.
This matters because row dependence -- from repeated measures, panel
structure, or serial correlation -- inflates apparent evidence and is a
frequent cause of Markov check failures that have nothing to do with
structural misspecification.
59. Added block-based data transforms.
Two new transforms in the Data box support datasets with grouped rows:
Add Block ID Column, which derives a block identifier from one or
more key columns, and Center Within Blocks, which removes
block-level means. Together with grouped serial-dependence findings in
the Data Audit, these support the distinction between nuisance block
structure, which within-block centering can remove, and genuine time
series, which requires lag modeling instead.
60. Expanded the Data Audit with new checks and a notes channel.
The pre-search Data Audit has gained several new findings:
- SENTINEL_VALUE -- detects sentinel codes (e.g., 0, -1, -999)
masquerading as legitimate values in continuous variables, with
configurable thresholds and an optional recoding action - cell determinism -- flags deterministic relations among cells
- explaining subsets for near-determinism -- for
NEAR_DETERMINISM_CONTINUOUS findings, the audit now identifies the
small subset of predictors that accounts for the dependence, and
reports separately when the dependence is diffuse rather than
localized - duplicate columns
- non-positive-semidefinite pairwise correlation matrix
- complete-case singularity
- group-constant variables
A new notes() API adds a separate cross-reference channel: where a
finding is ambiguous, the audit can point to related diagnostics
without issuing a recommendation. This preserves the audit's
findings-only contract while making the connections between findings
visible. Notes are rendered as a footer in the audit interface and are
included in the JSON serialization.
61. Added a covariance matrix audit.
A new CovarianceAudit extends pre-search auditing to datasets
supplied as covariance matrices rather than raw data, checking variances,
symmetry (with correction), eigenvalue structure, correlation findings,
and sample-size adequacy. It is surfaced through the same Data Audit
action, with its own findings and report. Relatedly, the covariance file
loader now reports parsing warnings through a new getWarnings method
on the CovarianceData interface.
62. Added G-Regression for total effect estimation on MPDAGs.
A new GRegression class estimates total causal effects on MPDAGs
following Guo and Perković (2022), with validation checks, bootstrap
support, and an interface model and editor. The implementation has been
cross-checked against the R package eff2 using generated adjacency
and data files and a supporting R script, and the identification and
effect-estimation results agree.
The editor supports background knowledge with Meek-rule closure,
detecting conflicts between supplied knowledge and the input graph, and
displays witness paths and structural equations. A Joint Parents
intervention mode estimates the effect of intervening on all parents of
a target, do(parents(y)).
63. Added Observational Study, Designed Experiment, and Backbone SEM simulations.
Three new simulation types have been added, aimed at generating data
whose structure resembles that of real studies rather than generic
random SEMs:
- Observational Study -- generates variables with distinct roles
(system, exposure, outcome, confounder, proxy, and so on), with
configurable serial and panel structure. Parameters cover graph and
role structure (osGraph,osType,osForm,osDegrade),
serial and panel structure (osSerial,osPanel,
osPanelNumSubjects,osPanelEmitSubjectColumn,
osPanelEmitSubjectsAsDataSets), and discrete system variables
(osTypePropSystemDiscrete) for mixed-data evaluation. - Designed Experiment -- generates data with randomized
assignment structure. - Backbone SEM -- generates standardized strong and weak edges
with monotone margins.
A new ProvidesKnowledge interface lets a simulation publish the
background knowledge implied by its design (for example, role-based
tiers), and KnowledgeBoxModel initializes from it. This closes a gap
in which the knowledge a design obviously licenses had to be re-entered
by hand before search.
64. Added text editing of background knowledge.
The Knowledge box now has a Text tab showing knowledge in monospaced
form, with Apply and Revert buttons and dynamic parsing, so
knowledge can be edited directly as text rather than only through the
graphical editor. SimpleDataLoader now supports loading knowledge from
character streams to make this possible. Parentless knowledge boxes
include an explanatory header and syntax guide.
65. Added background-knowledge support to PAG legality checking.
A new isLegalPagModuloKnowledge check performs tier-aware PAG
validation, and fciOrientbk re-applies knowledge marks after
re-orientation, so that knowledge-refined graphs are certified as legal
rather than rejected for orientations that knowledge itself forced.
StarFciGuaranteePag and its dependents (Gfci, Bfci, SpFci,
GraspFci) have been refactored to preserve both invariant and
knowledge-forced marks through candidate handling. TestKnowledge has
been split into testKnowledgeCpdag and testKnowledgePag to separate
CPDAG and PAG semantics, which differ in what tier knowledge implies
about edge legality.
66. Added calibrated p-value reporting from scores.
A new ProvidesCalibratedPValue interface allows a score to report a
calibrated p-value alongside its score difference, implemented first for
the SEM BIC score. A scoreTestCalibratedPValues parameter enables use
of these p-values in Markov check diagnostics, and
scoreCheckPenaltyDiscount exposes the penalty discount used for score
checking as an independent parameter. This makes score-based
independence decisions comparable to test-based ones on a common
p-value scale.
67. Improved discriminating-path separator search.
The recursive discriminating-path search in R0R4StrategyTestBased now
supports max-p selection (via setDdpMaxP) and a GREEDY
optimization mode alongside the existing recursive mode, with harness
tests comparing the two. Independence tests incorporate direction-aware
strength calculations, and separating-set selection now prefers the
strongest independence rather than the first one found. GREEDY is now
the default blocking type in StarFciGuaranteePag and GfciOld.
68. Added BOSS-based initial skeletons for FASK.
A useBossAdjacencies parameter has been added to FASK, allowing the
initial skeleton to be taken from a BOSS search rather than from the
default adjacency procedure.
69. Added a symmetrized option for the TRFF LR Test.
A trffSymmetrized parameter makes the TRFF LR test invariant to the
order of the tested pair, with caching of symmetrized p-values and a
nestedFitCache for fit reuse. Documentation for the TRFF LR Test and
the Minimax Conditional Independence Test has been added to the manual.
70. Integrated Plot Matrix with the nonlinearity checks.
The nonlinearity checks table now has a Plot Matrix button that
opens a plot matrix restricted to the variables in the selected row, so
that a flagged nonlinear relationship can be inspected visually without
manually reconstructing the variable selection. PlotMatrix supports
variable preselection and subset listing to make this possible. A Copy
Table action has also been added to the nonlinearity checks panel.
71. Improved logging of final FCI orientations.
A new logFinalOrientations parameter produces rule-by-rule output from
the FCI orientation engine across the *-FCI algorithms, making it
possible to see which rule produced each mark in a final PAG. Verbose
logging in StarFciGuaranteePag has been expanded to show p-values for
failed removals, batch formatting for joint removals, and clearer
reporting of saturating steps.
72. Removed superseded methods.
Several methods that have been superseded or that did not survive
evaluation have been removed to reduce confusion:
- LegendreLrIndTest (an orthogonal polynomial mixed-data method)
has been removed, and LegendreBicScore has been withdrawn from
the score chooser, along with their supporting utilities and
documentation entries. The score class itself remains in the library,
unregistered, so code that calls it directly still compiles. - Legacy Minimax CI implementations (
MinimaxTRffIndTest,
MinimaxTRffTest,NeykovMinimaxCITest) have been removed in
favor of the current implementation. - LvBoss and its related latent-variable MAG-BIC search classes
have been removed. Their design goals are carried forward by GMAS,
which has been refined to enforce background knowledge in both
stages (refineWithKnowledge), to support atriangleEscapeOnly
two-move escape option, and to evaluate MAG maximality lazily for
speed.
73. Added wildcard batch moves in the Knowledge editor.
The Tiers and Other Groups tabs of the Knowledge box now include
wildcard pattern fields for batch variable management. Patterns use *
to match any string of characters and ? to match a single character,
with comma-separated alternatives; matching is whole-name and case
sensitive. All variables matching a pattern can be moved to a chosen
tier, or added to a knowledge group slot, in a single action. This is
especially useful for large variable sets such as lagged data, where a
pattern selects a whole lag at once. A new VariableGlob utility
performs the matching, and the previous non-functional "Find" buttons
have been removed.
74. Redesigned the Calculator editor and expanded the expression language.
The Calculator editor has been cleaned up: the number pad has been
replaced with a compact operator strip, the function list has been
widened to show full signatures, the expression area has been enlarged,
and expressions are now validated when focus leaves the field, with
visual feedback for invalid input. Several parsing bugs were fixed along
the way.
The expression language itself has gained ten new functions -- log,
log2, log1p, logit, cbrt, asinh, acosh, atanh, and mod
-- and two new distributions, Bernoulli and Binomial. All
expression descriptors have been migrated to declared arities, so that
functions report and enforce the number of arguments they accept.
75. Session node input dialogs are now generated from the model constructors.
Double-clicking a session node whose parent boxes are not correctly
configured previously showed hand-written messages that had drifted out
of sync with the code and were often wrong or misleading. These dialogs
are now generated dynamically from the model constructors themselves.
The generated message identifies parent boxes that do not yet contain a
model, lists what the current parents provide, and lists the valid input
combinations for the box, so the user can see exactly what is missing.
76. Added a parameterization editor for the Hybrid CG parametric model.
A new parameter editor for the Hybrid CG PM lets the user choose how
variables are typed when the parametric model is constructed from a
graph: using the types recorded in the graph's variables (the default),
all continuous, all discrete, or a fixed-proportion mixture. For
discrete variables, minimum and maximum category counts are
configurable.
77. Added a nonlinear near-determinism check to the Data Audit.
A new NEAR_DETERMINISM_NONLINEAR finding flags continuous variables
that are nearly smooth -- generally nonlinear -- functions of small sets
of other continuous variables, which the linear multiple-R-squared check
cannot see. For each continuous target, a determining subset is grown
greedily, scoring each candidate set by the leave-one-out
cross-validated R-squared of a natural-cubic-spline regression of the
target on the set. Because the reported R-squared is out of sample, it
cannot be inflated by basis flexibility alone; on independent data it
stays near zero even after greedy selection. The motivating case is the
Algerian forest fires dataset, where the fire-weather indices ISI and
FWI are exact nonlinear functions of other columns, invisible to both
the linear check and the cell-inspection check. Near-determinism of any
functional form is a near-faithfulness hazard that destabilizes
conditional independence judgments, so surfacing it before search
matters.
78. Added the ION algorithm for searches over overlapping variable sets.
ION (Integration of Overlapping Networks), due to Tillman and
Danks, has been moved out of work-in-progress and into the search
interface. The wrapper now runs BFCI for the per-dataset searches,
since ION requires legal PAG inputs and FCI does not guarantee legality.
The algorithm has also been made robust to noisy, mutually inconsistent
inputs -- the situation that arises whenever the per-dataset searches
make finite-sample errors -- via majority voting over conflicting
independence facts, best-effort fallbacks when the constraint set is
jointly unsatisfiable, and corrected trek-elimination accounting. On
simulated overlapping datasets that previously returned empty graphs,
the revised algorithm now recovers most true edges at high precision.
Related fixes to the companion IOD algorithm are listed under Bug
Fixes below.
79. Added the RLCD algorithm for rank-based latent causal discovery.
RLCD (Rank-based Latent Causal Discovery), following Dong et al.
(2024), has been added to the search interface. RLCD searches for latent
variables and the structure among them using rank constraints on the
covariance matrix, rather than by testing conditional independence among
measured variables alone. The core components were translated from the
causal-learn Python implementation and then extended.
The algorithm runs in two stages. Stage 1 estimates a skeleton with BOSS
(the default), FGES, or not at all, and partitions it into cliques.
Stage 2 searches each partition with a canonical-correlation
chi-squared rank test, growing covers of indicators that share a latent
cause, merging overlapping clusters, and unfolding latents over latents.
Latent-to-indicator edges are directed by convention; edges among
latents, and edges between an observed variable and a latent, are
directed only when the constraints identify a direction and are left
undirected otherwise.
Configurable behavior includes the stage-1 method and penalty discount,
the clique threshold for partitioning, the maximum rank searched, a
latent gate restricting stage-2 search to partitions that meet
rank-deficiency conditions, a no-collider check, and an option to skip
stage 1 entirely so that stage 2 runs unconstrained.
Several features have no counterpart in the reference implementations:
background knowledge (tiers, including ancestry constraints that pass
through latents, with an option to withhold tiers from stage 1 so that
the partition is unaffected); resolution of two-indicator latents using
third-order cumulants, which can distinguish a direct edge between two
indicators from an additional latent; qualification of observed-to-latent
edges, which uses a directed observed parent and the chain-versus-collider
signature to decide a direction that rank constraints alone cannot fix;
and an observed-explanation guard that drops clusters whose rank
deficiency is explained by other observed variables.
Known limits are worth stating plainly. The clique-based stage 1 and the
merge and finish rules are departures from the paper, inherited from the
reference code, so the paper's identifiability theorem does not transfer
to the implementation as written. The observed-explanation guard cannot
see a saturated triangle of observed variables. Several of the newer
options are unit-tested but not yet measured at scale.
For these reasons RLCD is marked experimental in this release. It is
available in the search interface when experimental algorithms are
shown, and its options may change before it is promoted.
80. Added missing-data, censoring, and stability support to RLCD.
RLCD now accepts data with missing values under an explicit policy
rather than failing or silently dropping rows. Supported paths are
listwise deletion, test-wise deletion with per-query complete rows and
guards on sample size, EM or pairwise-complete covariance with a
per-query effective sample size, and pooling over multiple imputations.
Asked to run on data with missing values and no policy, the algorithm
refuses and reports which policies exist and what each is for.
For data with a measurement ceiling, a new censored EM covariance
estimator treats cells at a known bound as right-censored and cells that
are absent as missing at random, using a deterministic expectation step
based on truncated-normal moments by default, with optional Gibbs draws.
This matters because a ceiling is a form of missingness that is not at
random: in simulation, a ceiling defeats both EM covariance and pooling
over imputations, while the censored estimator recovers.
A new stability summary optionally reruns RLCD on bootstrap resamples
after the main run, bounded by a run count, a wall-clock budget, and the
stop button. It tallies how often variables cluster together, how often
observed pairs are adjacent, and how many latents each run found, all
expressed in terms of observed variables. A one-line summary is attached
to the output graph as an attribute and the full report is written to the
log.
81. Added stratified (domain-pooled) rank tests for nonstationary data.
A new Stratified Rank test, following phase 1 of the LCD-NOD method
of Dong et al. (2026), pools rank decisions across strata defined by a
domain column, so that structure can be recovered from data gathered
under several regimes without assuming that the covariance is the same
in each. Two engines are provided: a stratified chi-squared rank test
that pools per-domain statistics, and a permutation version for
non-Gaussian data. The test is selected like any other, with a
domainColumn parameter naming the stratifying variable, and is wired
into PC, FOFC, TSC, and RLCD. The manual documents its use and its
limitations.
82. Folded the Latent Structure box into the Search box.
The separate "Latent Structure" session node has been removed and its
functionality moved into the ordinary Search box, which now accepts
latent cluster parents and runs block-based searches directly. The
algorithm chooser filters by box mode so that the options offered match
what the box can actually do. Block discovery algorithms (TSC, FOFC,
FTFC, and relatives) additionally accept a pooled covariance matrix
derived from multiple imputations, with the effective sample size
estimated automatically.
83. Merged the BFCI-Bryan correctness machinery into Star-FCI.
During the development cycle two experimental algorithms, BFCI-Bryan and
BFCI-Bryan-Score, were added as separate arms for comparison against
BFCI. They followed Bryan Andrews's formulation of the gated Star-FCI
removal step: the state of the search is the committed sepset map alone,
the carried graph is always the projection of that map, separating sets
are re-selected rather than frozen when a candidate induces an illegal
orientation, and an optional I-map gate requires each committed state to
be an I-map of the independence test. The Score variant added a RICF-BIC
scoring step to every gated move.
For the release, that machinery has been moved into the base StarFci
class, where it is shared by BFCI, GFCI, SP-FCI, and GRaSP-FCI, and the
I-map gate and score step themselves now live in a single
CorrectnessGates helper that is also used by FCIT and FCIT-ZM (see
item 84). All five Star-FCI algorithms, and FCIT and FCIT-ZM, therefore
offer the same three-way fcitCorrectness choice: 1 = guarantee that
each committed state is an I-map of the test; 2 = require a strict score
improvement, under RICF BIC on the converted MAG, for every removal; 3 =
run the saturating step for stalled removals. The default is 1 for the
algorithms exposed in the interface. Background knowledge, including
tiers, forbidden and required edges, continues to be respected under all
three options; parity tests confirm that each option produces the same
PAG as the corresponding standalone fork did, with and without knowledge.
BFCI-Bryan and BFCI-Bryan-Score no longer appear in the algorithm
chooser. Their classes are retained, unregistered, so that sessions saved
with them continue to load; such a session re-runs through BFCI with the
equivalent correctness option (option 1 or 3 for BFCI-Bryan, depending on
its saved I-map setting; option 2 for BFCI-Bryan-Score). The usePass0
and reharvestSepsets options of the forks were not carried over and are
ignored with a logged notice.
The status of the three options should be kept distinct. Option 1 is
proved to commit only states that assert no independence the test has
not confirmed; its freedom from stalls rests on a conjecture about Markov
equivalence of projections that has been checked exhaustively only on
small graphs, and when imapAlpha is set equal to the test's alpha its
accuracy on finite data is reduced. Option 3 is proved correct in the
oracle under the GFCI assumptions. Option 2 is a heuristic filter and
carries no correctness guarantee of its own; it requires a SEM BIC score
with a zero structure prior.
The consolidated BFCI is marked experimental for this release, since
the default option is new and its behavior on real data at scale has not
yet been measured.
84. Reorganized FCIT correctness into a single parameter.
The several independent switches governing how strictly FCIT enforces
correctness have been replaced by one fcitCorrectness parameter with
three modes: guarantee that each committed state is an I-map of the
test, require that every removal strictly improves the score (using RICF
BIC on the converted MAG), or run the saturating step for stalled
removals. The same parameter, with the same three meanings, now governs
FCIT-ZM and the Star-FCI family (item 83), with the gates implemented
once in a shared CorrectnessGates helper. FCIT-SL is deliberately
excluded: it has no saturating step, and its Step-Lemma class walk is its
own escape from stalls. A retrySepsetsOnRevert option retries separator search for pairs whose
removal was reverted, and separator search itself has been refactored
into a resumable sweep with conflict-driven mark-flip escalation.
Logging reports which mode is active and why a removal was gated.
A companion graspUseRaskuttiUhler parameter selects between the
test-based Raskutti-Uhler method and the score-based method when GRaSP
supplies the starting graph.
85. Consolidated the Star-FCI framework.
Background-knowledge handling has been moved into the base StarFci
class, so the separate knowledge-preserving subclass is no longer
needed, and the legality check now validates PAGs modulo knowledge,
which gives a stricter guarantee without erasing marks that knowledge
itself forced. A guaranteePag parameter, which enforces a final
legality check and repair, is exposed on FCI, FCI-Max, and CFCI; the
Star-FCI family certifies legality on every commit and so does not need
it. Separators found
during discriminating-path search are now remembered across trials,
which materially speeds up rule R4 on large models, and a depth clamp
bounds subset search in large possible-D-SEP pools. The unmaintained
StarFciOld implementation has been removed. Two further experimental
variants, BFCI-C and BFCI-D, explored sepset projection and a
recursive-blocking fallback for R4; they are retained in the code base
but are not registered in the interface.
86. Replaced LV-BOSS with an experimental order-projection version.
The earlier LV-BOSS classes have been superseded by
LvBossExperimental, built on a new MagOrderProjection that
projects a total order of the observed variables to a high-scoring
ancestral graph by hill climbing with controlled plateau escapes. The
algorithm is marked experimental and documented as such: it recovers the
right equivalence class on oracle tests, but it remains slow enough on
finite samples that the included comparison harness, which runs it
against BFCI, GFCI, and FCIT, is the honest way to judge whether it is
worth using on a given problem.
87. Split linear SEM simulation into Gaussian and non-Gaussian versions.
The former "Linear Structural Equation Model" simulation has been split
into Linear Gaussian SEM and Linear Non-Gaussian SEM, the latter
drawing errors from a configurable non-Gaussian family, which is what
LiNGAM-style algorithms need in order to be evaluated at all. Parameter
mapping preserves backward compatibility with saved sessions. The DaO
simulation has gained a daoErrorDistribution parameter selecting among
error families with matched variance, and a Laplace sampler has been
added to the random number utilities.
88. Improved the LiNGAM family.
Several changes to the linear non-Gaussian methods:
- LiNGAM has gained an optional regression refit-and-prune step, which
is step 5 of Shimizu et al. (2006), with a significance level for
the pruning t-test. - Direct-LiNGAM now approximates negentropy with the log-cosh
function, following Hyvärinen (1998), rather than the quadratic term
used previously. - Direct-LiNGAM accepts background knowledge (tiers, required and
forbidden edges) in its parent selection, accepts several datasets
at once with sample-size weighting in the pairwise objective,
records and exposes the causal order it found, and now rejects data
with missing values explicitly rather than producing an answer from
whatever rows survive. - The stability check in LiNG-D no longer depends on an eigenvector
decomposition that could fail outright; it uses a values-only
decomposition with a conservative Gelfand-norm fallback.
89. Added FASK-Pool and mixed-data support for FASK.
FASK-Pool performs multi-dataset causal discovery by pooling the
FASK left-right statistic across datasets, with sample-size or
inverse-variance weighting, bootstrap variance estimation, and
per-edge heterogeneity statistics. A shared PooledAdjacencySearch
offers five ways to estimate the common skeleton: IMaGES, pooled FAS,
moral-graph FAS, moral-graph LiNG, their intersection, and a variant
that restricts IMaGES to the moral-graph FAS skeleton for precision.
Both FASK-Pool and FASK-Vote can take an external graph for the
skeleton and for default orientations, with cross-dataset override under
a strict consensus rule and provenance tracking for each orientation
decision. FASK, FASK-Pool, and FASK-Vote now accept mixed data,
conditioning the pairwise statistics on the continuous variables only
and leaving edges at discrete variables undirected where orientation is
not supported.
90. Improved the cyclic algorithms.
CCD has gained configurable collider rules for unshielded triples
(greedy, conservative, and majority), which trades endpoint accuracy
against cycle detection, and a separate configurable test for the
adjacency phase, distinct from the test used in orientation. A new
equivalence test based on two one-sided tests addresses the problem that
a weak association is deleted by an ordinary test whether or not it is
genuinely absent; it is available through useEquivalenceRemoval with a
configurable margin. A new transform computes the cyclic PAG of a
directed cyclic graph, which is what a CCD result should be compared
against. The Cyclic Pairwise algorithm has gained two-cycle detection
under its own alpha, and a benchmarking harness compares CCD, Cyclic
Pairwise, FASK-Vote, and FASK-Pool on multi-subject cyclic data.
91. Added robust standard errors and pooled estimation to SEM.
The SEM estimator can now report Satorra-Bentler robust standard
errors and a scaled chi-square with corrected p-values, computed by a
sandwich estimator with a numerical Jacobian, which is the right
correction when the data are not normal. A checkbox in the estimator
editor turns the robust statistics on.
Separately, a Pooled Report estimates the model on all datasets
supplied and combines the estimates by Rubin's rules, reporting
pooled standard errors and the fraction of missing information, which is
what multiple imputation requires if its uncertainty is to be reported
honestly rather than understated.
92. Added covariance-estimate and residual-covariance data boxes.
A new covariance estimate model replaces a continuous dataset by a
single covariance matrix estimated from all rows, including incomplete
ones, by EM, by pairwise-complete deletion, or by censored EM for data
with a ceiling. Three effective-sample-size modes are offered, full N,
mean pairwise, and minimum pairwise, since the full count is optimistic
once rows are incomplete.
A new residual covariance box takes an estimated SEM and computes
the covariance among the measured variables that the model leaves
unexplained, which can then be fed to any box that accepts a covariance
matrix. When the residual matrix is not positive definite, a diagonal
ridge is applied and the loadings of the deficient direction are logged,
so that the misfitting block can be identified rather than merely
smoothed over.
93. Extended the missing-data framework.
The framework introduced earlier has been extended in several
directions:
- A PAIRWISE_COVARIANCE policy estimates the covariance matrix by
pairwise deletion, with a positive-definite adjustment and
rescaling, as an alternative to the EM path. - The MICE-lite imputer now performs proper multiple imputation,
drawing regression coefficients from their posterior rather than
fixing them at their estimates, which is what makes pooled variance
estimates correct. It also supports polynomial terms for continuous
variables, treats discrete targets as genuinely categorical rather
than as numbers, applies a ridge penalty for collinear or
small-sample fits, selects predictors by correlation, and logs the
cases in which it fell back. - Effective-sample-size modes for test-wise deletion (full N, mean
pairwise, minimum pairwise) are available on the SEM BIC, degenerate
Gaussian, and basis-function scores and on the corresponding tests,
with EM covariance support extended to the basis-function
likelihood-ratio and block tests. - An Impute Missing Data box performs single or multiple
imputation from the interface, with MVN, MICE, and automatic modes;
single imputation is now permitted where it was previously blocked. - A parameter editor configures the generation of missingness
indicator variables, with optional attachment of the knowledge
those indicators imply. - The SEM estimator handles missing data by EM-based estimation of the
moments, with a warning that the resulting statistics are optimistic
because the sample size is overstated. - FASK handles missing values by pairwise and test-wise deletion, with
a minimum row threshold for orientation. - An experimental common-rows mode computes score differences on the
rows shared by the two models being compared, which is what a
genuine nested likelihood ratio requires under test-wise deletion.
94. Added study harnesses for missing-data methods.
A family of harnesses in a new study.missingness package evaluates
missing-data handling rather than asserting that it works. They include
a test-wise deletion study across mechanisms and effective-sample-size
modes; a multiple-imputation study comparing graph pooling, covariance
pooling, EM, pairwise, and mean imputation on BOSS; a replication of the
zero-deletion methods proposed by Dai et al. (2024) under dropout
contamination, including a cross-masking mechanism that deliberately
violates their structural assumption; a study of the full-law
identification boundary of Nabi et al. (2020), with identified and
unidentified mechanisms side by side and a numerical probe of the
identification theorem itself; a recovery harness over Gaussian, skewed,
and lognormal errors; score diagnostics that check whether BIC still
ranks models correctly under each policy; and a harness that applies
missingness patterns taken from a real dataset. A missingness injector
with calibration and mechanism-classification tests underlies them.
The headline findings are documented with the harnesses: the search
engine matters more than the missing-data method; test-wise deletion is
sound per decision but not per objective, so score-based searches are
affected differently from constraint-based ones; and pooling over
imputations degrades badly as the number of variables and the
missingness rate grow.
95. Overhauled graph layout.
Layout has been substantially reworked:
- A new Richard's Layout arranges nodes by causal depth, reduces
edge crossings by barycenter sweeps followed by a coordinate-based
transposition pass, and applies a rightward shear for legibility,
with an optional nudge step that displaces nodes to clear long edge
lines. Its parameters are editable from a dialog. - Layouts are chosen once and remembered. A default layout is
selectable from the Layout menu and persisted across sessions, and
is applied automatically to graphs that arrive without positions.
Kamada-Kawai is among the choices, and the Fruchterman-Reingold
layout has a configurable natural edge length. - Causal-order and knowledge-tier layouts now order tiers to reduce
crossings, center rows, and space nodes according to their actual
displayed sizes rather than fixed steps. - Layouts can be shared across workbenches, so that the same graph
is positioned the same way everywhere it appears, with a distinction
between a local layout and one inherited from upstream and the
ability to reset to the inherited one. Node layout changes support
undo and redo. - Layout dialogs are cancelable, and canceling skips the work rather
than applying a half-configured layout. - Graphs copied into new boxes now receive detached node objects, so
that positioning one copy no longer moves another.
96. Added curved edge routing.
Edges are now routed as quadratic Bezier curves when a straight line
would pass behind a node, and drawn straight otherwise, so that fan-out
and pass-through cases stay readable without bowing every edge. Routing
accounts for gaps between nodes and for node clearance, nodes are
shifted to keep curves inside the canvas, and curving is disabled above
a size threshold for performance. Node fills are slightly translucent so
that edges passing behind them remain visible, while retaining the
classic opaque blue appearance on white.
97. Added workbench zoom and interface font scaling.
The graph workbench now zooms, by mouse wheel and by keyboard shortcut,
scaling nodes, fonts, strokes, and endpoint decorations together and
adjusting the layout to the zoomed dimensions. Separately, the
interface's own font size is configurable from the Settings dialog, and
the hardcoded monospaced fonts throughout the interface have been
replaced by a scaled font, so that fixed-width reports and tables scale
with everything else.
98. Added a centralized Settings dialog.
Preferences previously scattered through the menus, including dark mode,
display of experimental algorithms, number format, logging, and
interface font scale, are now consolidated in a tabbed Settings
dialog under a dedicated Tetrad menu, with proper integration into the
native menu bar on macOS.
99. Added node search and selection aids in the workbench.
A search field in the workbench selects nodes by name, with wildcard
support, and a Find Variable action has been added to the editors that
display graphs. Dragging a group of nodes snaps the group to the grid
while preserving the nodes' relative positions, and dual list selectors
throughout the interface now support drag and drop between the lists.
100. Added multi-target graph comparison and a statistics chooser.
The comparison tools accept several target graphs against one
reference, rather than a single pair. A shared utility centralizes how
the reference and the targets are identified, the choice is driven by
explicit parameters rather than inferred, and the Stats List,
Misclassifications, and Edgewise comparison outputs all handle the
multi-target case with a user-configurable display order.
A companion statistics chooser lets the user select which comparison
statistics are displayed, cataloging the available statistics by
reflection, including those that require constructor arguments, and
giving a curated default set so that the initial table is useful rather
than exhaustive. Selections are stored with the session.
101. Integrated the Plot Matrix throughout the interface.
The plot matrix is now reachable wherever it is useful. A "Plot Matrix
for Selected" button appears in the graph editors and in the estimator
editors, plotting the variables selected in the workbench; the data
audit offers the same for selected findings; and the nonlinearity checks
table does likewise. Within the plot matrix, individual plots can be
enlarged without disturbing the matrix selection, variables can be
adjusted for the other selected variables to give added-variable plots,
and rows incomplete on any selected variable can be excluded.
Scatterplots now convey density where points overplot, by scaled dot
size and logarithmic opacity.
102. Added dataset selection in the estimation and display editors.
Where a box holds several datasets, the editors now let the user choose
which one to work with, rather than silently using the first. A shared
dataset chooser has been added to the SEM, Bayes, Dirichlet, EM Bayes,
Generalized SEM, Hybrid CG, and neural-network estimator editors and to
the plot matrix and graph editors, with re-estimation on the selected
dataset. Correspondingly, a specific result graph can be selected
from a search that produced several, and that choice propagates to the
boxes downstream.
103. Extended the Hybrid CG workflow.
The hybrid conditional-Gaussian tools have been built out
substantially: a persistent shaded graph view with tooltips and legends,
edge shading by coefficient with accessible color palettes, a
significance overlay reporting per-edge likelihood-ratio results and
per-stratum coefficient t-tests, average marginal effects and
standardized average marginal effects in the edge table with
non-monotone effects flagged, display of both the conditional-Gaussian
and hybrid conditional-Gaussian BIC values, backward-elimination pruning
with persisted proposals and reports, model import and export as JSON,
and explicit labeling of parameters that could not be estimated and of
edges whose cutpoints are unavailable, in place of silently blank or
unshaded output.
104. Extended the neural-network estimator.
The neural-network estimator has gained an Explanation tab giving a
plain-language account of each metric and of what the tabs do; edge
strengths computed from observed parent configurations rather than
simulated samples, with Monte Carlo error bars and refit-noise null
distributions so that an edge strength can be compared against the
variability of the procedure that produced it; tracking of the fraction
of simulated rows that fall outside the training ranges, which is the
extrapolation the model cannot be trusted on; a predictive pruning step
that removes redundant parents by cross-validation, with a report and a
revert action; and a graph tab with shading by the computed statistics.
105. Extended the Knowledge box.
The Knowledge box now supports alternate tier structures alongside
the primary tiers, edited through a new editor, and knowledge can be
saved in a comma-delimited format. The "Other Tiers" and "Other Groups"
tabs are hidden unless the knowledge actually contains such structures,
with Show menu items to reveal them. Parentless knowledge boxes show the
source graph with an explanation of what can be edited.
106. Added new data tools and transforms.
- Join Datasets on Key joins two datasets on a key column, with
explicit handling of missing and repeated keys. - Long to Wide reshapes a long-format dataset to wide, with
aggregation policies, level renaming, and suggested short names for
the generated columns; the editor is a wizard that previews the
column names before transforming the data. - Data Split splits a dataset by row conditions.
- A linearizing transform applies monotone Yeo-Johnson transforms,
chosen per variable from pairwise scatterplot nonlinearity, to make
relationships more nearly linear while preserving marginal skewness
so that skew-based orientation methods still apply. Fitted
parameters and nonlinearity diagnostics are logged. - A deterministic-relation finder identifies exact linear dependencies
among columns on the audit side, with a shared precision matrix so
that it scales to wide datasets, and suggests which variables to
remove.
107. Added encoding and format checks to the data loaders.
The text file readers now detect files that are not UTF-8 or ASCII,
including UTF-16, UTF-32, and zip-based formats such as spreadsheet
files renamed to a text extension, and report a specific message with a
suggested remedy rather than failing obscurely partway through. Byte
order marks are skipped in the preview as well as in the load, and
double quotes are now the default quote character, which matches what
most spreadsheet exports produce.
108. Allowed estimators to take a graph source directly.
The estimator boxes previously required a parametric-model box upstream.
Each now accepts a graph source directly and builds the parametric model
internally, with a shared utility that validates the graph first: that
its edges are directed, or bidirected where the SEM estimator allows it;
that it is acyclic where that is required; and that the data are
discrete for the Bayes estimators. The error message names the problem
and, where the graph came from a search, points to the action that
extracts a DAG from a CPDAG.
109. Added oracle modes for BOSS and FGES.
BOSS and FGES can now be run in oracle mode, scoring by m-separation in
a supplied graph rather than from data, which makes it possible to check
that a search recovers the right equivalence class when the input is
correct by construction, separating structural errors from statistical
ones.
110. Added annotation normalization modes for edge priors.
The edge-prior facades can now normalize supplied annotations through
one of several bounded modes, so that adjustments stay within a known
range and cannot silently overwhelm the score under toll scaling. A
diagnostic reports the number of pairs whose adjustment was large enough
to act as required knowledge, which is the failure mode these modes are
meant to prevent.
111. Improved session saving and quitting.
Each session is now saved to its own file, tracked per session rather
than through a single global save location, so that saving one session
can no longer overwrite another or land in an unexpected directory;
sessions with no associated file fall back to Save As. Quitting prompts
for each unsaved session individually, can be canceled, and reports what
was saved.
112. Added an experimental PAG total-effect estimator (library only).
A GRegressionPag class has been added to the library, together with a
simulation harness, as an answer to the question of whether G-regression
extends from MPDAGs to PAGs. The closed form of Guo and Perković (2022)
does not transfer, because bidirected edges break the Meek-closure
property their derivation requires and because the coefficient on an
invisible directed edge in a MAG is not a causal parameter. What the
class does instead is fit the Gaussian ancestral graph model by RICF to
obtain a maximum-likelihood covariance matrix and then evaluate an
ordinary adjustment functional at that matrix rather than at the sample
covariance.
Consistency is proved given a correct PAG, an amenable pair, and a valid
adjustment set, and does not require Gaussian errors. Invariance to the
choice of valid adjustment set is proved and confirmed numerically to
machine precision. Efficiency is conjectured for the Gaussian case only;
the distribution-free character of the original result is expected not
to carry over. In simulation on true PAGs with Gaussian errors, the
estimator reduced root mean squared error by about twenty-three percent
on the pairs where it differs arithmetically from adjustment at the
sample covariance, with the gain concentrated where several valid
adjustment sets exist. Whether this survives the structural errors of an
actual FCI search has not been tested.
The class is deliberately not exposed in the interface, and the name
should not be read as claiming more than the above. Point interventions
only; PAGs with selection bias are refused; non-amenable pairs are
reported with a witness path rather than estimated.
113. Added a parallel-safe asynchronous DAG-to-PAG conversion.
A new conversion method computes the PAG of a DAG with a timeout and an
option for selection bias, so that a conversion that will not finish on
a large graph can be abandoned rather than hanging the search or the
interface that called it.
114. Marked the newest latent-variable algorithms experimental.
For this release the consolidated BFCI (item 83), the LV
heuristic, and RLCD (items 79 and 80) carry the @Experimental
annotation, so they appear in the search interface only when experimental
algorithms are shown. Each is unit-tested, and BFCI has parity tests
against the forks it replaces, but none has yet been measured on real
data at scale under its release defaults, and the options of all three
may still change. FCIT, FCIT-ZM, and FCIT-SL remain experimental, as
they were in 7.6.10. GFCI, SP-FCI, and GRaSP-FCI are not experimental;
note, however, that they now default to correctness option 1 rather than
to the saturating step that earlier versions ran unconditionally, so
their output on a given dataset can differ from 7.6.10.
Bug fixes and technical improvements
-
Unified independence testing and p-value caching for vertex
diagnostics. -
Improved consistency of Markov and vertex-level diagnostics.
-
Locality-based speedups for Vertex Repair.
-
Improved ranking and filtering of Vertex Repair candidates.
-
FF-CI p-value approximation options fixed.
-
Improved defaults for FF-ML bandwidth estimation.
-
Fixed BOSS non-termination bug under background knowledge.
-
GridSearch reliability improvements.
-
Standardization added to additive noise simulator.
-
Required knowledge handling fixed for PC.
-
Junction Tree and Row Summing Exact updaters now produce identical
results. -
Improved numerical stability of BOSS under background knowledge.
-
Improved simulator consistency across nonlinear model families.
-
Improvements to the infrastructure of the Tetrad interface,
addressing long-standing issues in session node lifecycle management,
event dispatch, and UI state consistency. -
Switched to natural sorting through out the code, so that X10 doesn't get sorted before X2 alphabetically, e.g.
-
Moved algorithms flowchart dialog to inside the Tetrad codebase.
-
Scaled up Chi Square test by improving the AD Tree implementation.
-
Fixed bugs relating to identification of target and source graphs for stats list comparison and related tools.
-
Fixed issues with replicating graph support for BOSS and other algorithms.
-
Fixed buggy knowledge layouts in the interface.
-
Fixed issues for Vertex Checker and Markov Checker (including Vertex Repair) related to coordination across tools and default parameterization handling.
-
Added simulation study for Vertex Repair.
-
Fixed bug in data loader where if an Excel file with blank columns was loaded the interface would hang; an error message is now shown.
-
Fixed directed cycles introduced by revertToUnshieldedColliders in MeekRules.
-
Fixed non-standard implementation of Meek Rule R4.
-
Added Fisher Z causal-learn Python bridge test.
-
Deprecated Rcit.java; FFCI documented as RCIT variant.
Rcit.java has been deprecated to avoid confusion with the published RCIT method. Users
requiring RCIT as a baseline are directed to the causal-learn implementation via the
Python bridge. FFCI is now documented as a variant of RCIT.
-
Fixed a systematic miscalibration in Anderson-Darling uniformity tests
used by the Markov and Vertex checkers. The tests incorrectly applied an
inflated A-squared-star statistic; the uninflated A-squared statistic is
now used, restoring correct rejection rates. Markov check results
computed with earlier betas should be re-run. -
Fixed several issues in the Basis Function (BF-BIC) score and BF-LRT
test: chain-rule conditioning has been restored so that the score is
equivalent across Markov-equivalent DAGs; the BF-LRT wrapper has been
rerouted to a Wilks block test (with the old trace-averaged LRT
deprecated); block-size truncation has been removed from the Wilks test;
basis orthonormalization now uses rank-revealing modified Gram-Schmidt
instead of QR decomposition; and effective sample size now persists
correctly across row-subset changes. -
Fixed bugs in the nonlinearity diagnostic tests: regressions were fit
without an intercept on uncentered data, and one test ignored its seed.
The additive-vs-RFF cross-validation test has been redesigned with
nested model comparisons, GCV-tuned ridge penalties, and signed-rank
inference, substantially improving power while retaining correct size.
The interface panel now includes a "Notes..." dialog with full
interpretation guidance, and per-test tooltips have been expanded to
cover the RESET, CV, Moment, Additive, and Additivity (Parents) tests. -
Switched the wild-bootstrap omnibus statistic to max-|T|, which
retains power under sparse alternatives where sum-type statistics lose
power as the number of tested facts grows; also enforced all-continuous
dataset requirements for the wild bootstrap checks. Dependence-aware
wild bootstrap-t methods (cluster and kernel) have since been added to
WildBootstrapMarkovCheckto calibrate under row dependence, with a
DependentWildBootstrapUsageexample harness. -
Fixed possible thread-collision issues in the Fisher Z test when used
in parallel searches, and fixed a delegation bug in the caching
independence test wrapper so base-test properties (alpha, sample size,
covariance, data) are exposed correctly and the cache stays consistent
when alpha changes. -
Added a warning when BOSS reaches its maximum iteration limit, and
ensured thread pools are shut down properly. The warning is now issued
only when score-improving moves remain at the iteration cap, and
PermutationSearchskips empty tiers, avoiding both wasted computation
and spurious warnings. -
Fixed a GRaSP blind spot in handling tiered background knowledge, and
expanded Knowledge validation to handle undirected edges, with stricter
knowledge-consistency checks in Vertex Repair. -
Replaced permutation-based Gamma p-value estimation in KCI and FF-CI
with analytic moment-matching approaches, improving speed and
reproducibility. -
Guarded Markov check statistics against invalid alpha thresholds;
dependency fractions and binomial p-values now return NaN rather than
misleading values when the threshold is unusable. The Markov Checker
also handles undefined p-values more robustly, counting test verdicts
accurately even when calibrated p-values are unavailable. -
Fixed the data loader to treat columns containing non-numeric values
as discrete, preventing downstream parsing errors. -
Migrated JSON handling from com.fasterxml.jackson to the tools.jackson
library across all modules. -
The Save Session dialog now defaults to the session name when
available, with improved overwrite handling. -
Capped Anderson-Darling p-values for extreme statistics. Very large
A-squared values (≥ 10) previously produced p-value overflow; a hard
floor has been introduced, aligned with R'snortest::ad.test, in
AndersonDarlingTest,GeneralAndersonDarlingTest, and
MultiGeneralAndersonDarlingTest. Regression tests check p-value
continuity and correct handling of strongly non-Gaussian data at large
n. This is a second calibration correction to the Anderson-Darling path
and, like item 28, invalidates earlier results computed at the extremes. -
Fixed thread safety and degrees of freedom in the Conditional
Gaussian likelihood.ConditionalGaussianLikelihoodand
IndTestConditionalGaussianLrtpreviously carried mutable state via
setRows, which could be corrupted in parallel searches; row support is
now passed explicitly. A newgetLikelihoodRatiomethod computes nested
likelihood-ratio statistics on a common support, which is required for
correct LRT calibration under pruning and discrete-target
configurations, and degrees-of-freedom calculation has been refined for
sparse-table edge cases. Calibration and score harnesses
(CgCalibrationHarness,CgScoreHarness) were added to validate the
behavior across scenarios including rare-parent false attachment,
true-parent detection, and integer-valued targets under bootstrap
resampling. -
Enforced consistent background knowledge semantics in FCI: removed
the forbidden-edge veto on collider arrowheads, ensured tier knowledge is
applied regardless of the selection-bias flag, and restricted
possible-D-SEP conditioning to knowledge-admissible sets, with
regression tests. -
Guarded collider orientation in
GfciOld, enforcing the
unshieldedness precondition per the published R0' rule, with explicit
safeguards and invariant logging. Possible-D-SEP handling in
StarFciGuaranteePagwas likewise clarified so that gated and ungated
paths behave consistently. -
Fixed a stall in BFCI arising from
ApplyFinalFciRulesusing the
true PAG as the R4 reference, which produced different orientations than
using the graph itself to find a separating set. The user is now
prompted to select an oracle graph, with reference-graph support and
m-separation queries in R4. -
Optimized Vertex Repair. Baseline computations are memoized in a
BaselineBundlekeyed by agraphVersion, an affected-only
invalidation mode recomputes only candidates touched by the last edit,
and graph-level MAG preparation avoids redundant legality checks and
conversions per vertex. AVertexRepairSpeedBenchmarkcompares full and
affected-only invalidation and confirms that fixed-point convergence
quality is unchanged. -
Corrected graph handling in Vertex Repair: selection bias is now
excluded (biased inputs are rejected and selection-only edge types
disallowed for MAG and PAG), PAG candidates are canonicalized
consistently with CPDAG handling, and knowledge-compelled orientations
are restored during PAG refinement using FCI-based orientation logic.
The default repair strategy has changed fromLOCAL_SWEEPto
GLOBAL_QUEUEto align with the memoization-based features. -
Generalized seed selection for Vertex Repair. Seed handling was
previously specific to PcAR; it now uses search-agnostic Markov audit
seeds via a newMarkovAuditUtilsproviding FDR-controlled
(Benjamini-Hochberg) failure detection, implicated-vertex derivation,
and seed stamping. This makes targeted repair available for any input
graph, with on-demand audits from the interface. -
Restored knowledge-compelled orientations in CPDAG canonicalization
via a newapplyKnowledgeOrientations, addressing prior
under-orientation of knowledge-consistent CPDAGs. -
Fixed knowledge propagation and lagging logic in
ImagesFges, and
added aTIME_LAG_REPLICATING_GRAPHparameter; lagged graph layout logic
was corrected at the same time. Time-lag-replicating graph support was
also extended toStarFciandStarFciGuaranteePag, with improved edge
mirroring inReplicatingGraph. -
Refined the serial dependence check to distinguish periodic
dependence from AR(1) approximations, with corrected messages and
values, and tests covering both cases. -
Completed missing-data policy enforcement. Phases 2 and 3 extend
MissingDataUtils.gateacross the remaining tests and scores, enforce
the "testwise" policy where required, route the Poisson Prior Test
through the EM covariance path, set native policies for discrete and
CG-BIC scores, and add AD-tree handling under missingness, with
comprehensive test coverage of the explicit-policy contract. -
Sped up chi-squared CDF computation by replacing repeated
ChiSquaredDistributioninstantiation with a concurrent cache, which
materially affects independence and likelihood-ratio tests in large
searches. -
Determined bootstrapping capability by inheritance from
AbstractBootstrapAlgorithmrather than by the@Bootstrapping
annotation, correcting inconsistent parameter display across algorithms;
ImagesandImagesFgesnow extendAbstractMultiBootstrapAlgorithm. -
Fixed a determinism hazard in the adjacency phase of
Fasby
declining contaminated separating sets, tracking blocked deletions, and
reporting them diagnostically.PcARgained tiered recovery modes,
Markov audit integration, corroboration-based rescues, and a
discriminating test-based odds estimator. -
Fixed image loading in the session workbench:
ImageUtilsnow
decodes and caches synchronously rather than asynchronously, correcting
icon rendering on interrupted threads, andSessionEditorNoderespects
the Swing event dispatch thread. -
Fixed stuck parameter popup menus by introducing
resolveModelClassQuietlyandhasEditableParameters, so that a model
whose class cannot be resolved no longer leaves a popup open. -
Restricted old-model binding in constructor arguments to the exact
class, preventing unintended reflection matches from affecting node
behavior. -
Guarded covariance-backed test selection in the interface.
IndependenceFactsDslEditornow usessafeGetEvaluatorFromSelection
and filters models that require row data or block specs, and
VertexCheckEditor,VertexRepairSearch, andVertexCheckIndTestModel
skip invalid row assignments so that covariance-backed tests no longer
produce NaN outputs orClassCastException. -
Fixed the target graph name assignment in
EdgewiseComparisonParamsEditor, which usedgetStringwheresetwas
required. -
Ensured symmetry in correlation matrix calculations and removed
redundant row/column index checks. -
Synchronized algorithm parameter fields via
ParameterFieldSyncso
that dependent fields update consistently. -
Updated several parameter defaults in the documentation and code:
faskLeftRightRuleto 2,twoCycleAlphato 0.0, which turns two-cycle
detection off unless the user raises it,applyR1to false,
excludeSelectionBiasto true, andrandomSelectionSizeto 0 with a
lower bound of 0. -
Corrected the
CdnodPagannotation to allow latent common causes
rather than forbidding them. -
Renamed the CPW algorithm to Cyclic Pairwise and revised its
documentation and Javadoc to clarify PAG-based interpretation of cyclic
graphs. -
Refactored
DataSubsetModelandDataSubsetEditoraround a
centralizedDataSubsetterfor row parsing, sampling, and subsetting,
with improved spec-based subset propagation and validation for legacy
subsets. -
Improved tooltip behavior and error reporting: tooltip display timing
was adjusted, exception and edge tooltips now report errors usefully,
parameter tooltips were refactored, and edge gloss descriptions were
added. -
Added keyboard navigation and clearer window titles. An
ArrowKeyNavigationutility provides consistent arrow-key navigation in
tabbed panes and combo boxes across editors, and aDataWindowTitles
utility gives tool windows titles that name the associated dataset,
which matters in multi-dataset sessions. -
Updated the manual with descriptions, parameters, and references for
algorithms and tests added since the last release (including BFCI, GMAS,
Mimbuild, BE-GCM, and CORD), with improved naming consistency and
expanded documentation of statistical tests and scores. Javadoc coverage
was expanded across new and recently modified classes, with particular
attention to constructors, threading behavior, and parameter semantics. -
Reordered the Tools menu items in
DataEditorand
SimulationEditorfor more logical grouping, and moved the "Settings as
Text..." and "Paste Settings..." buttons to their own row in
ParameterTab. -
Fixed a long-standing bug in
RandomUtil.nextGaussian(mean, sd).
Since an April 2026 refactor, the two-argument form had been returning
an unscaled standard normal draw, silently ignoring both the mean and
the standard deviation. This affected subject intercepts in the
Observational Study simulation, error draws inStandardizedSemIm,
SemIm.simulateDataRecursiveandsimulateTimeSeries,
LargeScaleSimulationshocks,LinearFisherModel,GpSemSimulation,
and theutil.distdistribution classes. The default SEM simulation
path (the reduced form via Cholesky) was unaffected because it draws
standard normals and scales afterward. Simulations run through the
affected paths since April had larger-than-declared noise, so results
that depended on the declared scale should be re-run. Relatedly, the
subject shift standard deviation in the Observational Study panel
simulation is now exposed as anosPanelSubjectShiftSdparameter
(default 0.5) rather than being hardcoded. -
Cleaned up the SEM Estimator editor and fixed propagation error
dialogs. Fixes include a dead Report button, a broken node edit dialog,
asetValueAtindex bug affecting models with fixed parameters, a
consolidated bottom control bar with contextual enabling of the Score
and Restarts controls, preservation of view state across re-estimation,
an aligned monospaced report, and a semantic-rank default sort on the
parameter Type column. Separately, downstream session propagation
failures that previously produced blank or hanging dialogs are now
routed through EDT-safe error dialogs that report the actual error. -
Fixed missing-value handling in scatter plots and Q-Q plots. Rows
with missing x or y values are now excluded from plotted points, the
displayed correlation is computed from the same complete pairs as the
points, and Q-Q plot construction was rewritten to compute quantile
positions over the non-missing count only, replacing a quadratic sort
and a recursive quantile search. -
Fixed interaction bugs across the Bayes editors. Click-to-select
now works in all Bayes wizards (selection is gated separately from
structural mutations in the shared workbench), panel-stacking and
model-bar visibility bugs were fixed, informational text areas are now
read-only, and deleting a cell in an otherwise complete probability row
immediately fills it with the complement of the remaining cells,
clamped at zero for rounding. -
Fixed
osTypePropContextDiscreteto select a fixed count of
discrete context variables via seeded sampling, matching the
discrete-system convention, rather than flipping a per-variable coin
that could produce fully continuous data at moderate proportions. -
Sped up Vertex Repair with two-phase PAG scoring and added a live
repair display. Candidate edits are now screened using only the cheap
MAG-side half of canonicalization, with full certification (PAG
conversion, knowledge refinement, and legality checking) performed only
when a candidate is actually committed; a canonicalization memo caches
results across sweeps. The Show Graph window in the Vertex Checker now
updates live as repair edits are applied, with coalesced,
EDT-safe rendering and the source layout preserved. Along the way,
repair events now hand listeners a defensive copy of the working graph,
and a duplicated undo-history entry was removed. -
Fixed six issues in the IOD algorithm (
FciIod): the algorithm
annotation incorrectly forbade latent common causes; the comparison
graph was the raw DAG rather than the true PAG; pairs of variables
never jointly measured in any dataset received confident bidirected
orientations, which are now reset to circle endpoints; time-lag
knowledge is now merged across all datasets rather than taken from the
last; a null test guard was added togetParameters; andIndTestIod
no longer reports NaN as its score and now logs when verbose. -
Fixed an inverted definite-noncollider test affecting every
adjustment set computed from a PAG. In a PAG, a node with circle marks
on both of its edges along a path is a definite noncollider exactly when
its two neighbors on the path are not adjacent.EdgeListGraph.isDefNoncollider
had this condition backwards. Because every adjustment-set search relies
on this primitive to decide which paths must be blocked, the search could
return a set that leaves a back-door path open, and the total effect
computed from it was then biased, with nothing to indicate the problem.
On random fourteen-node PAGs with three latent confounders, about fifteen
percent of returned sets failed a population-level validity audit before
the fix and none did after; one witness pair had an error of 0.36 on a
true effect of 0.27. The search code itself implements the generalized
adjustment criterion correctly given its primitives, which is why earlier
reviews of it passed.DAGs, CPDAGs, and MAGs are unaffected, since no circle triple arises
in them, and search output itself -- the PAGs -- is unaffected. What
is in question is anything computed from a PAG: results from the
Linear Adjustment Effects tool on FCI output, from the IDA box on PAG
inputs, and fromPaths.adjustmentSetswith graph type PAG, including
through py-tetrad. Those should be re-run. The ICD algorithm uses the
same primitive to mean "possible collider" and needs its own review;
the ION algorithm used it only to underline triples for display. New
tests cover the circle case directly and add a population oracle that
checks every set returned for every amenable pair in random PAGs
against the generating model's true effect, which tests the answer
rather than the reasoning. -
Fixed a Fisher Z test that ignored its conditioning set. In
IndTestFisherZFisherPValue, the conditioning set was copied into an
empty list rather than the set supplied, so every test was effectively a
test of marginal independence regardless of what was conditioned on.
The same test used the first dataset's sample size for all datasets
rather than each dataset's own. -
Corrected the sample size used by the Fisher Z test under test-wise
deletion, which must be the number of rows complete on x, y, and the
conditioning set, so that it matches the partial correlation actually
computed. -
Sped up test-wise deletion in the SEM BIC score by replacing
per-cell covariance computation with a cached covariance keyed on the row
subset, and made the effective sample size persist consistently through
the penalty term. -
Fixed array allocation in the MAG BIC scores (SEM, degenerate
Gaussian, and conditional Gaussian), which truncated or threw on
conditioning sets above a certain size, with regression tests covering
bidirected districts and exact DAG correspondence. -
Hardened the ridged pseudo-inverse used by the rank tests: the
covariance matrix is checked for non-finite values, singular value
decomposition failures are caught, and an eigendecomposition-based
pseudo-inverse is used as a fallback. -
Fixed handling of missing and non-finite values in the Discretizer,
which previously produced invalid cutpoints: non-finite values are
filtered, quantile indices are corrected, and cutpoints are validated. -
Fixed over-destruction of session models during reassessment. Model
reassessment compared the declared parameter types of a box's
constructor rather than the concrete classes of the parents actually
bound at construction, so valid models were sometimes destroyed when an
upstream box changed in a way that did not in fact invalidate them. -
Made logging process-local. The logger previously persisted its
configuration in user preferences, so a logging setting left behind by a
script affected later interface sessions and vice versa. -
Reverted an attempt to handle deterministic relations by flooring
residual variances in the SEM BIC score. TheresidualVarianceFloor
parameter and its logic have been removed; deterministic relations are
instead detected and reported on the audit side, where the user can see
them and decide what to drop, rather than being papered over inside the
score. -
Corrected two-cycle detection in FASK. Isolated two-cycles with no
candidate conditioning sets were missed, conditioning sets that could
not be assessed were handled incorrectly, and mixed-sign two-cycles were
not detected. Deterministic tests now cover isolated two-cycles,
mixed-sign cases, acyclic controls, and common-cause pairs. -
Fixed stale rendering of curved edges. Edge bounds are now
synchronized before painting, and painting is skipped for edges whose
bounds are out of date, which removes the artifacts that appeared while
dragging nodes. -
Fixed node identity across graphs in the comparison statistics.
Statistics that walk paths or check ancestry could be given an estimated
graph and a true graph holding distinct node objects with the same names,
which made the traversal unreliable; nodes are now aligned explicitly,
graph traversal handles same-named nodes from different graphs safely,
and the statistics consistently use the true DAG or the graph derived
from it rather than the raw true graph. -
Fixed graph identification in the Tabular Comparison box, which
failed to handle a graph source wrapped in a data wrapper. -
Stopped FGES from warning on every search in oracle mode. The final
model score was always computed, which logs a warning when the score is
a d-separation oracle; that step is now skipped and the model score
reported as not available. Separately, FGES now re-evaluates insertions
found invalid rather than discarding them, which improves adjacency
recovery. -
Fixed propagation of thread interruptions in the adjacency search, so
that a stopped search stops cleanly: the calling thread is captured and
monitored, and interruptions no longer leak onto pooled workers. -
Fixed starting values and residual handling in SEM estimation. The
optimizers started from a fixed box of values that is hopeless on data
with large variances; starting values are now drawn with reference to the
sample variances -- error variances as a fraction of the sample variance,
loadings as square roots of it. A new warning reports when an estimate
fails to reproduce the sample variances, which catches an optimizer that
never moved from its start. -
Fixed stale display in the tier editor. A hash map keyed on mutable
objects has been replaced with an identity map, scroll position is
preserved when the structure panels are rebuilt, the editor scrolls to
and focuses a newly added structure, and the tier-count spinner no longer
applies stale updates that silently change the tiers. -
Narrowed model-changed events to actual model edits. Redraws and
initialization previously fired the same event as a genuine edit, which
caused unnecessary recomputation downstream and spurious prompts about
unsaved work. -
Made Show and Hide Error Terms behave consistently across the SEM
editors, reloading the graph rather than only resetting labels, and
defaulting error terms to hidden when an editor opens. -
Fixed variable order in pooled datasets. Datasets pooled for
multi-dataset search or for pooling over imputations are now reordered to
match the first dataset rather than being assumed to agree, and pooling
is refused outright when a dataset has missing or extra variables. -
Added notifications when a graph implies no independence facts.
The Markov Checker and Vertex Checker previously reported an empty result
for an empty or near-empty graph with no explanation; they now say that
there is nothing to test. -
Fixed duplicate and inconsistent entries in the test and score
registries: a duplicatedpoolImputationsparameter definition was
removed, merged model lists are made distinct before sorting, and
algorithm filtering compares by name rather than object identity. -
Fixed longest-match tokenizing in the expression lexer, so that an
operator or function name that is a prefix of a longer one no longer
shadows it. -
Versioned the effects cache used by CStaR, since the semantics of
the cached minimum absolute effects changed, and added the method that
computes them correctly for CStaR's purposes rather than reusing a
differently defined quantity. -
Sped up collider orientation in CD-NOD by skipping sepset
enumeration over context nodes and reordering the orientability checks,
and added an optional collider audit with disagreement tracking to the
CD-NOD-BOSS wrapper. -
Sped up equation fitting for deterministic relations, which
previously recomputed a covariance matrix on every call; a shared
precision matrix and a reusable fitter bring the wide-dataset case down
to cubic scaling in the number of variables, with caps and a kill switch
for datasets where the computation is not worth doing at all. -
Updated several parameter defaults and their documentation:
thresholdBHatto 0.1 anduseBesto true across the hybrid latent-variable
algorithms, the last for correctness under faithfulness rather than for
speed. The@Experimentalannotation was added to PC-AR, and the
latent-variable classifications of the Trek-MIMIC and RFCI-BSC annotations
were corrected. (The LV heuristic was briefly promoted and then returned
to experimental status for the release; see item 114 under New Features.) -
Persisted the user's answer to the latent-confounder question across
sessions, so that a fresh search box defaults to the last choice made
rather than always to "no". -
Reorganized and alphabetized the parameter definitions, replaced
hardcoded parameter strings with constants throughout, and added the
definitions that were missing, so that every parameter referenced in code
has an entry in the manual. -
Eliminated all 1,429 javadoc doclint warnings in the interface
module, documenting every public member and the private fields of
serializable classes, adding the missing parameter, return, and throws
tags, and correcting several comments that were inaccurate. No behavior
changes. -
Added backward-compatibility stubs for every algorithm, test, score,
and statistic class removed or renamed since 7.6.10 (BOSS-FCI, ICA-LiNGAM,
ICA-LiNG-D, PAG-Sample-RFCI, the time-series rank test, the two
"compatible possibly directed edge" statistics, IMaGES-BOSS, FCI-Cyclic-PW,
the DG BIC test, the rank BIC score, BOSS-POD, DM-PC, and DM-FCIT), together
with a stub for the renamed Adjustment Total Effects model in the
interface, which resolves on loading to its successor. Tetrad sessions are
plain Java serializations that record algorithm and model class names, so
a missing class makes the whole session unloadable. Each stub keeps its
original name, package, and serial version identifier, has its registration
annotations commented out so that it does not appear in the interface, and
delegates to its successor where one exists; the three with no successor
load but refuse to run, with a message naming the replacement. -
Fixed the possible-collider predicate in ICD, which tested
"not a definite noncollider" rather than the canonical rule "definite
collider, or the endpoints are adjacent" used by Spirtes, Glymour, and
Scheines and by the reference implementation. The two rules differ on
circle-marked triples, so possible-D-SEP sets, and hence ICD's output on
PAGs with circle endpoints, could be wrong. A unit test now distinguishes
the two rules. -
Removed the stale guard in the six FCIT wrappers (FCIT, FCIT-ZM,
FCIT-SL, and the Markov, MAG-Markov, and SL-score-check variants) that
rejected d-separation oracle input unless GRaSP supplied the starting
graph. BOSS has accepted a graph as an oracle since October, so the guard
was wrong rather than cautious. In its place, a warning is logged when an
oracle run starts from BOSS with BES turned off, since BES is what gives
BOSS its CPDAG guarantee in the oracle. -
Fixed the elapsed time reported for searches run from an oracle
graph, which was always zero because the timer was read only on the
data-input branch of the search runner.