Theory of System Identification and Adaptive Control for Stochastic Systems