Category Theory
Zulip Server
Archive

You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.


Stream: learning: questions

Topic: Functors with "global" properties


view this post on Zulip Nathaniel Virgo (Aug 23 2020 at 00:31):

I'm thinking about the following situation, where morphisms in a category are mapped to probabilities. It can be expressed as a functor, but because of normalisation the functor needs to have a property that feels more "global" in nature than the properties we usually ask functors to have. My question is "what's this an example of?" - is there a way to think about this extra condition in a less ad hoc way?

Suppose I have a free category on a graph. So I start with a set of objects and a distinguished set of morphisms called generators, and I form a category by freely concatenating them. I can think of this category as a state machine, where the objects are states and the morphisms are sequences of possible transitions between states, with the identities being empty sequences.

Now suppose I want to make this into a Markov process, where the sequences have associated probabilities. I can do that by defining a functor from my free category to [0,1][0,1] as a multiplicative monoid. A sequence of transitions AfBA\xrightarrow{f} B, let's say of length nn, maps to a number, which we interpret as the probability of observing that sequence over nn time steps, conditioned on AA being the initial state. From the definition of a functor, identities (empty sequences) are assigned a probability of 1. (There's only one sequence you can observe over 0 time steps.) Concatenation maps to multiplication, which is what we should expect.

However, not just any such functor will do, because we also demand that, for any nn, the set of sequences of length nn that start at a given object AA must have probabilities that sum to 1. This can be achieved by making sure that all of the generators out of a given object map to numbers that sum to 1, and it extends automatically to sequences of any length.

But this is a bit of a weird property to ask a functor to have, both because the sum operation isn't part of the definition of the multiplicative monoid we're mapping to, and because we're asking about (a subset of) "all of the morphisms pointing out of a given object", so it depends on the hom-sets all at once, instead of one morphism at a time.

So the question is what kind of thing is this - is there a way to express this sort of condition in a more satisfyingly category-theoretic way, which then might give some insight into how to generalise it?

view this post on Zulip John Baez (Aug 23 2020 at 05:21):

I think for this sort of thing it's better to use "unnormalized probabilities" - nonnegative numbers that may not sum to 1. Whenever you have a finite set equipped with unnormalized probabilities, you can normalize them and get a probability distribution on that set. Similar things happen in more infinite contexts (infinite sets, infinite measure spaces) if one is willing to engage in more analysis.

In physics this procedure is standard; the normalizing constant is called the partition function and it plays a fundamental role in statistical mechanics. So I think it's better to work with unnormalized probabilities until the very end. You can get used to them.

view this post on Zulip John Baez (Aug 23 2020 at 05:22):

The category of finite sets equipped with unnormalized probabilities is very nice.