Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- check your intuition: when x is evenly distributed around 0, and x^2 are totally uncorrelated
- '''
- import pandas as pd
- import numpy as np
- x = np.random.normal(0,1,1000)
- y = x**2
- df = pd.DataFrame({'x':x,'y':y})
- print df.corr()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement