Advanced Calculus with Applications in Statistics