Build weighted polynomial regression

Job ID: 34775165

Budget: €8 – €30 EUR

I currently have a python code, which creates weights, given points on a graph.

I want to create a polynomial regression from these points and weights, and display it on a graph (using matplotlib)

I want to test this regression when the points form :
- A line without noise
- A line with noise
- A line without noise and extravagant points
- A line with noise and extravagant points

------------------------------------

You will be given the piece of code which does the following :
1. Create sample data
2. Create the weights
3. Display the points in a graph

I want a code which generates 4 graphs, where for each one, the sample data is different (depending on the scenarios described above).