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

Alphastable fit #20

Merged
merged 9 commits into from
Oct 15, 2020
Merged

Alphastable fit #20

merged 9 commits into from
Oct 15, 2020

Conversation

ymtoo
Copy link
Collaborator

@ymtoo ymtoo commented Oct 14, 2020

The current AlphaStable fit based on Fama & Roll (1971) is limited to Symmetric Alpha Stable Distributions (as discussed in #19). This PR implements a more general AlphaStable fit based on McCulloch (1986) for alpha in the range of [0.6, 2.0] and beta in the range of [-1, 1].

@ymtoo ymtoo added the enhancement New feature or request label Oct 14, 2020
@ymtoo ymtoo requested a review from mchitre October 14, 2020 03:20
@codecov-io
Copy link

codecov-io commented Oct 14, 2020

Codecov Report

Merging #20 into master will increase coverage by 1.50%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #20      +/-   ##
==========================================
+ Coverage   87.96%   89.47%   +1.50%     
==========================================
  Files           1        1              
  Lines         133      152      +19     
==========================================
+ Hits          117      136      +19     
  Misses         16       16              
Impacted Files Coverage Δ
src/AlphaStableDistributions.jl 89.47% <100.00%> (+1.50%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3b72837...b39b988. Read the comment docs.

Copy link
Member

@mchitre mchitre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be worth considering:

  1. Document the limits of parameters for which the fitting is meant to work clearly.
  2. Split out AlphaStableDistribution from SymmetricAlphaStableDistribution.
  3. Make a comparison in this PR, before merging, of test cases that @azev77 mentions in Special Cases of AlphaStable #19, to see consistency.

@mchitre
Copy link
Member

mchitre commented Oct 15, 2020

And put those test cases from #19 in the test suite.

@ymtoo
Copy link
Collaborator Author

ymtoo commented Oct 15, 2020

Thanks for the reviews. The limits of parameters is included in the docstring. A new type SymmetricAlphaStable and tests on the special cases are also introduced.

@ymtoo ymtoo merged commit 61c767e into org-arl:master Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants