cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Translate the entire conversation x

Assistance with Integrating the Gamma Distribution in Mathcad

KN_9565343
4-Participant

Assistance with Integrating the Gamma Distribution in Mathcad

Could you please assist me with integrating the attached function in Mathcad? It represents the probability density function (pdf) of the Gamma distribution. I know that the integral should evaluate to 1, but I am unsure how to perform the integration in Mathcad without specifying the values for alpha and beta. When I assign specific values to these parameters, the integral correctly evaluates to 1, but I would like to achieve this result symbolically.

Your guidance on how to proceed would be greatly appreciated.

3 REPLIES 3
LucMeekes
23-Emerald IV
(To:KN_9565343)

Try symbolic evaluation instead of numeric, -> right arrow instead of =.

If it is symbolically solvable you should get your answer. Otherwise you'll get an error.

 

Success!

Luc

Werner_E
25-Diamond I
(To:KN_9565343)

To get the desired result 1 you have to assume that at least b>0 .

 

The symbolic engine in Mathcad 15 (muPad ) is able to do the simplification

Werner_E_1-1741008333073.png

but the engine in Prime (FriCAS/Axiom) unfortunately isn't

Werner_E_2-1741008392896.png

I could not find a way to talk Prime into returning the result 1.

 

BTW, I replaced alpha and beta by a and b because it was too annoying that I always had to fight against Primes auto-labelling which insisted to label alpha as being the predefined constant

Werner_E_3-1741008497361.png

In your sheet you will notice that some of the alphas you used also are labelled wrongly as Constant  and  not as Variable. Take care, as this may lead to unexpected numerical results.

 

EDIT: Reason for Prime's failing seems to be that the engine is not able to simplify the limits

Werner_E_4-1741009653474.png

 

 

 

LucMeekes
23-Emerald IV
(To:Werner_E)

Mathcad 11/Maple also wants a>0:

LucMeekes_1-1741024648822.png

 

LucMeekes_0-1741024555966.png

Luc

Announcements

Top Tags