Skip to content

Glossary

This page defines the mathematical and library terms that the user guide uses, in alphabetical order. Each entry ends with a link to the page or section where the term is at work.

Agent

An agent is an element whose laws are rules that read and change its own states, its neighbours, or the system, one member at a time. Agents move, choose, trade, and die, which equations of averages cannot express. The tutorial Agent-based systems builds them.

Algebraic state

An algebraic state has no derivative of its own, because the equations of its system fix its value at every time. It takes a ConstraintLaw, such as 0 = g(x), or a linear program, never a rate. See ConstraintLaw.

Approximate Bayesian computation

Approximate Bayesian computation estimates a posterior without a likelihood. It draws parameters from the prior, runs the system, and keeps the draws whose summaries lie close to the data. See Calibrate.

Attractor

An attractor is the set of states that the runs of a dissipative system settle on, such as a fixed point, a cycle, or the strange set of a chaotic flow. Its dimension and its Lyapunov exponents describe it. See Analyse.

Backend

A backend turns the laws of a compiled problem into numeric functions. NumPy is the default, Numba compiles large systems, and JAX writes functions that can be differentiated. See Simulate.

Basin stability

Basin stability is the share of random initial states whose runs reach a given behaviour. It measures how stable the behaviour is against large disturbances. See Run experiments.

Calibration

Calibration estimates the parameters of a system from data. A point fit returns one value per parameter, and a posterior method returns samples of the posterior. See Calibrate.

Chaos

A chaotic system is deterministic, yet two runs that start close apart separate exponentially fast, so its long-term path cannot be predicted. A positive Lyapunov exponent is its signature. See Analyse.

Co-simulation

Co-simulation runs the partitions of one system, each with its own solver, and exchanges their values at synchronisation points. It joins components that no single solver runs, such as agents beside a differential equation. See Simulate.

Compiler

The compiler reads the laws of a prepared system and builds one problem of a mathematical form, such as a system of ordinary differential equations. A solver then advances that problem. See How the components fit.

Component

A component is a building block of a system: an element, an interaction, a space, a neighbourhood, or a nested system. Every component derives from BaseComponent, has a label, parameters, and capability tags, and has the method prepare. The laws are what interactions set, see Law. A component of a vector or a connected component of a network keeps its usual meaning. See How the components fit.

Credible interval

A credible interval of level 90% holds the parameter with probability 0.9 under the posterior. A calibrated method covers the true value at about that rate over many studies. See Evaluate.

Deterministic

A deterministic system draws no random numbers, so one initial state gives one run. Its tag randomness is deterministic, the opposite of stochastic. See Run experiments.

Domain

The domain of a state is the set of values it may take, such as the real numbers, the integers, or the numbers from zero up. A role names the domains it accepts, and a state of another domain does not fit it. See Check a system.

Dotted name

A dotted name joins the label of a component and the name of one of its values, such as prey.x or predation.a. A trajectory, a schedule, and an experiment name states and parameters this way. See Simulate.

Element

An element holds states, the numbers that change as a system runs, such as the size of a population or the balance of an account. It may also hold parameters and laws of its own. See Elements.

Ensemble

An ensemble repeats the runs of a stochastic system with independent random streams. The spread of its outcomes shows what chance alone can do. See Run experiments.

Field realization

A field realization is a subclass of a core component that names it in the words of one field and fixes its arguments, such as a compartment of an epidemic written as an Element with one value. The catalog writes its systems this way. See System classes.

Fixed point

A fixed point is a state where every rate is zero, so a run that starts there stays there. Its stability says whether nearby states move toward it, away from it, or around it. See Analyse.

Frame

A frame is one recorded instant of a run, with the time, the states, and the parameters. The time between frames is dt, while the solver may take smaller steps inside it. See Simulate.

Gillespie algorithm

The Gillespie algorithm runs random events exactly in continuous time. It draws the time of the next event from the total rate and picks the event in proportion to its rate. See Simulate.

Group

A group holds many members of one element class, such as Element('walkers', values={'x': 0.0}, size=1000), or one per site of a lattice or node of a network with space=. Rules may add and remove members as the run goes. See Element.

Identifiability

A parameter is identifiable when the data fix its value. Practical identifiability asks this of the data at hand, by refitting noisy copies or by profiling the likelihood. See Evaluate.

Interaction

An interaction reads values through its roles and sets in laws_ the laws that change them, such as hunting that lowers the prey and feeds the predators. See Interactions.

