The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » sci.math.* » sci.stat.math

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Approximating ratio of incomplete gamma functions
Replies: 1   Last Post: Dec 15, 2011 9:24 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 31
Registered: 10/8/10
Re: Approximating ratio of incomplete gamma functions
Posted: Dec 15, 2011 9:24 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On Dec 15, 8:31 am, Paul <> wrote:
> Thanks to Mathematica, I have an expression for the mean of a right-
> truncated inverse chi-square distribution:
> Btrunc = TruncatedDistribution[{0, W/(B*(D - 1))},
>   InverseChiSquareDistribution[D - 1]]; Mean[Btrunc]
> The expression is a ratio of two incomplete gamma functions --
> Gamma[1/2 (-3 + D), (B (-1 + D))/(
>  2 W)]/(2 Gamma[1/2 (-1 + D), (B (-1 + D))/(2 W)])
> -- which is fine as long I stay in Mathematica. However, I will need
> to deploy this result in a statistics package, and two problems will
> arise:
>  (1) Some statistics packages, such as SAS, have not implemented the
> incomplete gamma function.
>  (2) Many programming languages are going to have trouble calculating
> the ratio of two very large numbers, which this is.
> So I wonder whether there's a simpler way to approximate the result.
> It may help that D is an integer of at least 5, and that W and B are
> positive. Many thanks for any suggestions.
> Best,
> Paul


Have you investigated the NLMIXED procedure in SAS which allows you to
write your own likelihood function?


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.