fit_line

media type="custom" key="22120478" var('x') LineF=plot(a*x+b,(x,min(x_d),max(x_d))) SP=scatter_plot(zip(x_d,y_d), figsize=4, facecolor="lightgreen", edgecolor="green", markersize=30, marker='s') show(LineF+SP) || media type="custom" key="22120096"
 * || ** Example 1 ** - To get this plot add code lines:
 * || [[image:fitline.png]] ||
 * Keywords:** fitline, linear approximation, least squares, statistics, regression