Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BSM tests #12

Merged
merged 13 commits into from
Jul 18, 2022
Merged

BSM tests #12

merged 13 commits into from
Jul 18, 2022

Conversation

alecloudenback
Copy link
Member

Why is the test not passing?

@alecloudenback alecloudenback mentioned this pull request Jul 3, 2022
8 tasks
@kasperrisager
Copy link

The build is complaining about LogNormal not existing. Is it just a namespace issue?

@alecloudenback
Copy link
Member Author

The build is complaining about LogNormal not existing. Is it just a namespace issue?

I fixed the PR to capture the tests I was doing locally and added some comments on what I was trying to test

@kasperrisager
Copy link

I fixed the PR to capture the tests I was doing locally and added some comments on what I was trying to test

I can't seem to see that in this pr. Am I looking in the right place?

@alecloudenback
Copy link
Member Author

I can't seem to see that in this pr. Am I looking in the right place?

My bad, forgot to push the commit.

@kasperrisager
Copy link

The p value of the test is 5e-128, so something is way off. I think it's the mean of the lognormal that needs to have m.q subtracted. Also, I don't remember the formula precisely, but sigma^2 are almost always divided by 2 when seen in the wild 🙂.

Also, the expected distribution is only lognormal in the limit of infinitely small timesteps, so with 60 timesteps, 10,000 replications might be enough to reveal that the distribution is a product of 60 normal distributions.

@codecov
Copy link

codecov bot commented Jul 17, 2022

Codecov Report

Merging #12 (0d034ea) into main (44d8802) will increase coverage by 0.66%.
The diff coverage is 83.63%.

@@            Coverage Diff             @@
##             main      #12      +/-   ##
==========================================
+ Coverage   81.48%   82.14%   +0.66%     
==========================================
  Files           2        4       +2     
  Lines          27       56      +29     
==========================================
+ Hits           22       46      +24     
- Misses          5       10       +5     
Impacted Files Coverage Δ
src/Yields.jl 0.00% <0.00%> (-100.00%) ⬇️
src/equity.jl 71.42% <71.42%> (ø)
src/interest.jl 80.00% <80.00%> (ø)
src/EconomicScenarioGenerators.jl 100.00% <100.00%> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@alecloudenback alecloudenback merged commit 0780043 into main Jul 18, 2022
@alecloudenback alecloudenback deleted the tests branch July 18, 2022 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants