Generalized Ornstein–Uhlenbeck process by Doob’s theorem and the time evolution of financial prices