Average vs. Ending

Can any one tell me for which ratios we need to do averaging and for which we need to ending?