Statistical inference from dependent observations