A Categorical Framework for Modeling with Stock and Flow Diagrams

11/01/2022
by   John C. Baez, et al.
0

Stock and flow diagrams are already an important tool in epidemiology, but category theory lets us go further and treat these diagrams as mathematical entities in their own right. In this chapter we use communicable disease models created with our software, StockFlow.jl, to explain the benefits of the categorical approach. We first explain the category of stock-flow diagrams and note the clear separation between the syntax of these diagrams and their semantics, demonstrating three examples of semantics already implemented in the software: ODEs, causal loop diagrams, and system structure diagrams. We then turn to two methods for building large stock-flow diagrams from smaller ones in a modular fashion: composition and stratification. Finally, we introduce the open-source ModelCollab software for diagram-based collaborative modeling. The graphical user interface of this web-based software lets modelers take advantage of the ideas discussed here without any knowledge of their categorical foundations.

READ FULL TEXT

page 30

page 38

research
05/09/2022

Compositional Modeling with Stock and Flow Diagrams

Stock and flow diagrams are widely used in epidemiology to model the dyn...
research
05/03/2023

Hierarchical and Upstream-Downstream Composition of Stock and Flow Models

The growing complexity of decision-making in public health and health ca...
research
05/01/2022

Categorical Semantics for Feynman Diagrams

We introduce a novel compositional description of Feynman diagrams, with...
research
06/07/2020

Contextualisation of Data Flow Diagrams for security analysis

Data flow diagrams (DFDs) are popular for sketching systems for subseque...
research
03/08/2023

A Categorical Framework of General Intelligence

Can machines think? Since Alan Turing asked this question in 1950, nobod...
research
08/07/2022

Programs as Diagrams: From Categorical Computability to Computable Categories

This is a draft of the first 7 chapters of a textbook/monograph that pre...
research
07/19/2023

Inductive diagrams for causal reasoning

The Lamport diagram is a pervasive and intuitive tool for informal reaso...

Please sign up or login with your details

Forgot password? Click here to reset