률을 보이는 비중치가 존재한다. 투자자의 관심을 끄는 포트폴리오는 당연히 같은 위험 수준에
대해 최대 수익률을 가지거나 같은 수익률에 대해 최소 위험 수준을 가지는 것이다. 이러한 포
트폴리오의 집합을
효율적 투자선
efficient
frontier
이라고 한다. 다음 절에서 이것에 대해 설명한다.
13.2.3
포트폴리오 최적화
최적 포트폴리오 계산은 제약 조건하에서의 최적화 문제이므로
scipy
.
optimize
라이브러리
의
sco
.
minimize
( )
함수를 사용하도록 한다. 이 함수는 (부)등호 제약 조건과 변수 범위 제약
조건이 있는 일반적인 경우에 대해 최소화 문제를 계산한다.
우선 샤프 지수를 최대화한다. 샤프 지수를 최대화하려면 샤프 지수의 음숫값을 최소화하면 된
다. 제약 조건으로는 모든 입력 변수(주식 비중)의 합이
1
이 되어야 한다.
minimize
( )
함수
507
13
장
통계 분석
(
http
://
bit
.
ly
/
using
_
minimize
)로 이를 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.