Extraction of Autoregressive Hidden Variables from Stochastic Time Series Using Higher-Dimensional Algebras