Given a ‘black box’ of logical elements, a sequence of independent random pulses is fed in and the output from the black box is observed. A procedure is given for estimating the parameters of the black box, in the case when the black box is constructed in a manner analogous to the classical autoregressive scheme.