Scattering theory and linear least squares estimation—II. Discrete-time problems