A Method for Predicting Rare Events by Multidimensional Time Series with the Use of Collective Methods