In this study problem of short-term forecasting for coal and crude oil production in Ukraine. Autoregressive and optimal filtering algorithm for linear systems based upon autoregressive model of second order were constructed for short term forecasting.