Skip to content
MathWorks - Mobile View
  • MathWorks 계정에 로그인합니다.MathWorks 계정에 로그인합니다.
  • Access your MathWorks Account
    • 내 계정
    • 나의 커뮤니티 프로필
    • 라이선스를 계정에 연결
    • 로그아웃
  • 제품
  • 솔루션
  • 아카데미아
  • 지원
  • 커뮤니티
  • 이벤트
  • MATLAB 받기
MathWorks
  • 제품
  • 솔루션
  • 아카데미아
  • 지원
  • 커뮤니티
  • 이벤트
  • MATLAB 받기
  • MathWorks 계정에 로그인합니다.MathWorks 계정에 로그인합니다.
  • Access your MathWorks Account
    • 내 계정
    • 나의 커뮤니티 프로필
    • 라이선스를 계정에 연결
    • 로그아웃

비디오 및 웨비나

  • MathWorks
  • 비디오
  • 비디오 홈
  • 검색
  • 비디오 홈
  • 검색
  • 영업 담당 문의
  • 평가판 신청
2:42 Video length is 2:42.
  • Description
  • Full Transcript
  • Code and Resources

Asset Allocation - Hierarchical Risk Parity

From the series: Machine Learning in Finance

This example will walk you through the steps to build an asset allocation strategy based on Hierarchical Risk Parity (HRP).

You will:
 
  • Learn how to use statistics and machine learning techniques to cluster assets into a hierarchical tree structure.
  • Understand how to develop allocation strategies based on the tree structure and risk parity concept through recursion.
  • Compare its result with mean-variance asset allocation.

In this video we will discuss the Hierarchical Risk Parity portfolio construction which produces a much more diversified portfolio compared to the mean-variance method for a similar risk. The HRP focuses on allocation of risk, rather than allocation of capital. The algorithm operates in three stages: tree clustering, quasi-diagonalization, and recursive bisection.

STAGE 1: TREE CLUSTERING

We first use the linkage and dendrogram built-in functions, found in Statistics and Machine Learning Toolbox to construct and visualize the hierarchical tree. The hierarchical clustering is to find the distance between assets and group them into a tree so that allocations can flow downstream through a tree graph.

 STAGE 2: QUASI-DIAGONALIZATION

Quasi-diagonalization is then performed, so that the largest values lie along the diagonal. In this way, similar investments are placed together, and dissimilar investments are placed far apart.

STAGE 3: RECURSIVE BISECTION

Now, given this tree structure, we are ready to allocate funds using the risk parity concept. Let’s consider the example of four assets. We assign a unit weight to all assets. We bisect the current list into left and right halves. We find the weights of the left and right lists based on inverse variance. We compute the total variance of the left and right halves, as well as the splitting factor alpha. We finally rescale the weights of both halves by alpha. We repeat the exact same algorithm for each half: bisect into left and right sections, calculate the weights and variance, and rescale the weights by alpha. The algorithm stops when we have a single asset per section.

Compare HRP to Mean-Variance Portfolio

We can clearly see that HRP produces a much more diversified allocation compared to mean-variance framework, which concentrates 92% of the allocations on the top six holdings. What drives the mean-variance extreme concentration is its goal of minimizing the portfolio’s risk, and yet both portfolios have a very similar risk. As a result, any distress situation affecting the six top holdings’ allocations will have a greater impact on the mean-variance than the HRP’s portfolio.

Thank you for watching.

Download Code and Files

Download code

Related Products

  • Statistics and Machine Learning Toolbox
  • Financial Toolbox

Bridging Wireless Communications Design and Testing with MATLAB

Read white paper
Related Information
Related Information
Download code

Feedback

Featured Product

Statistics and Machine Learning Toolbox

  • Request Trial
  • Get Pricing

Up Next:

Aberdeen Standard discusses the use of MATLAB for machine learning to analyze financial market trends and testing on Microsoft Azure.
22:06
Asset Allocation, Machine Learning, and High-Performance...
View full series (9 Videos)

Related Videos:

3:31
Munich Re Trading Creates a Risk Analytics Platform with...
4:11
Munich Re Trading Creates a Risk Analytics Platform with...
49:45
"The Prayer" - Ten-Step Checklist for Advanced Risk and...
17:49
Global Tactical Asset Allocation and Portfolio Construction...
53:09
Credit Risk Modeling with MATLAB

View more related videos

MathWorks - Domain Selector

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

  • Switzerland (English)
  • Switzerland (Deutsch)
  • Switzerland (Français)
  • 中国 (简体中文)
  • 中国 (English)

You can also select a web site from the following list:

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
    • 简体中文Chinese
    • English
  • 日本Japanese (日本語)
  • 한국Korean (한국어)

Contact your local office

  • 영업 담당 문의
  • 평가판 신청

MathWorks

Accelerating the pace of engineering and science

MathWorks는 엔지니어와 과학자들을 위한 테크니컬 컴퓨팅 소프트웨어 분야의 선도적인 개발업체입니다.

활용 분야 …

제품 소개

  • MATLAB
  • Simulink
  • 학생용 소프트웨어
  • 하드웨어 지원
  • File Exchange

다운로드 및 구매

  • 다운로드
  • 평가판 신청
  • 영업 상담
  • 가격 및 라이선스
  • MathWorks 스토어

사용 방법

  • 문서
  • 튜토리얼
  • 예제
  • 비디오 및 웨비나
  • 교육

지원

  • 설치 도움말
  • MATLAB Answers
  • 컨설팅
  • 라이선스 센터
  • 지원 문의

회사 정보

  • 채용
  • 뉴스 룸
  • 사회적 미션
  • 고객 사례
  • 회사 정보
  • Select a Web Site United States
  • 신뢰 센터
  • 등록 상표
  • 정보 취급 방침
  • 불법 복제 방지
  • 애플리케이션 상태
  • 매스웍스코리아 유한회사
  • 주소: 서울시 강남구 삼성동 테헤란로 521 파르나스타워 14층
  • 전화번호: 02-6006-5100
  • 대표자 : 이종민
  • 사업자 등록번호 : 120-86-60062

© 1994-2022 The MathWorks, Inc.

  • Naver
  • Facebook
  • Twitter
  • YouTube
  • LinkedIn
  • RSS

대화에 참여하기