🤖 AI Summary
This paper uncovers the algebraic essence underlying convex analysis, Gaussian probability, and quadratic structure. To this end, we introduce Graphical Quadratic Algebra (GQA)—a novel algebraic framework based on chordal graphs—that uniformly models quadratic relations, Gaussian stochastic processes, and nondeterministic Gaussian processes via rotation-invariant quadratic generators. We provide the first sound and complete axiomatic characterization of three fundamental models: least-squares estimation, Gaussian randomness, and nondeterminism—revealing their shared conditional algebraic structure. Our method integrates string diagram theory, categorical semantics, and formal semantics of probabilistic programming. Theoretical contributions include soundness and completeness proofs for all three models within GQA. Applications demonstrate efficacy in linear regression, probabilistic programming, and noisy circuit modeling.
📝 Abstract
We introduce Graphical Quadratic Algebra (GQA), a string diagrammatic calculus extending the language of Graphical Affine Algebra with a new generator characterised by invariance under rotation matrices. We show that GQA is a sound and complete axiomatisation for three different models: quadratic relations, which are a compositional formalism for least-squares problems, Gaussian stochastic processes, and Gaussian stochastic processes extended with non-determinisms. The equational theory of GQA sheds light on the connections between these perspectives, giving an algebraic interpretation to the interplay of stochastic behaviour, relational behaviour, non-determinism, and conditioning. As applications, we discuss various case studies, including linear regression, probabilistic programming, and electrical circuits with realistic (noisy) components.