이 장에서는 세 가지의 확률 과정, 즉 기하 브라운 운동, 점프 확산, 제곱근 확산 과정의 시뮬레
이션을 위한 도구와 클래스를 개발했다. 우선 표준정규분포 난수를 생성하는 함수를 만들고 다
음으로 일반적인 확률 과정 모형 시뮬레이션을 위한 기반 클래스를 도입했다. 이를 토대로 세
가지 특별한 시뮬레이션 클래스를 개발하고 각각의 클래스 사용법을 알아보았다.
이후의 임포트를 편리하게 하기 위해 다음과 같이
dx
_
simulation
.
py
라는 래퍼 모듈을 만들
기로 한다.
#
#DX패키지
#
#시뮬레이션함수&클래스
#
# dx_simulation.py
696
5
부
파생상품 분석
#
# Python for Finance, 2nd ed.
# (c) Dr. Yves J. Hilpisch
#
import numpy as np
import pandas as pd
from dx_frame import *
from sn_random_numbers import sn_random_numbers ...
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.