Time series (TS) of data on natural processes are considered. The universal approach to mathematical simulation of time series based on the idea of dynamical switches is developed. The strict mathematical statement of the problem is given in addition to qualitative reasons. The ways of constructing the mathematical models of time series are shown. Advantages of the approach are illustrated by the examples connected with global changes in the Earth climate. The prediction of further behavior of the studied time series is discussed.