A formula is proved for the expected value of sum of a function of gene frequency along a sample path in the past, given the present frequency. The proof and the explanation of the formula is based on the general theory of time reversal of Markov processes. Moreover, a relation between time reversal and conditional processes is discussed, and it is shown that the fictitious drift term appears when one looks back at the history of mutants given the present frequency.