# Homotopy probability theory II

## Abstract

This is the second of two papers that introduce a deformation theoretic framework to explain and broaden a link between homotopy algebra and probability theory. This paper outlines how the framework can assist in the development of homotopy probability theory, where a vector space of random variables is replaced by a chain complex of random variables. This allows the principles of derived mathematics to participate in classical and noncommutative probability theory. A simple example is presented.

## Introduction

This paper is the second of two papers that interprets and utilizes a link between homotopy algebra and probability theory [9] found while studying certain algebraic aspects of quantum field theory [7, 8]. In the prequel [3], the authors present a deformation theoretic framework for studying maps between algebras that do not respect structure. The framework for studying maps that do not respect structure applies to probability theory in the following way. Expectation value is a linear map between a vector space $$V$$ of random variables and the complex numbers that does not respect the product structure on $$V$$. The failure of the expectation value to respect the products in the space of random variables and the complex numbers can be processed to give an infinite sequence of operations $$\kappa _n:V^{\otimes n}\rightarrow \mathbb {C}$$. This sequence of operations assembles into an $$A_\infty$$ morphism between two trivial $$A_\infty$$ algebras. The main proposition in [3] is that the $$A_\infty$$ morphism obtained via this process coincides with the cumulants of the initial probability space.

In the case that the product of random variables is commutative, there is a similar construction of an infinite sequence of symmetric operations $$k_n:S^nV\rightarrow \mathbb {C}$$ which assemble into an $$L_\infty$$ morphism. In the commutative context, the result is that the $$L_\infty$$ morphism coincides with the classical cumulants of the initial probability space.

The framework for studying maps which fail to preserve structure applies just as well when the space of random variables $$V$$ is replaced by a chain complex $$C=(V,d)$$. This generalization is pursued in this paper.

The idea of replacing a space of random variables by a chain complex of random variables is not unprecedented. For example, the Batalin–Vilkovisky formalism [1] in quantum field theory involves a differential, called the BV differential, on the space of random variables [2, 7, 8]. In this formalism, expectation value is defined via the ***Feynmann path integral which is a chain map from the space of random variables to $$\mathbb {C}[[\hbar ]]$$. The BV differential provides a way to capture some computational techniques of physicists as homological algebra. This work on homotopy probability theory is about adapting physicists’ computational techniques directly to probability theory. The presence of Planck’s constant $$\hbar$$ in quantum field theory, specifically the manner in which the products of observables and the BV operator interact with $$\hbar$$, makes quantum field theory significantly more complicated than probability theory. One may think of a hierarchy with the proposed homotopy probability theory in the middle.

• Classical and noncommutative probability theory are concerned with the expected value of a vector space of random variables equipped with an associative binary product.

• Homotopy probability theory is concerned with the expected values of a chain complex of random variables equipped with an associative binary product.

• Quantum field theory is concerned with the $$\mathbb {C}[[\hbar ]]$$-valued expected values of a chain complex of random variables, called observables, equipped with an associative binary product satisfying certain subtle algebraic conditions related to $$\hbar$$.

In this paper, the idea of working with chain complexes rather than vector spaces is isolated and studied—only the middle theory above is considered. Also, to keep the abstract ideas presented here connected to simple examples, the product of random variables will be assumed to be commutative throughout. So, $$L_\infty$$ algebras, rather than $$A_\infty$$ algebras, are used. The requisite modifications and results contained in [3] are given in Sect. 2.

The reasons that quantum field theory frequently involves a differential have little to do with quantum fields. Rather, the differential is a tool used to handle symmetries by algebraic methods, and this tool can be applied to ordinary probability theory. In much the same way that one may resolve relations in homological algebra by replacing a module with a free resolution, one might extend a space of random variables with relations among expectation values to a larger chain complex of random variables where the relations are encoded in the differential. Then homotopical computations provide new ways to compute invariants of interest, such as joint moments. This idea is illustrated with a toy example in Sect. 4. Of course, there may be several ways for a given space of random variables to be extended to a chain complex of random variables, so care should be taken to understand which quantities are invariant of the original space of random variables and do not depend on choices made in a particular extension. This leads to the concept of homotopy random variables (Definition 7) and their moments and cumulants (Definitions 8 and 9).

Independent of any utilitarian advantages to replacing spaces of random variables by chain complexes of random variables, homotopy theoretic ideas provide attractive structural aspects to probability theory. Cumulants, for example, are interpreted as a homotopy morphism and then tools in homotopy theory, both computational and theoretical, can be brought to bear upon them. As another example, this point of view indicates how to construct a category of probability spaces that is different than previous constructions—there are, for example, many more morphisms. Moreover, once the framework for studying maps that do not respect structure is applied to probability theory, there become ways for the ideas, language, and tools of probability theory to participate in other areas that feature a non-structure preserving map. Period integrals of smooth projective hypersurfaces are one such area where the participation seems to generate some new concepts [6].

The authors would like to thank Tyler Bryson, Joseph Hirsh, Tom LeGatta, and Bruno Vallette for many helpful discussions.

## Commutative homotopy probability spaces and $$L_\infty$$ algebras

### Definition 1

A commutative homotopy probability space is a triple $$(C,e,a)$$, where $$C=(V,d)$$ is a chain complex over $$\mathbb {C}, e$$ is a chain map $$C\rightarrow (\mathbb {C},0)$$ (where $$\mathbb {C}$$ is concentrated in degree $$0$$), and $$a$$ is an associative product $$S^2 V\rightarrow V$$. $$SV$$ denotes the graded symmetric algebra so that $$a$$ is graded symmetric

