persistence

eap_pl.persistence(panel, variables, lags)

Average cross-sectional correlations with future observations.

Match stocks by permno across each elapsed calendar-month lag, use winsorized Pearson correlations, and weight each formation month equally.

Parameters

Name Type Description Default
panel polars.DataFrame Data keyed by permno and month. required
variables dict[str, str] Variable columns mapped to display labels. required
lags Iterable[int] Positive lags in months. required

Returns

Name Type Description
polars.DataFrame One row per lag, with correlations formatted to three decimal places.