Polynomial regression example. It shows PolySolve generator to fit X-Y data.
Code: "stat_poly_regression.py". Programming language: Python DMelt Version 1. Last modified: 07/24/2016. License: Pro
https://datamelt.org/code/cache/stat_poly_regression_346.py
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.


from jhplot import *
from jhplot.math.polysolve import *

p=P1D()
p.add(10,20);  p.add(20,30) 
p.add(30,80);  p.add(40,130) 
p.add(50,70);  p.add(60,430) 
pl=PolySolve(p)


You see the box below because you did not login.