\begin{aligned} a(X_1,X_2) = (-1)^{|X_1||X_2|}a(X_2,X_1). \end{aligned}

### Remark 1

Note that $$a$$ is not required to possess any sort of compatibility with $$d$$ or $$e$$ (which it will not in interesting examples).

### Remark 2

There are multiple easy generalizations to this definition that this paper will not pursue. It is natural to replace $$\mathbb {C}$$ with a different ground algebra. It is also reasonable to allow $$a$$ to be any element of $$\hom (SV,V)$$. For example, $$a$$ might be a non-associative binary product, or a collection of non-binary products.

### Definition 2

A morphism of commutative homotopy probability spaces between $$(C,e,a)$$ and $$(C',e',a')$$ is a chain map $$f:C\rightarrow C'$$ that commutes with expectation in the sense that $$e'f=e$$.

### Remark 3

Note again that there is no compatibility assumed between $$f$$ and the products $$a$$ and $$a'$$.

Basic facts and definitions about $$L_\infty$$ algebras are now recalled. For more details, see [4]. Let $$V$$ be a graded vector space. Let $$S^n V$$ be the $$S_n$$-invariant subspace of $$V^{\otimes n}$$ and let $$SV=\oplus _{n=1}^\infty S^nV$$. As a direct sum, linear maps from $$SV$$ to a vector space $$W$$ correspond to collections of linear maps $$\{S^nV \rightarrow W\}_{n=1}^\infty$$. Also, $$SV$$ is a coalgebra, free in a certain sense, so that linear maps from a commutative coalgebra $$\mathcal {C}\rightarrow V$$ are in bijection with the following two sets: $$\{$$coalgebra maps from $$\mathcal {C}$$ to $$SV \}$$ and $$\{$$coderivations from $$\mathcal {C}$$ to $$SV\}$$.

### Definition 3

An $$L_\infty$$ algebra is a pair $$(V,D)$$ where $$V$$ is a graded vector space and $$D:SV \rightarrow SV$$ is a degree one coderivation satisfying $$D^2=0$$. An $$L_\infty$$ morphism between two $$L_\infty$$ algebras $$(V,D)$$ and $$(V',D')$$ is a differential coalgebra map $$F:(SV,D)\rightarrow (SV',D')$$. In other words, an $$L_\infty$$ map from $$(V,D)$$ to $$(V',D')$$ is a degree zero coalgebra map $$F:SV \rightarrow SV'$$ satisfying $$FD=D'F$$.

### Remark 4

Often, the definition of an $$L_\infty$$ algebra involves a degree shift (so according to that convention, a degree one coderivation $$D:SV \rightarrow SV$$ satisfying $$D^2=0$$ would define an $$L_\infty$$ algebra on the underlying vector space $$V[-1]$$). For the applications to probability theory proposed in this paper, the conventional degree shift makes the signs much more complicated—it’s simpler to eliminate the shift in the definition.

The identification

\begin{aligned} \mathrm{Coder }(SV,SV)\simeq \prod _{n=1}^\infty \hom (S^nV,V) \end{aligned}
(1)

can be used to give the data of an $$L_\infty$$ algebra. That is, a coderivation $$D:SV \rightarrow SV$$ can be given by a sequence $$\{d_n\}$$ of degree one linear maps $$d_n:S^nV \rightarrow V$$ on a graded vector space $$V$$. The condition that $$D^2=0$$ implies an infinite number of relations satisfied by various compositions among the $$\{d_n\}$$. Likewise, the identification

\begin{aligned} \mathrm{Coalg }(SV,SV')\simeq \prod _{n=1}^\infty \hom (S^nV,V') \end{aligned}
(2)

can be used to give the data of an $$L_\infty$$ morphism between $$(V,D)$$ and $$(V',D')$$. That is, a coalgebra map $$F:SV \rightarrow SV'$$ can be given by a sequence $$\{f_n\}$$ of degree zero maps $$f_n:S^nV \rightarrow V'$$. The condition that $$FD=D' F$$ encodes an infinite number of relations among the $$\{f_n\}$$, the $$\{d_n\}$$ and the $$\{d'_n\}$$. So, the identifications in Eqs. (1) and (2) provide two equivalent ways of describing $$L_\infty$$ algebras and morphisms and it is convenient to move between the ways since certain notions or computations are easier to describe in one or the other descriptions of the equivalent data. For example, it is straightforward to compose two differential coalgebra maps $$F:(SV,D)\rightarrow (SV',D')$$ and $$G:(SV',D')\rightarrow (SV'',D'')$$ as $$GF:(SV,D)\rightarrow (SV'',D'')$$ and thus define the composition of $$L_\infty$$ morphisms, but it is more involved to express the components $$(gf)_n:S^nV \rightarrow V''$$ in terms of the $$f_k:S^kV \rightarrow V'$$ and $$g_m:S^mV' \rightarrow V''$$.

### Construction

Let $$(V,D)$$ be an $$L_\infty$$ algebra with components $$d_n$$. Let $$A=(W,d)$$ be a commutative differential graded algebra. Then $$(V\otimes W)$$ can be given a canonical $$L_\infty$$ algebra structure denoted $$(V_A, D_A)$$ whose first component is $$d_1\otimes \mathrm{id }+\mathrm{id }\otimes d$$ and whose $$n$$th component for $$n>1$$ are given by

