Jupyter notebook Homework Folder/AKoehler_12102015_Research_Proposal/Proposal_Graph.ipynb
Kernel: Python 2
In [6]:
Out[6]:
In [7]:
Out[7]:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-7-130f3eba9461> in <module>()
1 import matplotlib.pyplot as plt
2 xp = np.linspace(-2, 6, 100)
----> 3 _ = plt.plot(x, y, '.', xp, p(xp), '-', xp, p30(xp), '--')
4 plt.ylim(-2,2)
5 plt.show()
NameError: name 'p' is not defined
In [8]:
Out[8]:
4 3 2
-26.87 x + 44.51 x - 24.45 x + 5.447 x + 0.4641
In [9]:
Out[9]:
2
-0.002077 x + 0.7544 x + 25.4
In [10]:
Out[10]:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-10-33314e658c6f> in <module>()
3 #import seaborn as sns
4 #sns.residplot(x,y)
----> 5 scipy.stats(x,y)
AttributeError: 'module' object has no attribute 'stats'
In [11]:
Out[11]:
2
-0.002077 x + 0.7544 x + 25.4
In [ ]: