Communitygithub.com

Mr-Nobody-Anonymous/All-skills

建構風險平價配置,實現等額風險貢獻、槓桿優化與資產類別波動率目標管理。適用於建立風險平價組合、平衡風險貢獻或設計槓桿化平衡型投資組合。

All-skills 是什麼?

此技能專注於建構風險平價(Risk Parity)投資組合,其核心目標是使各資產類別對整體投資組合風險的貢獻相等,而非傳統的等權重或市值加權。技能涵蓋完整的開發流程:從協方差矩陣估計(支援樣本、指數加權、收縮估計等多種方法)開始,透過數值優化求解風險平價權重,再應用槓桿倍數將投資組合波動率調整至目標水準(常見範圍為10-15%)。此技能也包含詳細的回測與壓力測試流程,可比較多種市場情境(如2008年金融危機、2020年新冠疫情),並進行敏感度分析以評估模型穩定性。最後,它要求完整記錄所有假設與限制,產出包含權重表、協方差摘要、回測報告及方法論備忘錄的標準化模型套件。支援平台包括通用於量化金融與投資組合管理工具(如Python、R、MATLAB等),使用者應具備資產收益序列、目標波動率及槓桿限制等輸入資料。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Mr-Nobody-Anonymous/All-skills/tree/HEAD/awesome_skills/legal/building-risk-parity-portfolios

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

建構風險平價投資組合

使用時機

  • 建構多重資產投資組合,使各資產類別對整體組合風險的貢獻相等
  • 設計槓桿化平衡型策略(例如 Bridgewater All Weather 風格的配置)
  • 重新平衡現有風險平價配置,以反映更新的協方差估計
  • 比較風險平價權重與市值加權或等權重基準
  • 建構波動率目標覆蓋策略,將總曝險規模調整至固定風險預算

需收集的輸入資料

  • 資產範圍:資產類別或工具清單(例如股票、名義債券、抗通膨債券、商品、黃金),並附上適用的代碼對應
  • 報酬序列:每個資產的總報酬時間序列 — 至少 10 年月度資料或 3 年日資料;確認頻率與幣別 [請確認]
  • 協方差估計方法:樣本協方差、指數加權(半衰期)、收縮估計(Ledoit-Wolf)或 DCC-GARCH — 確認客戶偏好
  • 無風險利率:指定代理變數(3 個月國庫券、OIS、SOFR),並確認是否在優化前從報酬中扣除 [請確認]
  • 目標投資組合波動率:槓桿化投資組合的年化波動率目標(常見範圍:10–15%)
  • 槓桿限制:最大總曝險、借款成本假設、保證金/抵押品規則 [請確認]
  • 再平衡頻率:每日、每週、每月或基於閾值(例如偏離目標權重超過 10%)
  • 回溯窗口:用於協方差估計的滾動窗口長度(例如 60 天、252 天)

工作流程

  1. 計算協方差矩陣

    • 以選擇的頻率計算報酬;必要時年化(日資料為 √252)
    • 套用選定的估計方法;若使用收縮估計,報告收縮強度
    • 驗證:檢查矩陣是否為正半定;標記接近奇異的情況
  2. 求解風險平價權重

    • 定義目標:每個資產的邊際風險貢獻 (MRC) 等於整體投資組合波動率的 1/N
    • MRC_i = w_i × (Σw)_i / σ_p — 迭代直到所有 i, j 的 MRC_i ≈ MRC_j
    • 使用數值最佳化(例如序列最小平方法或牛頓法求解風險預算拉格朗日函數)
    • 確認權重總和為 1.0(無槓桿)或總曝險目標(有槓桿)
  3. 套用槓桿調整

    • 從風險平價權重計算無槓桿投資組合波動率 σ_unlevered
    • 槓桿倍數 = 目標波動率 / σ_unlevered
    • 調整後權重 = 原始權重 × 槓桿倍數
    • 從期望報酬中扣除借款成本:成本 = (總曝險 − 1) × 資金利率 [請確認資金利率假設]
  4. 回測與壓力測試

    • 執行滾動或擴展視窗回測;報告年化報酬、波動率、夏普比率、最大回撤及 Calmar 比率
    • 進行壓力情境測試:2008 年全球金融危機、2013 年縮減恐慌、2020 年新冠疫情、2022 年利率衝擊 — 報告各情境下的投資組合損益
    • 與 60/40、等權重及反向波動率基準進行比較
  5. 敏感度分析

    • 變動回溯窗口(30 天、60 天、120 天、252 天) — 顯示權重穩定性與週轉率影響
    • 變動協方差方法 — 比較樣本、收縮估計與指數加權移動平均權重
    • 將個別資產波動率衝擊 ±2σ 及相關性矩陣衝擊 ±0.10 — 報告權重與風險貢獻的變動
  6. 記錄配置模型

    • 最終權重表,附風險貢獻細項(絕對值與百分比)
    • 總曝險與淨曝險、槓桿比率、估計借款成本拖累
    • 再平衡規則說明與估計年化週轉率
    • 明確標記所有假設;以 [請確認] 標記管轄區依賴的限制條件

輸出

