The problem of state prediction for linear dynamic systems with discrete time is considered in the presence of unknown input and inaccurately specified parameters in the model. An algorithm with compensation for the constant component and estimation of the unknown variable input component by the least squares method is suggested. Results of statistical simulation are presented. The algorithm can be used for solving problems of processing information obtained as a result of observations over physical processes.