How to define the bounds of Gamma distribution (a,b)

H
Houda · May 4, 2022 · 1.9K views
Question
Hey everybody, I am looking for how to calculate the interval of the gamma density distribution when setting the priors in Bayesian estimation. For beta(a,b) the mean of X= E(X)=a/(a+b) and variance is V(X)=(a+b)/(a+b+1)(a+b)^2, as we define the mean and varaince from the common values in the literature I return and calculate a and b. Please for gamma (a,b) distribution with E(X)=0.74 and std(X)=0.0056 how to find a and b? Many thanks in advance.
Expert Answer
Profile picture of John Williams
John Williams PhD Expert
Answered Aug 26, 2026

The Wikipedia article on the Gamma distribution (link) indicates that:

 

gamma_mean = a*b;
gamma_var = a*b^2;

so with your data:

gamma_mean = 0.74
gamma_var = 0.0056^2                        % Var is StDev^2
b = gamma_var/gamma_mean
a = gamma_mean/b

b =
   4.2378e-05

a =
        17462

 

100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!