Performs polynomial regression to generate the polynomial of best fit of specified degree through a set of points.