Approximation Theory and Algorithms for Data Analysis