-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae8a2b6
commit 0780043
Showing
6 changed files
with
44 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
[deps] | ||
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f" | ||
EconomicScenarioGenerators = "1d18cbdc-9ca7-45fd-a8b2-b9434f9145be" | ||
HypothesisTests = "09f84164-cd44-5f33-b23f-e6b0d136a0d5" | ||
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
Yields = "d7e99b2f-e7f3-4d9e-9f01-2338fc023ad3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
using EconomicScenarioGenerators | ||
using Test | ||
using Yields | ||
using Distributions | ||
using HypothesisTests | ||
|
||
include("utils.jl") | ||
include("interest.jl") | ||
include("equity.jl") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# http://www.timworrall.com/fin-40008/bscholes.pdf | ||
|
||
function price_distribution(m::BlackScholesMerton,T) | ||
r, q, σ = m.r, m.q, m.σ | ||
return LogNormal( | ||
log(m.initial) + (r-q-σ^2/2) * T, | ||
sqrt(T) * σ | ||
) | ||
end | ||
|
||
function price_distribution(s::ScenarioGenerator{N,T}) where {N,T<:BlackScholesMerton} | ||
m = s.model | ||
t = s.endtime | ||
price_distribution(m,t) | ||
end |
0780043
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
0780043
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error while trying to register: "Tag with name
v0.3.0
already exists and points to a different commit"