交付一個結構化的風險平價模型套件,包含:

  • 權重表:資產層級權重、風險貢獻與槓桿倍數
  • 協方差摘要:相關性熱力圖、各資產年化波動率、特徵值分解
  • 回測報告:權益曲線、滾動夏普比率、回撤圖、月度報酬表
  • 壓力測試矩陣:投資組合與基準在情境下的報酬
  • 敏感度圖表:不同參數變動下的權重與週轉率影響
  • 方法論備忘錄:估計方法、最佳化演算法、再平衡邏輯及所有 [請確認] 項目

品質檢查

  • 確認最佳化收斂後,每個資產的百分比風險貢獻在 1/N 目標的 ±0.5% 範圍內
  • 驗證投資組合波動率與設定目標一致(容差:年化 ±25 個基點)
  • 檢查權重非負(除非明確允許放空)且總和正確
  • 驗證協方差矩陣無負特徵值
  • 確保回測未使用未來資訊(滾動視窗無前瞻偏誤)
  • 交叉檢查槓桿倍數是否符合保證金與監管限制 [請確認適用的保證金規則]
  • 確認借款成本假設反映當前市場利率,而非過時資料

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Mr-Nobody-Anonymous/All-skills

Build agency portfolios. TRIGGERS - Use when user needs help with agency-portfolio-builder related tasks.

Mr-Nobody-Anonymous/All-skills

Generate landing pages with AI. TRIGGERS - Use when user needs help with ai-landing-page-gen related tasks.

Mr-Nobody-Anonymous/All-skills

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

Mr-Nobody-Anonymous/All-skills

Review investment portfolios with rebalancing recommendations. TRIGGERS - Use when user needs help with investment-portfolio-review related tasks.

Mr-Nobody-Anonymous/All-skills

Create makeup artist portfolio guides. TRIGGERS - Use when user needs help with makeup-artist-portfolio related tasks.

Mr-Nobody-Anonymous/All-skills

Build freelance portfolios with case studies. TRIGGERS - Use when user needs help with freelance-portfolio-builder related tasks.

Mr-Nobody-Anonymous/All-skills

Structures secondary portfolio construction with vintage diversification, strategy mix, and geographic allocation optimization. Use when building secondary portfolios, managing allocation targets, or optimizing portfolio composition.

Mr-Nobody-Anonymous/All-skills

Optimize landing page copy for conversions. TRIGGERS - Use when user needs help with landing-page-optimizer related tasks.

Mr-Nobody-Anonymous/All-skills

Build copywriting portfolios. TRIGGERS - Use when user needs help with copywriting-portfolio related tasks.

Mr-Nobody-Anonymous/All-skills

Design cryptocurrency portfolio strategies. TRIGGERS - Use when user needs help with crypto-portfolio-strategy related tasks.

Mr-Nobody-Anonymous/All-skills

Build UX design portfolios. TRIGGERS - Use when user needs help with ux-portfolio-builder related tasks.

Mr-Nobody-Anonymous/All-skills

Design cloud landing zones. TRIGGERS - Use when user needs help with cloud-landing-zone related tasks.

Mr-Nobody-Anonymous/All-skills

Generate high-converting landing page copy with headlines, benefits, CTAs, and social proof. TRIGGERS - Use when user wants landing page copy, sales page content, or conversion-focused web copy.

Mr-Nobody-Anonymous/All-skills

Design portfolio assessment systems. TRIGGERS - Use when user needs help with portfolio-assessment related tasks.

Mr-Nobody-Anonymous/All-skills

Conducts portfolio performance measurement with benchmark comparison, attribution, and risk-adjusted metrics. Use when measuring portfolio performance, calculating Sharpe/Sortino ratios, or conducting performance attribution.

Mr-Nobody-Anonymous/All-skills

Builds strategic and tactical asset allocation models with risk-return optimization and constraint management. Use when constructing portfolios, optimizing asset allocation, or building model portfolios.

Mr-Nobody-Anonymous/All-skills

Creates client-facing portfolio reports with performance, allocation, commentary, and outlook. Use when producing client reports, preparing quarterly reviews, or creating portfolio summaries.

Mr-Nobody-Anonymous/All-skills

Design investment portfolios. TRIGGERS - Use when user needs help with investment-portfolio-design related tasks.

Mr-Nobody-Anonymous/All-skills

Plan investment portfolios. TRIGGERS - Use when user needs help with investment-portfolio-plan related tasks.

Mr-Nobody-Anonymous/All-skills

You are a Conversion Rate Optimization Strategist and Persuasive Content Specialist. Use this skill when the user wants to audit or improve a landing page, write conversion-focused copy, optimize CTAs, build an FAQ schema block, translate features into benefits, or maximize conversions on any specific page type. Activate when the user mentions "landing page," "sales page," "lead capture page," "squeeze page," "webinar sign-up page," "product launch page," "waitlist page," "early access page," "thank you page," "upsell page," "SaaS pricing page," "onboarding page," "ecommerce page," "audit this page," "improve conversions," "CTA optimization," "hero section," "headline rewrite," "subhead," "benefits section," "features to benefits," "FAQ schema," "schema FAQ," "trust elements," "page layout," "above the fold," "scroll order," "microcopy," "mobile-first copy," "landing page copy," "page flow," "drop-off," "weak CTA," "conversion copy," "page goal," "split test copy," "A/B test copy," or "wireframe suggestion...

相關技能