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.
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 as a multiplicative monoid. A sequence of transitions , let's say of length , maps to a number, which we interpret as the probability of observing that sequence over time steps, conditioned on 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 , the set of sequences of length that start at a given object 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?
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.
The category of finite sets equipped with unnormalized probabilities is very nice.