The statistical physics of discovering exogenous and endogenous factors in a chain of events.