Integral of a PDF do not equal 1

4 ビュー (過去 30 日間)
Yassine Hmamouche
Yassine Hmamouche 2020 年 5 月 20 日
コメント済み: Yassine Hmamouche 2020 年 5 月 20 日
Hi,
I am trying to compute the integral from 0 to infinity of the following PDF:
S=@(r) 2*pi*lambdab.*r.*exp(-pi*lambdab.*r).*exp(-2*pi*lambdab.*integral(@(u) u.*exp(-pi*lambdab.*u),0,r,'ArrayValued',true));
Result=integral(S,0,inf,'ArrayValued',true);
Logically, I need to find 1 for every >0. However, when is greater than 0.2, I surprisingly get smaller values than 1 for the integral of the PDF.
Any help please!

採用された回答

Steven Lord
Steven Lord 2020 年 5 月 20 日
What leads you to believe the integral should be 1?
syms r u
syms lambdab positive
S=2*pi*lambdab.*r.*exp(-pi*lambdab.*r).*...
exp(-2*pi*lambdab.*int(u.*exp(-pi*lambdab.*u),u, 0,r));
int(S, r, 0, Inf)
The result I receive:
ans =
1 - exp(-2/(lambdab*pi))
  1 件のコメント
Yassine Hmamouche
Yassine Hmamouche 2020 年 5 月 20 日
many thanks!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by