The connection between the Schrödinger equation and Einstein's diffusion theory based on the Brownian motion of independent particles is well known. However, in contrast to diffusion theory, quantum mechanics theory has suffered controversial interpretations due to the counterintuitive concept of wavefunction. Here, while we confirm there is no difference in the mathematical form of these two equations, we derive the imaginary version of displacement. Using the diffusion theory of particles in a medium, as simple as it is, we describe that quantum mechanics is just an elegant and subtle equation to describe the probability of all the trajectories that a particle can take to propagate in time by a predictive wavefunction. Therefore, information on the position of particles through time in quantum theory is embedded in the wavefunction, which predicts the evolution of an ensemble of individual Brownian particles.