FINITE SAMPLE GUARANTEES FOR LEARNING THE DYNAMICS OF SYSTEMS