MCPcopy Create free account
hub / github.com/JoinQuant/jqfactor_analyzer / attribution_analysis

Function attribution_analysis

jqfactor_analyzer/__init__.py:51–70  ·  view source on GitHub ↗

归因分析 用户需要提供的数据: 1. 日度股票持仓权重 (加总不为 1 的剩余部分视为现金) 2. 组合的的日度收益率 (使用 T 日持仓盘后的因子暴露与 T+1 日的收益进行归因分析) 组合风格因子暴露 (含行业, country) = sum(组合权重 * 个股因子值), country 暴露为总的股票持仓权重 组合风格收益率 (含行业, country) = sum(组合风格因子暴露 * factor_return) 组合特异收益率 = 组合总收益率 - 组合风格收益率(含行业, country 或 cash)

(
    weights, daily_return, style_type='style_pro', industry='sw_l1',
    use_cn=True, show_data_progress=True
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

AttributionAnalysisClass · 0.85

Tested by

no test coverage detected