Modeling noisy data with differential equations using observed and expected matrices