winsorized_corr

eap_pl.winsorized_corr(a, b)

Compute a Pearson correlation after pairwise finite-value filtering.

Each variable is winsorized at the 0.5th and 99.5th percentiles of the paired sample.

Parameters

Name Type Description Default
a polars.Expr First variable. required
b polars.Expr Second variable. required

Returns

Name Type Description
polars.Expr Pearson correlation of the winsorized values.