## Archive for the ‘**Directed Graphs**’ Category

## Discrete Stochastic Calculus

This post is part of a series

In the previous post of this series, we found that when Cartesian coordinates are placed on a binary tree, the commutative relations are given by

There are two distinct classes of discrete calculus depending on the relation between and .

### Discrete Exterior Calculus

If we set , the commutative relations reduce to

and in the continuum limit, i.e. , reduce to

In other words, when , the commutative relations vanish in the continuum limit and the discrete calculus converges to the exterior calculus of differential forms.

Because of this, the discrete calculus on a binary tree with will be referred to as the **discrete exterior calculus**.

### Discrete Stochastic Calculus

If instead of , we set , the commutative relations reduce to

and in the continuum limit, i.e. , reduce to

In this case, all commutative relations vanish in the continuum limit except .

In the paper:

I demonstrate how the continuum limit of the commutative relations give rise to (a noncommutative version of) stochastic calculus, where plays the role of a Brownian motion.

Because of this, the discrete calculus on a binary tree with will be referred to as the **discrete stochastic calculus**.

To date, discrete stochastic calculus has found robust applications in mathematical finance and fluid dynamics. For instance, the application of discrete stochastic calculus to Black-Scholes option pricing was presented in

and the application to fluid dynamics was presented in

Both of these subjects will be addressed in more detail as part of this series of articles.

It should be noted that discrete calculus and its special cases of discrete exterior calculus and discrete stochastic calculus represent a new framework for numerical modeling. We are not taking continuum models built on continuum calculus and constructing finite approximations. Instead, we are building a robust mathematical framework that has finiteness built in from the outset. The resulting numerical models are not approximations, but exact models developed within a finite numerical framework. The framework itself converges to the continuum versions so that any numerical models built within this framework will automatically converge to the continuum versions (if such a thing is desired).

Discrete calculus provides a kind of *meta* algorithm. It is an algorithm for generating algorithms.

## Network Theory and Discrete Calculus – Coordinates

This post is part of a series

When the binary tree was presented in the context of discrete calculus, the following small section of the tree was illustrated to establish the way the nodes are labelled

Two sets of coordinates were introduced on the binary tree:

- Cartesian coordinates
- Graph coordinates

The following illustrates the binary tree when we zoom out a bit:

Cartesian coordinates were defined such that

- and

resulting in

- and

Although Cartesian coordinates often help to relate discrete calculus to continuum calculus, the expressions are often not the most natural to work with when performing computations. One reason for this can be understood by overlaying the Cartesian coordinate lines onto the binary tree.

On the other hand, graph coordinates are defined such that

resulting in

- and

Computations are often cleaner when using graph coordinates. One reason for this can be understood by overlaying the graph coordinate lines onto the binary tree.

For instance, the commutative relations in graph coordinates are given by

whereas the commutative relations for Cartesian coordinates are given by

The cross commutative relations between the two sets of coordinates are given by

As a final note, for any discrete 0-form , the above indicates that

## Network Theory and Discrete Calculus – Differentiation Rules

This post is part of a series

In the previous post, we introduced discrete calculus on a binary tree. In particular, we introduced two sets of basis 1-forms we’ll refer to as

- Graph bases and
- Coordinate bases

related by

and saw that discrete 1-forms can be expressed in either left- or right-components forms

where, in general, the left- and right-component 0-forms do not coincide, i.e.

and

due to the noncommutativity of discrete 0-forms and discrete 1-forms.

### Product Rule

Recall the exterior derivative of a discrete 0-form may be expressed in left-component form as

where

and

Although the product rule is satisfied, i.e.

note the discrete 0-form is on the right of the discrete 1-form and the discrete 0-form is on the left of the discrete 1-form . Attempting to express the product rule in left components, we find

In order to move to the left of the coordinate bases above, we need to know the commutation relations

and

These commutation relations may be determined by noting that for any two discrete 0-forms and , we have

Therefore,

and

where use has been made of the coordinate commutation relations in the previous post.

Putting everything together, we find the product rule above implies the left components satisfy

and

### Change of Variables

Change of variables is something straightforward, yet has many applications, so it is worth writing it down here for future reference.

Let be a discrete 0-form with

If is invertible, we can rewrite this as

Given any other discrete 0-form , we have

From this, we can read off the discrete chain rules

and

## Network Theory and Discrete Calculus – The Binary Tree

