Thursday, September 4, 2025
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
32264 POSTS0 COMMENTS
Milvus
81 POSTS0 COMMENTS
Nango Kala
6632 POSTS0 COMMENTS
Nicole Veronica
11800 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11860 POSTS0 COMMENTS
Shaida Kate Naidoo
6749 POSTS0 COMMENTS
Ted Musemwa
7025 POSTS0 COMMENTS
Thapelo Manthata
6698 POSTS0 COMMENTS
Umr Jansen
6718 POSTS0 COMMENTS