フィルターのクリア

Gamma CDF and PDF

2 ビュー (過去 30 日間)
googo
googo 2013 年 5 月 20 日
Let X ~ gamma (60,0.5) and I want to calculate P(X < 5) for example. How can I use gampdf and gamcdf for calculating this? I calculated this manually and there is a diffrence between the answers so I want to make sure I am typing every thing correctly.
Thanks!
  1 件のコメント
José-Luis
José-Luis 2013 年 5 月 20 日
Have you tried reading the documentation? What do you mean by manually?

サインインしてコメントする。

採用された回答

Wayne King
Wayne King 2013 年 5 月 20 日
The probability that the random variable following that probability law is less than 5 is the integral of the CDF from 0 to 5
gamcdf(5,60,0.5)
I get exactly the same answer in R by the way with
> pgamma(5,shape=60,scale = 1/2)

その他の回答 (0 件)

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by