Path: blob/master/notebooks/book2/15/linreg_rank_stats.ipynb
1193 views
Kernel: base
Perform 1d linear regression on some toy data, and its rank-transformed version. Code is from https://www.georgeho.org/tests-as-linear/
In [1]:
Out[1]:
<frozen importlib._bootstrap>:219: RuntimeWarning: scipy._lib.messagestream.MessageStream size changed, may indicate binary incompatibility. Expected 56 from C header, got 64 from PyObject
In [2]:
In [13]:
In [14]:
In [15]:
Out[15]:
pearson params Intercept 0.044719
x 0.966266
dtype: float64
spearman params Intercept 3.537931
x 0.771746
dtype: float64
saving image to /Users/kpmurphy/github/bookv2/figures/linreg_rank_stats_latexified.pdf
Figure size: [6. 2.]
<ipython-input-15-c94adc1b84ce>:8: UserWarning: Matplotlib is currently using ps, which is a non-GUI backend, so cannot show the figure.
plt.show()
In [ ]: