結果 : cost function vs average cost function