Causality Analyzer
    Preparing search index...
    • Estimate CPTs from data using maximum likelihood with Laplace smoothing.

      Parameters

      • data: number[][]

        — matrix of observations (rows × columns)

      • nodeNames: string[]
      • graph: { parents: (node: string) => string[] }

        — causal DAG defining parent-child relationships

      • nodeIndex: Map<string, number>

        — mapping from node name to column index

      • options: { alpha?: number; threshold?: number } = {}

      Returns Map<string, CPT>