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?
NOTE:-
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
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
SEE COMPLETE ANSWER CLICK THE LINK
Comments
Post a Comment