\begin{aligned} (v_1\otimes w_1, \ldots , v_n\otimes w_n)\mapsto d_n(v_1,\ldots , v_n)\otimes w_1\cdots w_n. \end{aligned}

In particular, if $$A=(\mathbb {C},0)$$ with the usual multiplication, then $$(V_A,D_A)$$ is canonically isomorphic to $$(V,D)$$.

### Definition 4

Let $$(V,D)$$ and $$(V',D')$$ be $$L_\infty$$ algebras. Let $$\Omega$$ denote the commutative differential graded algebra $$\mathbb {C}[t,dt],$$ polynomials in a variable $$t$$ of degree $$0$$ and its differential $$dt$$ (so in particular $$(dt)^2=0$$). An $$L_\infty$$ homotopy $$H$$ from $$(V,D)$$ to $$(V',D')$$ is an $$L_\infty$$ morphism from $$(V,D)$$ to $$(V'_\Omega ,D'_\Omega )$$. Given an $$L_\infty$$ homotopy $$H$$, the evaluation maps $$\Omega \rightarrow \mathbb {C}$$ for $$t=0$$ and $$t=1$$ induce two $$L_\infty$$ morphisms from $$(V,D)$$ to $$(V',D')$$. Call these two $$L_\infty$$ morphisms $$f$$ and $$f'$$. We say that $$H$$ is a homotopy between $$f$$ and $$f'$$.

### Remark 5

Homotopy is an equivalence relation on $$L_\infty$$ morphisms from $$(V,D)$$ to $$(V',D')$$. Transitivity is not obvious but can be verified [5].

### Remark 6

Homotopy behaves well with respect to composition. That is, if $$f$$ and $$f'$$ are homotopic $$L_\infty$$ maps $$P\rightarrow Q$$ and $$g$$ and $$g'$$ are homotopic $$L_\infty$$ maps $$Q\rightarrow R$$, then $$g\circ f$$ and $$g'\circ f'$$ are homotopic $$L_\infty$$ maps $$P\rightarrow R$$. In particular, this is true in the special cases where $$f=f'$$ or when $$g=g'$$.

Note that $$L_\infty$$ structures can be transported via isomorphisms. In particular, if $$(V,D)$$ is an $$L_\infty$$ algebra and $$G:SV \rightarrow SV$$ is any degree zero coalgebra isomorphism, then for

\begin{aligned} D^G:=G^{-1}DG \end{aligned}

the pair $$(V,D^G)$$ is again an $$L_\infty$$ algebra and the map $$G:(SV,D^G)\rightarrow (SV,D)$$ is an $$L_\infty$$ algebra isomorphism:

Morphisms and homotopies can be transported as well. If $$F$$ is an $$L_\infty$$ morphism between $$(V,D)$$ and $$(V', D')$$ and $$G:SV \rightarrow SV$$ and $$G':SV' \rightarrow SV'$$ are coalgebra isomorphisms, then

\begin{aligned} F^{G,G'}:=(G')^{-1}FG \end{aligned}

