Optimal portfolio and certainty equivalence estimator for the appreciation rate