I&#x27;ve been idly chasing that idea for some time. There&#x27;s some great literature out there on categories of distributions and (conditional) random variables as arrows between them. That would be a good place to start looking more deeply!<p>(God I wish I had the time to look into this myself!)