is an $$L_\infty$$ morphism between the $$L_\infty$$ algebras $$(V,D^G)$$ and $$(V',(D')^{G'})$$. Here’s the diagram:

For a homotopy $$H:SV \rightarrow SV'\otimes \Omega$$, the map $$G':SV'\rightarrow SV'$$ must be modified to be a coalgebra isomorphism from $$S(V'\otimes \Omega )$$ to $$S(V'\otimes \Omega )$$ but by abuse of notation the transferred homotopy $$SV\rightarrow S(V'\otimes \Omega )$$ will still be referred to as $$H^{G,G'}$$.

### Lemma 1

Let $$(V,0)$$ be a trivial $$L_\infty$$ algebra. If $$f$$ and $$f'$$ are homotopic $$L_\infty$$ morphisms $$(V,0)\rightarrow (\mathbb {C},0)$$, then $$f=f'$$.

### Proof

Let $$H$$ be a homotopy between $$f$$ and $$f'$$. Then $$H$$ is an $$L_\infty$$ morphism from $$(V,0)$$ to $$\Omega$$. That is, $$H$$ is a coalgebra map $$SV\rightarrow S\Omega$$ satisfying $$dH=0$$. In particular, each of the constituent maps $$S^nV\rightarrow \Omega$$ must have closed image in $$\Omega$$, so they must actually land in $$\mathbb {C}\oplus dt\mathbb {C}[t,dt]$$. This means that the evaluation of $$H$$ at $$0$$ and at $$1$$ yield the same map to $$\mathbb {C}$$, so $$f$$ and $$f'$$ coincide.$$\square$$

## Expectation, moments, and cumulants

### Notation

Let $$(C,e,a)$$ be a commutative homotopy probability space, with $$C=(V,d)$$. Then $$(V,d)$$ and $$(\mathbb {C},0)$$ are $$L_\infty$$ algebras with vanishing higher maps and $$e$$ is an $$L_\infty$$ morphism from $$(V,d)$$ to $$(\mathbb {C},0)$$. Let $$\mathbf {a}$$ denote the isomorphism of coalgebras $$SV\rightarrow SV$$ whose $$n$$th component $$S^nV\rightarrow V$$ is repeated multiplication using $$a$$. Let $$\mathbf {a}'$$ denote the isomorphism of coalgebras $$S\mathbb {C}\rightarrow S\mathbb {C}$$ whose $$n$$th component $$S^n\mathbb {C}\rightarrow \mathbb {C}$$ is repeated complex multiplication. The lowest component of $$\mathbf {a}$$ and $$\mathbf {a}'$$ are the identity.

### Remark 7

In the case of not necessarily commutative homotopy probability theory, where $$a$$ is not necessarily commutative and $$L_\infty$$ is replaced throughout with $$A_\infty$$, the product $$a$$ can be extended as a coderivation on $$TV=\oplus _{n=1}^\infty V^{\otimes n}$$. The coalgebra isomorphism $$\mathbf {a}$$, whose components $$V^{\otimes n}\rightarrow V$$ are repeated multiplication using $$a$$, is the exponential of the extended coderivation [3]. In the commutative world the map $$\mathbf {a}:SV\rightarrow SV$$ is defined to be the coalgebra isomorphism whose components $$S^nV\rightarrow V$$ are repeated multiplications using $$a$$, but the coalgebra isomorphism $$\mathbf {a}$$ is not the exponential of the coderivation lift of of $$a$$.

### Definition 5

Let $$(C,e,a)$$ be a commutative homotopy probability space with $$C=(V,d)$$. The total moment of $$(C,e,a)$$ is the $$L_\infty$$ morphism

\begin{aligned} M:=e^{\mathbf {a},\mathrm{id }} \end{aligned}

from $$(V,D^\mathbf {a})$$ to $$(\mathbb {C},0)$$. The $$n$$ th moment map $$m_n$$ is the $$n$$th component of the total moment $$e^{\mathbf {a},\mathrm{id }}$$ which is a map $$m_n:S^nV\rightarrow \mathbb {C}$$.

### Definition 6

Let $$(C,e,a)$$ be a commutative homotopy probability space with $$C=(V,d)$$. The total cumulant of $$(C,e,a)$$ is the $$L_\infty$$ morphism

\begin{aligned} K:=e^{\mathbf {a},\mathbf {a'}} \end{aligned}

from $$(V,D^\mathbf {a})$$ to $$(\mathbb {C},0)$$. The $$nth\,cumulant\,k_n$$ is the $$n$$th component of the total cumulant $$e^{\mathbf {a},\mathbf {a'}}$$ which is a map $$k_n:S^nV\rightarrow \mathbb {C}$$.

Moments and cumulants of a commutative homotopy probability space are homotopy invariant.

### Proposition 1

Let $$C$$ be a chain complex equipped with a product $$a$$. Let $$e$$ and $$e'$$ be homotopic chain maps $$C\rightarrow (\mathbb {C},0)$$. Then the total moment $$M$$ of the commutative homotopy probability space $$(C,e,a)$$ is homotopic to the total moment $$M'$$ of the commutative homotopy probability space $$(C,e',a)$$. Also, the total cumulant $$K$$ of the commutative homotopy probability space $$(C,e,a)$$ is homotopic to the total cumulant $$K'$$ of the commutative homotopy probability space $$(C,e',a)$$.

### Proof

The transferred homotopy $$H^{\mathbf {a}, \mathrm{id }}$$ is a homotopy between the total moments. The transferred homotopy $$H^{\mathbf {a},\mathbf {a}'}$$ is a homotopy between the total cumulants.$$\square$$

In applications, one would like to evaluate moments and cumulants on random variables and obtain numbers. Direct application of moments and cumulants yield numbers that are not homotopy invariant. Homotopy random variables are now introduced—they have joint moments and cumulants that are homotopy invariant.

### Definition 7

A collection of homotopy random variables $$(X_1,\ldots , X_n)$$ in a commutative homotopy probability space $$(C,e,a)$$ is the homotopy class of an $$L_\infty$$ map $$(\mathbb {C}^n,0)\rightarrow (V,D^\mathbf {a})$$. The various factors of $$\mathbb {C}^n$$ may be in different degrees. When $$n=1$$, we call such a collection a homotopy random variable.

### Example 1

The simplest kind of homotopy random variable is an $$L_\infty$$ morphism $$X:(\mathbb {C},0)\rightarrow (V,D^\mathbf {a})$$ whose only nonzero component is a map $$\mathbb {C}\rightarrow V$$. Such a map is determined by $$1\mapsto x$$ for an element $$x\in V$$. Not any choice of element $$x\in V$$ will define a homotopy random variable. The condition that $$X$$ be an $$L_\infty$$ morphism is that $$D^\mathbf {a}X=0$$, which encodes an infinite collection of conditions on $$x$$. Namely, $$dx=0$$, $$d_2^\mathbf {a}(x,x)=0$$, etc... More generally, a single homotopy random variable $$X$$ will have components $$S^k\mathbb {C}\rightarrow V$$, each of which is given by a map $$S^k1\mapsto x_k$$ for some $$x_k\in V$$. So, an arbitrary single random variable can be thought of as a sequence of elements $$\{x_k\in V\}$$. Note that every closed element $$x\in V$$ gives rise to a homotopy random variable by transport. That is, if $$x\in V$$ satisfies $$dx=0$$, then $$1\mapsto x$$ defines a chain map $$f:(\mathbb {C},0)\rightarrow (V,d)$$. Such a chain map is an $$L_\infty$$ morphism $$F:(\mathbb {C},0)\rightarrow (V,D)$$. The transport of $$F$$ to an $$L_\infty$$ map $$F^{\mathrm{id },\mathbf {a}}:(\mathbb {C},0)\rightarrow (V,D^\mathbf {a})$$ is a homotopy random variable. Note that not all homotopy random variables arise as the transport of chain maps; an $$L_\infty$$ morphism $$X:(\mathbb {C},0)\rightarrow (V,D^\mathbf {a})$$ can be transported back to give $$L_\infty$$ morphisms $$X^{\mathrm{id },(\mathbf {a})^{-1}}:(\mathbb {C},0)\rightarrow (V,D)$$, but this map may not only be a chain map, there may be nonzero components $$S^k\mathbb {C}\rightarrow V$$ for $$k>1$$.

### Example 2

The simplest kind of collection of homotopy random variables is an $$L_\infty$$ morphism $$(X_1, \ldots , X_n):(\mathbb {C}^n,0)\rightarrow (V,D^\mathbf {a})$$ whose only nonzero component is a map $$\mathbb {C}^n \rightarrow V$$. Such a morphism is determined by the images of the $$i$$th standard basis vectors of $$\mathbb {C}^n$$

\begin{aligned} b_i\mapsto x_i \end{aligned}

for $$i=1, \ldots , n$$. So, such a collection of homotopy random variables is determined by an ordered collection of elements $$x_1, \ldots , x_n\in V$$. As in the case of a single homotopy random variable, not every collection of elements $$\{x_1, \ldots , x_k\}$$ will define a homotopy random variable and an arbitrary collection of homotopy random variables will generally have nonzero components $$S^k\mathbb {C}^n\rightarrow V$$ for $$k>1$$. As in the case of a single homotopy random variable, finite collections of closed elements in $$V$$ define chain maps $$f:(\mathbb {C},0)\rightarrow (V,d)$$ and can be transported to give collections of homotopy random variables. Not all collections of homotopy random variables arise this way.

### Remark 8

Given a collection of homotopy random variables $$(X_1,\ldots , X_n)$$, one can obtain individual homotopy random variables $$X_i$$ by precomposing the inclusion of $$\mathbb {C}$$ into $$\mathbb {C}^n$$ in the $$i$$th factor. It is not true in general that given a set $$\{X_i\}_{i=1,\ldots , n}$$ of random variables one can meaningfully generate a collection of homotopy random variables $$(X_1,\ldots , X_n)$$.

### Definition 8

Let $$(C,e,a)$$ be a commutative homotopy probability space. The joint moment $$M(X_1, \ldots , X_n)$$ of the collection of homotopy random variables $$(X_1, \ldots , X_n)$$ is defined to be the $$L_\infty$$ morphism

\begin{aligned} M(X_1, \ldots , X_n)=M \circ f \end{aligned}

where $$f:(\mathbb {C}^n,0)\rightarrow (V,D^\mathbf {a})$$ is any representative of the collection of homotopy random variables $$(X_1, \ldots , X_n)$$ and $$M$$ is the total moment of $$(C,e,a)$$. The $$r$$th joint moment of a collection of random variables is the $$r$$th component of the joint moment $$M(X_1, \ldots , X_n)$$ and so is a map $$m_r(X_1, \ldots , X_n):S^r\mathbb {C}^n\rightarrow \mathbb {C}$$.

### Definition 9

Let $$(C,e,a)$$ be a commutative homotopy probability space. The joint cumulant $$C(X_1,\ldots , X_n)$$ of the collection of homotopy random variables $$(X_1, \ldots , X_n)$$ is defined to be the $$L_\infty$$ morphism

\begin{aligned} K(X_1, \ldots , X_n)=K\circ f \end{aligned}

where $$f:(\mathbb {C}^n,0)\rightarrow (V,D^\mathbf {a})$$ is any representative of the collection of homotopy random variables $$(X_1, \ldots , X_n)$$ and $$K$$ is the total cumulant of $$(C,e,a)$$. The $$r$$th joint cumulant of a collection of random variables is the $$r$$th component of the joint cumulant $$C(X_1, \ldots , X_n)$$ and so is a map $$k_r(X_1, \ldots , X_n):S^r\mathbb {C}^n\rightarrow \mathbb {C}$$.

### Lemma 2

Joint moments and joint cumulants are well-defined.

### Proof

Let $$f$$ and $$f'$$ be two representatives of the homotopy class $$(X_1,\ldots , X_n)$$. Then $$M \circ f$$ and $$M\circ f'$$ are homotopic $$L_\infty$$ maps from $$(\mathbb {C}^n,0)$$ to $$(\mathbb {C},0)$$. By Lemma 1, these two maps coincide. The compositions $$K \circ f$$ and $$K\circ f'$$ coincide for the same reason.$$\square$$

### Remark 9

The $$L_\infty$$ structure $$D^\mathbf {a}$$ does not depend on $$e$$. A collection of homotopy random variables could be defined for a pair $$(C,a)$$ without reference to an expectation. In particular, a collection of homotopy random variables $$(X_1, \ldots , X_n)$$ for a commutative homotopy probability space $$(C,e,a)$$ is also a collection of homotopy random variables for a commutative homotopy probability space $$(C,e',a)$$.

### Proposition 2

Let $$C$$ be a chain complex equipped with a product $$a$$. Let $$e$$ and $$e'$$ be homotopic chain maps $$C\rightarrow (\mathbb {C},0)$$. Let $$(X_1, \ldots , X_n)$$ be a collection of homotopy random variables of the commutative homotopy probability spaces $$(C,e, a)$$ and $$(C,e', a)$$. Then the joint moments and joint cumulants coincide. That is,

\begin{aligned} m_r(X_1, \ldots , X_n)=m'_r(X_1, \ldots , X_n) \end{aligned}

and

\begin{aligned} k_r(S_1, \ldots , X_n)=k_r'(X_1, \ldots , X_n). \end{aligned}

### Proof

Cumulants evaluated on a collection of homotopy random variables constitute $$L_\infty$$ morphisms from $$(\mathbb {C}^n,0)\rightarrow (\mathbb {C},0)$$. The proposition shows that in the case in question, two such $$L_\infty$$ maps are homotopic. By Lemma 1, they in fact coincide.$$\square$$

To summarize, a collection of random variables $$(X_1, \ldots , X_n)$$ is a homotopy class of $$L_\infty$$ maps $$(\mathbb {C}^n,0)\rightarrow (V,D^\mathbf {a})$$. The joint moments and joint cumulants of a collection of homotopy random variables $$e(X_1, \ldots , X_n)$$ are defined to be the compositions of $$L_\infty$$ morphisms

\begin{aligned} (\mathbb {C}^n,0)\overset{(X_1, \ldots , X_n)}{\longrightarrow } (V,D^\mathbf {a})\overset{M}{\rightarrow }(\mathbb {C},0)\end{aligned}
(3)
\begin{aligned} (\mathbb {C}^n,0)\overset{(X_1, \ldots , X_n)}{\longrightarrow } (V,D^\mathbf {a})\overset{K}{\rightarrow }(\mathbb {C},0) \end{aligned}
(4)

These compositions are well defined. They are independent of the representative of $$(X_1, \ldots , X_n)$$ and only depend on the homotopy class of the expectation value chain map $$e:(V,d)\rightarrow (\mathbb {C},0)$$. As an $$L_\infty$$ map $$(\mathbb {C}^n,0)\rightarrow (\mathbb {C},0)$$, the joint moments and joint cumulants of a collection of homotopy random variables $$e(X_1, \ldots , X_n)$$ have component maps

\begin{aligned} m_r:S^r(\mathbb {C}^n) \rightarrow \mathbb {C}\quad \text {and}\quad k_r:S^r(\mathbb {C}^n) \rightarrow \mathbb {C}\end{aligned}

which are comparable to the joint moments and cumulants of a collection of random variables in classical probability theory. In the special case that a linear map $$\mathbb {C}^n\rightarrow V$$ defined by $$b_i\mapsto x_i$$ does in fact define an $$L_\infty$$ morphism, as in Example 2, then the joint moment map is given by

\begin{aligned} S^r\mathbb {C}^n&\rightarrow \mathbb {C}\\ (b_{i_1}, \ldots , b_{i_r})&\mapsto e(x_{i_1} \cdots x_{i_r}) \end{aligned}

and the joint cumulant map is given by

\begin{aligned} S^r\mathbb {C}^n&\rightarrow \mathbb {C}\\ (b_{i_1}, \ldots , b_{i_r})&\mapsto k_r(x_{i_1}, \ldots , x_{i_r}) \end{aligned}

where $$k_r:S^kV\rightarrow \mathbb {C}$$ is the $$r$$th cumulant of $$(C,e,a)$$.

## The Gaussian

The Gaussian in one variable provides a toy example of how one might extend an algebra of random variables to a chain complex of random variables. The classical Gaussian in one variable is a classical probability space $$(V,e,a)$$ defined as follows: The space of random variables $$V$$ is the space of polynomials in one variable, concentrated in degree zero, the expectation $$e(p(x))$$ of a random variable is given by

\begin{aligned} e(p(x))=\frac{\int _{\mathbb {R}} p(x)e^{-\frac{x^2}{2}} dx}{\int _{\mathbb {R}} e^{-\frac{x^2}{2}} dx}, \end{aligned}

and the product $$a:S^2V\rightarrow V$$ is the ordinary product of polynomials.

Now, we construct a related homotopy probability space $$(C,e,a)$$. The idea behind the chain complex $$(V,d)$$ is to add new odd, nilpotent, random variables whose image under the differential comprises the kernel of the expectation value $$e$$. Let $$V=V^0\oplus V^1$$ be the free commutative algebra on two generators $$x$$ of degree $$0$$ and $$\eta$$ of degree $$-1$$. The product $$a:V\otimes V\rightarrow V$$ is the free graded commutative product. A typical element of $$V$$ has the form $$p+q\eta$$ for two polynomials $$p$$ and $$q$$ in the variable $$x$$. The $$p$$ term has degree zero and the $$q\eta$$ term has degree $$-1$$. The product is determined by the fact that $$\eta$$ as an element of degree $$-1$$ squares to zero. So

\begin{aligned} (p+q\eta )(r+s\eta )=pr+(ps+qr)\eta . \end{aligned}

Define the differential $$d:V\rightarrow V$$ by

\begin{aligned} d(p+q\eta )=\frac{dq}{dx}-xq. \end{aligned}

Define the expectation $$e:V\rightarrow \mathbb {C}$$ by

\begin{aligned} e(p+q\eta )=\frac{\int _{\mathbb {R}} pe^{-\frac{x^2}{2}} dx}{\int _{\mathbb {R}} e^{-\frac{x^2}{2}} dx}. \end{aligned}

Since

\begin{aligned} e(d(p+q\eta ))&=e\left( \frac{dq}{dx}-xq\right) \\&=\frac{1}{\int _{\mathbb {R}} e^{-\frac{x^2}{2}} dx}\int _{\mathbb R} \left( \frac{dq}{dx}-xq \right) e^{-\frac{x^2}{2}} dx \\&=\frac{1}{\int _{\mathbb {R}} e^{-\frac{x^2}{2}} dx}\int _{\mathbb R} \frac{d}{dx} \left( qe^{-\frac{x^2}{2}}\right) dx\\&=0 \end{aligned}

the expectation defines a chain map $$e:(V,d)\rightarrow (\mathbb {C},0)$$. So if two polynomials represent the same homology class in $$C$$, they have the same expectation. In fact, the converse is true: two polynomials have the same expectation if and only if they represent the same homology class in $$C$$. So, $$d$$ encodes all the relations among expectations and to compute the expectation of any one of the original random variables, it suffices to know the homology class of the random variable and the map $$e$$ on homology. Despite this fact, the map $$e$$ on homology retains almost no information of the original one variable Gaussian because $$e$$ on homology has no information about the product structure on the space of random variables. To illustrate this point and the thinking behind homotopy random variables, rephrase things in terms of homotopies of maps.

If $$f=f(x)$$ and $$g=g(x)$$ are polynomials that represent the same homology class in $$(V,d)$$, then the maps $$1\mapsto f$$ and $$1\mapsto g$$ define homotopic chain maps $$(\mathbb {C},0)\rightarrow (V,d)$$. The corresponding probability theory statement is that their expectations agree $$e(f)=e(g)$$. However, the moments of $$f$$ and $$g$$ will not agree in general, for example $$e(f^2)$$ and $$e(g^2)$$ need not agree. If, however, the maps $$1\mapsto f$$ and $$1\mapsto g$$ define homotopic $$L_\infty$$ maps $$(\mathbb {C},0)\rightarrow (V,D^\mathbf {a})$$, then not only will their expectations agree, but all of their moments will agree as well. This can be verified explicitly.

First, the $$L_\infty$$ structure $$D^\mathbf {a}$$ on $$(V,d)$$ can be computed. Recall $$D^\mathbf {a}$$ is the $$L_\infty$$ structure on $$(V,d)$$ transported by the coalgebra automorphism $$\mathbf {a}:SV \rightarrow SV$$ determined by the product $$a:V\otimes V \rightarrow V$$ of polynomials:

The map $$D:SV\rightarrow S\mathbb {C}$$ along the bottom is the map $$d:V\rightarrow \mathbb {C}$$ lifted as a coderivation. Let $$d_n^\mathbf {a}:S^nV \rightarrow \mathbb {C}$$ denote the components of $$D^\mathbf {a}$$. One way to compute $$d_n$$ is to trace an element of $$S^nV$$ from the top left to the bottom right along the two paths in the diagram above and compare the part that lands in $$\mathbb {C}\subset S\mathbb {C}$$. For $$n=1$$, this comparison gives $$d_1^\mathbf {a}=d$$. For $$n=2$$, following the diagram along the top and right yields

\begin{aligned} (v_1, v_2)&\mapsto d_2^\mathbf {a}(v_1, v_2)+(d(v_1) ,v_2)+(-1)^{|v_1|}(v_1, d(v_2))\\&\mapsto d_2^\mathbf {a}(v_1,v_2)+d(v_1)v_2+(-1)^{|v_1|}v_1d(v_2) \end{aligned}

and along the left and bottom yields

\begin{aligned} (v_1, v_2)\mapsto v_1v_2 \mapsto d(v_1v_2) \end{aligned}

Equating these and solving for $$d_2^\mathbf {a}$$ gives

\begin{aligned} d_2^\mathbf {a}(v_1,v_2)=d(v_1v_2)-d(v_1)v_2-(-1)^{|v_1|}v_1d(v_2). \end{aligned}

Therefore

\begin{aligned} d^\mathbf {a}_2(p+q\eta ,r+s\eta )&= d(pr+ps\eta +qr\eta )-d(p+q\eta )(r+s\eta )\\&\quad -pd(r+s\eta )+q\eta d(r+s\eta )\\&=\frac{dp}{dx}s+q\frac{dr}{dx} -\frac{dq}{dx}s\eta +q\frac{ds}{dx}\eta . \end{aligned}

The higher components $$d^\mathbf {a}_k=0$$ for $$k\ge 3.$$ To see this, it is helpful to notice that

\begin{aligned} d=\frac{\partial ^2}{\partial x \partial \eta }-x \frac{\partial }{\partial \eta } \end{aligned}

is a degree $$\le 2$$ differential operator. Use the diagram as in the description of $$d^\mathbf {a}_2$$ to express $$d_3^\mathbf {a}(v_1,v_2,v_3)$$ as the difference of $$d(v_1v_2v_3)$$ and a sum of three terms of the form $$d_2^\mathbf {a}(v_i,v_j)v_k$$ and three terms of the form $$d(v_i)v_jv_k$$ to check that $$d_3^\mathbf {a}(v_1,v_2,v_3)=0$$. Then, assuming that $$d^\mathbf {a}_n = 0$$ for $$3\le n < k$$, we get that

\begin{aligned} d^\mathbf {a}_k(v_1,\ldots , v_k)&= d(v_1\cdots v_k) \\&- \sum d_2^\mathbf {a}(v_i v_j) v_1\cdots \widehat{v_i}\cdots \widehat{v_j}\cdots v_k -\sum v_1\cdots d(v_i)\cdots v_k \end{aligned}

which vanishes.

The $$L_\infty$$ algebra $$(V,D^\mathbf {a})$$ in this case is a differential graded Lie algebra, the bracket defined by $$d_2^\mathbf {a}$$ may be familiar as the Poisson bracket defined on the polynomial functions defined on an odd symplectic vector space. Since both $$d(f)=0$$ and $$d_2^\mathbf {a}(f,f)=0$$ for a polynomial $$f=f(x)$$, the map $$1\mapsto f$$ is an $$L_\infty$$ map $$(\mathbb {C},0)\rightarrow (V,D^\mathbf {a})$$. Because joint moments of homotopy random variables are well defined, if two maps $$1\mapsto f$$ and $$1\mapsto g$$ are homotopic $$L_\infty$$ maps then $$e(f^n)=e(g^n)$$ for all $$n$$.

As a final computation, let $$X$$ be the homotopy random variable defined by $$1\mapsto x$$. The joint moment of $$X$$ is an $$L_\infty$$ morphism $$MX:(\mathbb {C},0)\rightarrow (V,D^\mathbf {a})\rightarrow (\mathbb {C},0)$$ where the first map is $$X$$ and the second is $$M:(V,D^\mathbf {a})\overset{M}{\rightarrow }(\mathbb {C},0)$$. The components of $$MX$$ are maps $$m_k:S^k\mathbb {C}\rightarrow \mathbb {C}$$ given by $$S^k1 \mapsto e(x^k)$$. As mentioned earlier, the expectation of any one random variable, such as $$e(x^k)$$, can be computed by understanding the homology class of the random variable and the map $$e$$ in homology. Here, the homology of $$(V,d)$$ is one dimensional spanned by the class of $$1$$ and

\begin{aligned} e(1)=\frac{\int _{\mathbb {R}} e^{-\frac{x^2}{2}} dx}{\int _{\mathbb {R}} e^{-\frac{x^2}{2}} dx}=1. \end{aligned}

That determines $$e$$ on homology. To determine the homology class of $$x^k$$, note, $$d(-\eta )=x\Rightarrow [x]=[0]$$ and for $$n> 1$$, $$d(x^{n-1}\eta )=(n-1) x^{n-2}- x^{n}\Rightarrow [x^n]=(n-1)[x^{n-2}].$$ So $$[x^k]=[0]$$ if $$k$$ is odd and $$[x^{2j}]=[(2j-1)!!]$$ if $$k=2j$$ is even. Thus, the components of $$MX$$, where $$X$$ is the homotopy random variable defined by $$1\mapsto x$$ and $$M$$ is the total joint moment of the Gaussian, are maps $$m_k:S^k\mathbb {C}\rightarrow \mathbb {C}$$ given by

\begin{aligned} m_k(S^k1)= {\left\{ \begin{array}{ll} 0 &{} \text { if } k \text { is odd} \\ (2j-1)!! &{} \text { for } k = 2\text {j} \text { even.} \end{array}\right. } \end{aligned}

## References

1. 1.

Batalin, I., Vilkovisky, G.: Gauge algebra and quantization. Phys. Lett. B 102, 27–31 (1981)

2. 2.

Costello, K.: Renormalization and Effective Field Theory. AMS (2011)

3. 3.

Drummond-Cole, G.-C., Park, J.-S., Terilla, J.: Homotopy probability theory I. J. Homotopy Relat. Struct. 1–11 (2013). doi:10.1007/s40062-013-0067-y

4. 4.

Loday, J.-L., Vallette, B.: Algebraic Operads. Springer, Berlin (2012)

5. 5.

Markl, M.: Deformation Theory of Algebras and Their Diagrams. American Mathematical Society, Providence (2012)

6. 6.

Park, J., Park, J.-S.: Period integrals of smooth projective hypersurfaces and homotopy Lie algebras 2013. arXiv:1310.6710

7. 7.

Park, J.-S.: Algebraic principles of quantum field theory I: foundation and an exact solution of BV QFT 2011. arXiv:1101.4414

8. 8.

Park, J.-S.: Algebraic principles of quantum field theory II: quantum coordinates and WDVV equation 2011. arXiv:1102.1533

9. 9.

Park, J.-S.: Homotopical probability space. In: Lecture at CUNY Graduate Center (2011)

## Author information

Authors

### Corresponding author

Correspondence to John Terilla.

This material is based in part upon work supported by the National Science Foundation under Award No. DMS-1004625. This work was supported in part by the Mid-career Researcher Program through NRF funded by the MEST (no. 2010-0000497). Thanks to the Simons Center for Geometry and Physics for providing an excellent working environment.

Communicated by Jim Stasheff.

## Rights and permissions

Reprints and Permissions

Drummond-Cole, G.C., Park, JS. & Terilla, J. Homotopy probability theory II. J. Homotopy Relat. Struct. 10, 623–635 (2015). https://doi.org/10.1007/s40062-014-0078-3

• Accepted:

• Published:

• Issue Date:

• Probability
• Cumulants
• Homotopy

• 55U35
• 46L53
• 60Axx