correcting errors in averaging function
correcting errors in averaging function

juanshishido/project-eta,berkeley-stat159/project-eta,berkeley-stat159/project-eta,jonmigueljara/project-eta,juanshishido/project-eta,jonmigueljara/project-eta