Selecting models of optimum complexity