Essays on the forecasts of ending stocks