Statistical approaches on the apparent horizon entropy and the generalized second law of thermodynamics