Dynamic statistical inference in massive datastreams