DEP: stats: use np.deprecate to emit a warning