Invariant

An invariant is a quantity that must stay constant along a run, such as the energy of a frictionless oscillator. A run given an invariant checks it at every frame and raises an error when it drifts beyond its tolerance. See Simulate.

Jacobian

The Jacobian of a system is the matrix of the derivatives of its rates with respect to its states. Its eigenvalues at a fixed point decide the stability of that point. See Analyse.

Jump

A jump is a random event that changes states by a fixed amount at a random time, such as one birth or one reaction. Jump laws run under the Gillespie algorithm. See Simulate.

Kind of data

A kind of data is what an analysis consumes, such as a series, a jump path, a field, agent snapshots, a network, or an ensemble of runs. An analysis reads its kind from a trajectory or from measured arrays alike. See Analyse.

Kind of element

The kind of an element says how many members it holds and where they sit, such as element, group, or site-group. A role accepts some kinds and rejects the others. See Check a system.

Label

A label is the name of a component, unique among the components of its system. Roles bind elements by label, and dotted names start with it. See Check a system.

Law

A law is one piece of mathematics for one state, of one of seven kinds: a rate, a noise, a jump, an update, a constraint, an event, or an objective, such as RateLaw(x.diff(t, 2), -g) for a falling ball. Interactions set laws, and prepare joins them into a problem. See Laws.

Law kind

The law kind of an interaction is the kind of law it sets, such as rate, update, or jump. The law kinds of a system decide its mathematical form and its default solver. See Check a system.

Likelihood

The likelihood of parameters is the probability of the observed data under them. Calibration maximises it or samples the posterior it implies. See Calibrate.

Loss

A loss scores how far a candidate set of parameters lies from the data, such as the sum of squared residuals. A calibration method minimises it or reads it as a likelihood. See Calibrate.

Lyapunov exponent

A Lyapunov exponent is the average rate at which two nearby paths separate along one direction. A positive exponent means chaos, a negative one contraction, and zero a direction along which paths neither separate nor approach. See Analyse.

Main public methods

The main public method of a component is prepare, which checks it against what it works on and returns the component itself. A system has a second one, simulate, which returns a trajectory. See How the components fit.

Markov chain Monte Carlo

Markov chain Monte Carlo draws samples of a posterior with a random walk whose long-run distribution is the posterior. The No-U-Turn Sampler follows the gradient of the likelihood to move faster. See Calibrate.

Mass action

The law of mass action makes the rate of a reaction proportional to the product of the amounts of its reactants. Epidemiology calls the same assumption homogeneous mixing. See ReactionNetworkSystem.

Member

A member is one instance of the element class of a group, such as one cell of a lattice or one agent of a flock. Each member holds its own copy of the values of the class. See Element.

Model parameter

A model parameter is an argument of a system class, such as the growth rate r, set with set_params. Changing it builds new components, while a dotted name changes a value of the built components. See Change it.

Neighbourhood

A neighbourhood says which members of a space count as neighbours of each member, such as the four nearest sites of a lattice or every point within a radius. Interactions over neighbours read it. See Spaces and neighbourhoods.

Nested system

A nested system is a system held inside another as one of its components. Its elements are reached by paths such as village/farmers, and it becomes a partition when its laws fit one form. See Simulate.

Observable

An observable is a named value computed from the states at every frame, such as the total population. The trajectory records it beside the states. See Simulate.

Observer

An observer receives the frames of a run as they come. The recorder keeps them as a trajectory, and other observers check invariants or stream the run to a viewer. See Observe.

Ordinary differential equation

An ordinary differential equation gives the rate of change of each state as a function of the states and time. A system of rate laws in continuous time compiles to one. See Simulate.

Orbit diagram

An orbit diagram shows the values a state visits after a transient, for every value of a parameter. One value means a steady state, a few a periodic cycle, and many a cycle that does not repeat. See Run experiments.

Partition

A partition is a group of the components of a system that runs with its own solver during co-simulation. Each nested system whose laws fit one form becomes one. See Simulate.

Phase space

A phase space pairs every position of a lattice with a value on one or more class axes, such as a velocity. A density on it describes a population, such as the molecules of a gas, by how much of it sits in each cell. See PhaseSpace.

Posterior

The posterior is the distribution of the parameters given the data and the prior. A posterior method of calibration returns samples of it. See Calibrate.

Posterior predictive check