This post is part of a series

So far in this series we’ve touched on a few applications of discrete calculus, but these were still at a fairly high level of abstraction. In this post, we lay some foundations for some very concrete applications that will allow us to actually start calculating things.

### The Binary Tree

A particularly nice directed graph with many applications is the binary tree – a portion of which is illustrated below:

A node in the binary tree is labelled , where the first integer denotes the “spatial” position, i.e. its location at a given time, and the second integer denotes the “temporal” position.

### Discrete Forms

A general discrete 0-form on a binary tree is written as usual as

where the sum is only over nodes of the binary tree and not over all integers. For instance, if is in the binary tree, then and are not.

Due to the special nature of the binary tree, a general discrete 1-form may also be reduced to a single sum over nodes, but in two distinct ways. First, we can group edges directed away from a given node. Second, we can group edges directed toward a given node.

In the first case, we can write

which is referred to as the **left-component form **and in the second case, we can write

which is referred to as the **right-component form**. These are two equivalent ways of expressing the same general discrete 1-form with

and

To see why these are referred to as left- and right-component forms, denote

and

and define a pair of basis 1-forms

and

Next, we can define left- and right-component 0-forms

and

respectively so that a discrete 1-form may be expressed in left-component form as

or equivalently in right-component form as

In other words, the left- and right- component forms of the bases allow us to express a general discrete 1-form form in terms of left- or right-component discrete 0-forms.

### Differentials

The exterior derivative of a general discrete 0-form on a binary tree is given in left-component form as

From this, we can read off the left-components which we’ll denote as

and

so that

Similarly, the right-components are given by

and

so that

### Noncommutative Coordinates

Although, strictly speaking, coordinates (other than node labels) are not necessary for performing computations in discrete calculus, it is helpful when comparing to continuum calculus to introduce coordinate 0-forms to the binary tree

where is the spatial distance between endpoints of a directed edge at successive time steps, and

where is the temporal spacing between successive temporal nodes.

In this special case, we have

and

so that

and

These relations can be inverted resulting in

and

so that

where

and

and the discrete calculus begins to resemble the continuum calculus.

### Commutation Relations

The coordinates and were referred to as “noncommutative” above because although discrete 0-forms commute, i.e.

in general, discrete 0-forms and discrete 1-forms do not commute. A straightforward computation results in the following commutation relations

and

from which it follows that

From here, there are two continuum limits one could consider that lead to different calculi. In the first, we could set

In this case, all commutation relation vanish and the continuum is also a commutative limit, i.e. the coordinates commute in this limit and we’re left with the usual deterministic continuum calculus.

In the second limit, we could set

In this case, the second and third commutation relations vanish, but the first one remains

This limit gives rise to stochastic calculus (or a very close cousin). Motivated by this, the discrete calculus on a binary tree when setting

but keeping finite is referred to as **discrete stochastic calculus**.

## Network Theory and Discrete Calculus – Noether’s Theorem

This post is part of a series

As stated in the Introduction, one of the motivations for this series is to work in parallel with John Baez’ series on network theory to highlight some applications of discrete calculus. In this post, I reformulate some of the material in Part 11 pertaining to Noether’s theorem.

### The State-Time Graph

The directed graphs associated with discrete stochastic mechanics are described in the post The Discrete Master Equation, where the simple state-time graph example below was presented

Conceptually, the thing to keep in mind is that any transition from one state to another requires a time step. Therefore a transition from node to node is more precisely a transition from node to node .

On a state-time graph, a discrete 0-form can be written as

and a discrete 1-form can be written as

### The Master Equation

The master equation for discrete stochastic mechanics can be expressed simply as

where is a discrete 0-form representing the state at all times with

and is a discrete 1-form representing transition probabilities with

for all . When expanded into components, the master equation becomes

### Observables and Expectations

A general discrete 0-form on a state-time graph is defined over all states and all time. However, occasionally, we would like to consider a discrete 0-form defined over all states at a specific point in time. To facilitate this in a component-free manner, denote

so the identity can be expressed as

The discrete 0-form is a projection that projects a general discrete 0-form to a discrete 0-form defined only at time . For instance, given a discrete 0-form , let

so that

In discrete stochastic mechanics, an observable is nothing more than a discrete 0-form

The expectation of an observable with respect to a state is given by

where was defined in a previous post. Note:

### Some Commutators

