Mathematical simulation of the electroencephalogram using an autoregressive series