Foundations of Data Analysis