Statistical inference for Markov processes