In preparation for the discrete Noether’s theorem, note that

and

For these commutators to vanish, we must have

This implies if and only if is constant on each connected component of the state-time graph.

### Constant Expectations

In this section, we determine the conditions under which the expectation of an observable is constant in time, i.e.

for all . This is a fairly straightforward application of the discrete master equation, i.e.

indicating the condition we’re looking for is

### Noether’s Theorem

In this section, we demonstrate that when both and are constant in time, this implies

which, in turn, implies . To do this, we first expand

The condition for this trace to vanish is the same as the condition for the commutators above to vanish, i.e.

Expanding the trace further results in

Summing over and when and are constants results in

while summing and in the third term results in

by definition of the transition 1-form. Consequently, when and are constants, it follows that

Finally, this implies if and only if and are constant in time.

## Network Theory and Discrete Calculus – Quantized Conductance

This post is part of a series

### The Graph Operator

In my last post, I mentioned the** graph operator**

and the fact the exterior derivative of a discrete 0-form can be expressed as a commutator

where

I then let myself speculate that the graph conductance 1-form

could be nothing more than the graph operator. In this post, I hope to explain a bit more how that might work.

### Graph Conductance

Recall that the discrete Ohm’s Law

gives the total current

If we did not need to probe the current in any one of the individual parallel directed edges, it would be tempting to replace them with a single effective directed edge representing the total current flowing them, i.e.

where

In doing so, we could also replace the conductances with a single effective conductance

where

### Equivalence

Could it be that ?

Let denote a partition of the set of directed edges from node to node and express the graph operator as

where

and is the number of directed edges in the subset . This would only make sense if we were not going to probe into any single directed edge within any element of the partition.

Comparing this to the conductance

we see that the graph conductance can be interpreted as the graph operator where each directed edge of our electric network is actually composed of a number of fundamental directed edges, i.e. conductance is simply counting the number of sub-paths within each directed edge.

### Thoughts

As before, thinking about this (as time allows) raises more questions than answers. For example, if the above makes any sense and is in any way related to nature, this would imply a fundamental unit of conductance and that conductance should be quantized, i.e. come in integer multiples of the fundamental unit. For completely unrelated (?) reasons, conductance is observed to be quantized due to the waveguide like nature of small, e.g. nano, wires and the fundamental unit of conductance is given by

where is the electron charge and is Planck constant.

This also makes me think of the geometric origin of inhomogeneous media. In vacuum, I would expect there to be just a single directed edge connecting any two nodes. Hence, I would expect in vacuum. In the presence of matter, e.g. components of an electrical network, there should be bunches of directed edges between any two nodes.

## Network Theory and Discrete Calculus – Electrical Networks

This post is part of a series

### Basic Equations

In Part 16 of John Baez’ series on Network Theory, he discussed electrical networks. On the day he published his article (November 4), I wrote down the following in my notebook

and

The first equation is essentially the discrete calculus version of Ohm’s Law, where

is a discrete 1-form representing conductance,

is a discrete 0-form representing voltage, and

In components, this becomes

The second equation is a charge conservation law which simply says

where

is the sum of all currents into node and

is the sum of all currents out of node . This is more general than it may first appear. The reason is that directed graphs are naturally about spacetime, so the currents here are more like 4-dimensional currents of special relativity. The equation

is related to the corresponding Maxwell’s equation

where is the adjoint exterior derivative and is the 4-current 1-form

This also implies the discrete Ohm’s Law appearing above is 4-dimensional and actually a bit more general than the usual Ohm’s Law.

### Some Thoughts

I’ve been thinking about this off and on since then as time allows, but questions seem to be growing exponentially.

For one, the equation

is curious because it implies that is a derivative, i.e.

Further, although by pure coincidence, in my paper with Urs, we introduced the graph operator

and showed that for any directed graph and any discrete 0-form that

Is it possible that and are related?

I think they are. This brings thoughts of spin networks and Penrose, but I’ll try to refrain from speculating too much beyond mentioning it.

If they were related, this would mean that the discrete Ohm’s Law above simplifies even further to

and

In components, the above becomes

This expresses an effective conductance in terms of the total number of directed edges connecting the two nodes in either direction, i.e.

If the ‘s appearing in the conductance 1-form are themselves effective conductances resulting from multiple more fundamental directed edges, then we do in fact have

Applications from here can go in any number of directions, so stay tuned!