Weighted Regression Method. Locally Weighted Linear Regression Implementation In Either R Or Python Cross Validated from stats.stackexchange.com