Mathematical Foundations of Data Science I