Statistical inference for the optimal approximating model