Statistical inference for system and disease dynamics