Skip to content

Instantly share code, notes, and snippets.

View AshSwing's full-sized avatar
🎯
Focusing

AshSwing AshSwing

🎯
Focusing
View GitHub Profile
@AshSwing
AshSwing / corr.py
Last active June 15, 2025 05:44
Worldquant Brain Platform Self-correlation Test
import logging
import polars as pl
def calc_corr(pnl: pl.DataFrame, pnl_with: pl.DataFrame, debug: bool = False) -> pl.DataFrame:
"""Worldquant Brain Alpha 自相关计算
Parameters
----------