In this article, we study the optimal portfolio. There are two purposes we focus on. One is to reduce risks using principal component analysis. The other is to minimize the amount of rebalancing portfolio. Here, the amount of rebalancing portfolio is measured on the absolute difference basis. We especially devise the calculation method using portfolio discretization.