Accurate estimation of risk when constructing efficient portfolios for the capital asset pricing model