-
Notifications
You must be signed in to change notification settings - Fork 230
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
Representing a Generalized Pareto with supported factors #380
Comments
An exponential distribution is equivalent to a Gamma distribution with shape parameter equal to 1. So you can write this as a Gamma variable whose rate is another Gamma variable. Another way to see it is that the Generalized Pareto with mu=0 and positive shape is a special case of the F distribution. |
Many thanks, I had overlooked that equivalence. What are some recommended weakly-informative priors for alpha and beta in the Gamma distribution, taking into account that GeneralizedPareto(xi=1/alpha, sigma=beta/alpha) where alpha and beta are the shape and rate parameters of Gamma? |
We don't recommend priors here. Try asking on Cross Validated. |
Thanks. I apologize if my question sounded as an off-topic query about priors. I am quite familiar with that on more general probabilistic systems, and I know this is not the place to ask. However, I am having some trouble connecting distributions on Infer.NET. For example, consider a simple Beta-Uniform mixture model where the mixing rate and one parameter of Beta observations are unknown:
Infer.NET did not support the above model with any algorithm and quality band. The part that causes problems is the Beta prior for The only parametrization that I have been able to compile is replacing Beta-Beta with Gaussian/Gamma-Gaussian. But this is quite unnatural as observations are p-values, thus constrained to [0, 1], and very slow. So my questions are:
|
|
PR #386 adds support for |
Many thanks for taking the time to support this @tminka! I have pulled the latest master and built Infer.NET. A mixture model like the one I posted previously, with Typically, in a Beta-Uniform mixture model of p-values, the free parameter in Beta is alpha [1]. And alpha is usually constrained to [0, 1] in MLE. However, this parametrization crashes at runtime:
I assume this is a numerical issue (underflow?). Changing the parameters of the Gamma prior didn't help. Switching to a I've encountered the same issue for large datasets of ~1e7 p-values, i.e. again the same runtime error with a NaN in Beta. Is there anything I can do to scale Infer.NET to these large datasets? [1] https://academic.oup.com/bioinformatics/article/19/10/1236/184434 |
How can I reproduce that problem? |
I am trying to model the tail of a Gumbel, i.e. a Generalized Pareto.
I understand that the philosophy of Infer.NET is to provide basic distributions and let the user combine them, as discussed in the old forum and in some issues here. Using this approach, how shall I represent a Generalized Pareto?
Assuming my Generalized Pareto has a positive shape parameter, I can encode it as an Exponential-Gamma mixture as described in: https://en.wikipedia.org/wiki/Generalized_Pareto_distribution#GPD_as_an_Exponential-Gamma_Mixture
Gamma factors are supported natively by Infer.NET, so I can use this directly as the parameter of an Exponential.
How shall I encode the Exponential? Shall I simply exponentiate some positive real number drawn from a Uniform using the parameter drawn from a Gamma?
The text was updated successfully, but these errors were encountered: