MATIH Platform is in active MVP development. Documentation reflects current implementation status.
12. AI Service
Context Graph
Causal Inference

Causal Inference

Beta - Causal analysis via graph relationships

The Causal Inference module leverages the context graph to discover and analyze causal relationships between data entities.


12.5.6.1Causal Analysis

# Discover causal relationships
curl -X POST http://localhost:8000/api/v1/context-graph/causal/analyze \
  -H "Content-Type: application/json" \
  -H "X-Tenant-ID: acme-corp" \
  -d '{
    "target": "revenue_decline",
    "potential_causes": ["marketing_spend", "customer_churn", "product_price"],
    "time_window_days": 90
  }'
{
  "target": "revenue_decline",
  "causal_factors": [
    {"factor": "customer_churn", "strength": 0.78, "direction": "positive", "lag_days": 14},
    {"factor": "marketing_spend", "strength": 0.45, "direction": "negative", "lag_days": 30}
  ]
}