diff options
author | Prabhu Ramachandran | 2019-07-18 10:02:49 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2019-07-18 10:02:49 +0530 |
commit | 7d1d55b676021a3a6fe2fc1eb9654e27a42790cc (patch) | |
tree | 591a891518e18325f8acd9a1d9769db0698ac840 | |
parent | b17cebadc82c99076a013e2d559005e351565b5f (diff) | |
download | python-workshops-7d1d55b676021a3a6fe2fc1eb9654e27a42790cc.tar.gz python-workshops-7d1d55b676021a3a6fe2fc1eb9654e27a42790cc.tar.bz2 python-workshops-7d1d55b676021a3a6fe2fc1eb9654e27a42790cc.zip |
Update slides.
-rw-r--r-- | cbse/stats_plots.ipyml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cbse/stats_plots.ipyml b/cbse/stats_plots.ipyml index 90c67e9..d56ba29 100644 --- a/cbse/stats_plots.ipyml +++ b/cbse/stats_plots.ipyml @@ -417,6 +417,19 @@ cells: * Use `deg=2` for quadratic functions. * ... +- code: | + # Showing the results + res = np.polyfit(x1, y1, deg=1) + # or + # scipy.stats.linregress(x1, y1) + plot(x1, y1, 'o') + plot(x1, res[0]*x1 + res[1]); + + metadata: + slideshow: + slide_type: slide + + # The lines below here may be deleted if you do not need them. # --------------------------------------------------------------------------- |