A posterior predictive check simulates data from posterior draws and asks whether they look like the observed data. The share of observed points inside the simulated band measures it. See Evaluate.

Prior

The prior is the distribution of the parameters before the data are seen. A bound (low, high) reads as a uniform prior. See Calibrate.

Propensity

The propensity of a random event is its rate, the expected number of firings per unit of time. Under mass action it is the rate constant times the product of the reactant amounts. See Simulate.

Recipe

A recipe is a general system of skcomplex.systems.general, such as a reaction network or a stock and flow model, that a field system subclasses or fills with data. See Build a custom system.

Recurrence

A recurrence is a pair of times at which the states of a run lie close to each other. The share of recurrences that form diagonal lines, the determinism, is close to 1 for a periodic series. See Analyse.

Residual

A residual is the difference between a simulated value and an observed one at the same time. Losses and measures of fit are built from residuals. See Evaluate.

Role

A role is a named slot of an interaction, such as predator or prey, bound to an element by its label. It names the kinds of element and the states it reads. See Check a system.

Run settings

The run settings are the arguments of simulate, such as until, dt, and random_state. A system class tunes defaults for those a call leaves out. See Simulate.

Scenario

A scenario is a named variant of a system, such as an intervention, run under the same random draws as the baseline. See Run experiments.

Schedule

A schedule sets parameters from functions of time at every frame of a run, such as a slow ramp of a birth rate. See Simulate.

Section

A section reduces a flow to a map by keeping its states at chosen moments. A Poincaré section keeps the moments when a state crosses a value, and a stroboscopic section samples once per period of a periodic force. See Analyse.

Sensitivity analysis

Sensitivity analysis ranks the inputs of a model by their effect on an output, one at a time or by splitting the variance of the output. See Run experiments.

Solver

A solver advances a compiled problem in time, such as the LSODA method for ordinary differential equations or the Gillespie algorithm for jumps. The tags of a system choose the default solver. See Simulate.

Space

A space places the members of a group and says who neighbours whom, such as a lattice, a network, or continuous space. See Spaces and neighbourhoods.

Spec

A spec is a small frozen record that describes a value, such as a VisualSpec that gives the drawing of an element. Components read specs for their settings. See How the components fit.

State

A state is a value that some law changes as a system runs, such as the height of a falling ball. A value that no law changes is a parameter. The starting value of a state is the value its element holds, such as 10.0 in Element('ball', values={'x': 10.0}). See How the components fit.

Steady state

A steady state is a state that a run reaches and keeps, so its rates are zero there. It is a fixed point that attracts nearby runs. See Run experiments.

Stiff

A stiff system mixes fast and slow time scales, so an explicit solver needs tiny steps to stay stable. Implicit methods such as BDF take large steps instead. See Simulate.

Stochastic

A stochastic system draws random numbers, so one initial state gives many possible runs. A random_state makes one of them reproducible. See Simulate.

Stoichiometry

The stoichiometry of a reaction is the number of units of each species it consumes and produces. Its stoichiometric vector is the change of every amount when the reaction fires once. See ReactionInteraction.

Surrogate

A surrogate is a system learned from data that runs, forecasts, and is analysed like a system written by hand. See Analyse.

Sweep

A sweep runs a system once per row of a design of parameter values and collects the outputs in one table. See Run experiments.

System

A system composes elements, interactions, nested systems, and a space into one model, which prepare compiles and simulate runs. A system class builds its components from model parameters. See Systems.

System class

A system class is a subclass of BaseSystem that builds its components from model parameters and tunes its run settings. The catalog holds ready-made system classes. See System classes.

Tag

A tag records a capability of a component, such as the time its laws imply, its law kinds, the domains of its states, or its randomness. The tags of a system join those of its components and choose its solver. See Check a system.

Time

The time of a system says whether it flows continuously, steps in discrete increments, or is solved once without time. It follows from the kinds of the laws: rates flow, updates step, and objectives and constraints alone are static. See Check a system.

Trajectory

A trajectory holds the frames of a run, with the times, the states, and the parameters of every frame. simulate returns it. See Simulate.

Variational inference

Variational inference fits a simple distribution, such as a multivariate normal, to the posterior instead of sampling it. It is fast but can miss a skewed posterior. See Calibrate.

Virtual population

A virtual population is a set of parameter rows whose runs look like real observations, drawn from priors and kept when their outputs lie in plausible ranges. See Calibrate.