how derivatives used in data science