NOTEARS Structure Learning (Linear)
NOTEARS learns a directed acyclic graph from data by turning the combinatorial search over graphs into a smooth optimisation. A weighted adjacency matrix is fitted by least squares with an L1 penalty, while a matrix-exponential constraint that is zero only for acyclic graphs is enforced by an augmented Lagrangian.
가중 인접행렬을 최소제곱과 L1 벌점으로 적합하면서, 비순환일 때만 0이 되는 행렬 지수 제약을 증강 라그랑지안으로 지켜 자료에서 방향 비순환 그래프를 학습하는 방법입니다.
Which variables appear to directly drive which others, assuming linear relationships and no hidden common causes?
선형 관계를 가정할 때 어떤 변수가 어떤 변수에 직접 영향을 주는 것으로 보일까요?
Each variable is modelled as a linear combination of the others. The fit minimises the squared reconstruction error plus an L1 penalty on the edge weights, subject to the acyclicity function tr(exp(W o W)) - d being zero. The penalty on violating acyclicity is increased until the constraint is met. Small weights are then set to zero, and the remaining edges with their weights form the learned graph.
When to use NOTEARS Structure Learning (Linear)
- You have a modest number of continuous variables and want a candidate causal graph to guide further analysis.
- Relationships are roughly linear and you want a score-based alternative to constraint-based discovery.
- You want edge weights as well as directions.
When to use something else
- You want a method based on conditional independence tests that returns an equivalence class: use Causal Structure Learning (PC, GES)
- You already know the graph and want to estimate effects along it: use Structural Causal Model (DAG)
- Variables are mostly categorical: use Bayesian Network Learning and Inference
Assumptions and requirements
- Linear structural equations with additive noise
- No hidden common causes of the measured variables
- Results depend on variable scales; standardise when units are arbitrary, accepting that this changes the search
- Edge directions are reliable only under extra assumptions such as similar noise variances
What the analysis reports
- Learned edges with weights
- Number of edges and the threshold used
- Final acyclicity value and penalty parameter
- Least-squares loss of the thresholded graph
How to report it
NOTEARS on [value] variables learned a directed acyclic graph with [value] edges, the strongest being [value] -> [value] (weight [value]).
Related methods
- Causal Structure Learning (PC, GES)
- Structural Causal Model (DAG)
- Bayesian Network Learning and Inference
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy.
독립 계산. SciPy 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run NOTEARS Structure Learning (Linear) on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns
- Price
- 600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.