Statistical moment equations for forward and inverse modeling of multiphase flow in porous media