Systematizing Belief Through Bayesian Networks

Transforming ideological divides into concrete questions of causation and conditional probability

Bayesian Network Visualization

About the Project

Probability Flow is an open platform for systematizing reasoning through Bayesian belief networks. We combine AI agents with rigorous probabilistic inference to extract claims from unstructured data, build causal graphs, and compute evidence-based conclusions.

AI-Powered Extraction

Automatically identify claims, evidence, and propositions from unstructured sources using advanced AI agents

Causal Graph Construction

Build and evaluate causal relationships between claims with community-driven validation

Bayesian Inference

Compute posteriors using rigorous probability theory, allowing users to specify their own priors

Modular Framework

We decompose the problem into tractable subproblems:

1

Claim Identification

Extract atomic claims, evidence, and propositions from raw data sources

2

Causal Assignment

Determine causal relationships and construct the belief network structure

3

Probability Estimation

Estimate conditional probability tables for each causal relationship

Mathematical Foundation

Our approach builds on classical Bayesian inference with explicit causal structure. Key innovations include:

Log-Odds Space for Additive Updates

We work in log-odds space for computational efficiency and transparency:

\[\log O(H \mid E) = \log O(H) + \sum_i \log \frac{P(E_i \mid H)}{P(E_i \mid \neg H)}\]

This allows belief updates to be expressed additively, where each piece of evidence contributes a log-likelihood ratio to the total belief.

Handling Correlations at Scale

  • Conditional Independence: For \(n\) independent evidence sources, we require only \(2n\) parameters instead of \(2^n\), avoiding exponential growth
  • Pairwise Correlations: When evidence sources are correlated, we can reconstruct joint probabilities from marginals and correlation coefficients:
    \[P(E_A = 1, E_B = 1 \mid H) = p_A p_B + \rho_{AB} \sqrt{p_A(1-p_A)p_B(1-p_B)}\]
  • Deduplication: We cluster redundant reports into atomic claims, treating duplication as an extreme form of correlation (\(\rho \approx 1\))

Belief Propagation Through Chains

For indirect evidence (e.g., "Bob says that Joe claims he saw a UFO"), we marginalize over intermediate nodes:

\[P(H \mid E_1) = \sum_{E_2} P(H \mid E_2) \cdot P(E_2 \mid E_1)\]

This composition is formally equivalent to matrix multiplication of conditional probability tables, allowing efficient propagation through arbitrarily long chains of testimony.

Compositional Structure

By combining chain propagation and parallel evidence aggregation, we can construct arbitrary directed acyclic graphs of claims and evidence, scaling from simple single-claim scenarios to massive real-world belief networks.

Our Vision

Following in the tradition of thinkers from Descartes to the present who have sought to systematize reasoning, we aim to revolutionize discourse by:

  • Building an open platform where people can contribute questions, topics, and evidence
  • Allowing community members to weigh in on causal relations and conditional probabilities
  • Enabling users to specify their own priors and see how posteriors change
  • Demonstrating that with sufficient evidence, conclusions become clear regardless of priors
  • Scaling to real-time news analysis with automatic updates to massive belief networks

Future Goals

We envision scraping news sources in real time, updating massive networks automatically, and extracting probabilities for the questions people care about most. By integrating sufficient evidence, we can move beyond intractable debates to data-driven understanding.

Get Involved

Use the Python Package

pip install probability-flow

Like TensorFlow, but for building and evaluating Bayesian networks

Read the Package Page

Release notes, the current version, and what each release changed

View on PyPI

Read the Documentation

Explore the API, examples, and mathematical foundations

View Docs