Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8251507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:15:35+00:00 2026-06-08T00:15:35+00:00

Mathematica has a four-parameter generalized inverse gamma distribution: http://reference.wolfram.com/mathematica/ref/InverseGammaDistribution.html and gives its PDF on

  • 0

Mathematica has a four-parameter generalized inverse gamma distribution:

http://reference.wolfram.com/mathematica/ref/InverseGammaDistribution.html

and gives its PDF on that page too. Has anyone implemented the density, distribution, quantile, and sampling-from functions for that in R?

I did make a quick start (the PDF is just the equations on that page translated into R) but if its done already I’ll not bother with implementing the CDF and the quantile function.

Does a general function for computing the CDF (by integration of PDF) and the Quantile (by inversion of the CDF) of any distribution given the PDF exist?

[Note this is not the generalized inverse Gaussian]

Note also the ‘Properties and Relations’ dropdown on the Mathematica page, which seems to imply its not a special case or generalisation of anything (apart from the inverse gamma).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T00:15:37+00:00Added an answer on June 8, 2026 at 12:15 am

    I started a package to implement this:

    https://github.com/barryrowlingson/geninvgamma

    Its only using simple inversion and integration of the density, so nothing clever. Currently random samples from the distribution are done by generating a U(0,1) and getting the quantile, which isn’t very efficient or very accurate it seems..

    Anyway, its a start.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This problem has bothered me for a long time.As we know,in mathematica we can
R's qplot function has a nifty alpha parameter for shading coincident points in a
tl;dr How can something like Mathematica's Nearest be implemented efficiently? Mathematica has a function
I'm producing a double panel figure in Mathematica. The Bottom panel has negative values
Mathematica has a function MapThread that behaves like this: MapThread[ f , { {a,b,c}
It has been a while since I've used Mathematica, and I looked all throughout
I'm working on Project Euler problem number 205 which states: Peter has nine four-sided
Has anybody figured out a way to modify Graph objects in Mathematica 8? In
I am trying to find out what keyboard functionalities Mathematica has. Would appreciate anyone
Graph[] has a tendency to cut off vertex labels in Mathematica. I am looking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.