Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 625 Bytes

association.rst

File metadata and controls

33 lines (22 loc) · 625 Bytes

Tests of Association

Pearson's Correlation

Note

  • X, Explantory: Continuous
  • Y, Response: Continuous
  • Type: Non-Parametric
import pandas as pd
import scipy.stats as ss
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline


print ss.pearsonr(df3['depth'],df3['diameter'])
sns.regplot(x='depth',y='diameter',data=df3, fit_reg=True)

Spearman's Rank Correlation

Note

  • X, Explantory: Continuous
  • Y, Response: Continuous
  • Type: Parametric