-
Returns other value than excel and OpenOffice.
OpenOffice and Excel result: 1.78264358 MathNet.Numerics version: 3.17.0 http://accord-framework.net/docs/html/M_Accord_Statistics_Distributions_Univariate_GammaDistribution_InverseDistributionFunction.htm also gives 1.78264358 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The Gamma distribution can be parameterized either by a shape (alpha) and a rate (beta) or a shape (alpha) and a scale (theta), where the scale is the inverse of the rate. Math.NET offers both when using an instance of the distribution, but the static members offer only the default one, which is shape and rate. Given your numbers it seems to me what you refer to as
Both return |
Beta Was this translation helpful? Give feedback.
The Gamma distribution can be parameterized either by a shape (alpha) and a rate (beta) or a shape (alpha) and a scale (theta), where the scale is the inverse of the rate. Math.NET offers both when using an instance of the distribution, but the static members offer only the default one, which is shape and rate.
Given your numbers it seems to me what you refer to as
beta
is actually a scale, not a rate as hinted by the name. You can either convert your scale to a rate by inverting it, or use an instance to make it explicit:Both return
1.78264358009477
.