Process control and statistical inference