-
Notifications
You must be signed in to change notification settings - Fork 45
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
Coding generalized beta family PDF's in PS2 #6
Comments
My first recommendation is to create the three pdf functions in a Python module. A module is just a Python file (e.g., import distributions as dst You can then use in your script any of the imported functions that you defined in your module by putting the |
I also wanted to give you some direction as to where to find the special functions that are in the denominators of the gamma (GA), generalized gamma (GG), and generalized beta 2 (GB2) distributions. The GA and GG distributions both have a function in the denominator \Gamma(z) that is the gamma function. This is not to be confused with the gamma distribution. The scipy.special library has many special functions, including this gamma function. You can import the scipy.special functions by using the following command. import scipy.special as spc Then, in you definitions for the GA and GG PDF's, you can include the gamma function by writing the command |
I want you to code up your own PDF functions for the gamma (GA) distribution, generalized gamma (GG) distribution, and generalized beta 2 (GB2) distribution for Problem Set 2. But I want to give you some direction also.
The text was updated successfully, but these errors were encountered: