HomeData Modelling & AIUsing Predictive Power Score to Pinpoint Non-linear Correlations

Using Predictive Power Score to Pinpoint Non-linear Correlations

Using Predictive Power Score to Pinpoint Non-linear Correlations

Image by Author

Predictive Power Score to Pinpoint Non-linear Correlations

Image by Author

correlation power plot

Image by Author
!pip3 install ppscore

 

Calculating the Predictive Power Score

Predictive Power Score VS Correlation

Predictive Power Score VS Correlation

Image by Github
import pandas as pd
import numpy as np
import ppscore as pps
df = pd.DataFrame()
df

Predictive Power Score numpy

Image by Author
df["x"] = np.random.uniform(-2, 2, 10000)
df.head()
Image for post

Image for post

df["error"] = np.random.uniform(-0.5, 0.5, 10000)
df.head()


Image for post

Image by Author
df["y"] = df["x"] * df["x"] + df["error"]
df.head()


RELATED ARTICLES

Most Popular

Dominic
32643 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
7015 POSTS0 COMMENTS
Nicole Veronica
12149 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12248 POSTS0 COMMENTS
Shaida Kate Naidoo
7148 POSTS0 COMMENTS
Ted Musemwa
7411 POSTS0 COMMENTS
Thapelo Manthata
7104 POSTS0 COMMENTS
Umr Jansen
7112 POSTS0 COMMENTS