首页 > > 详细

代做program、代写c/c++,Java编程设计

项目预算:   开发周期:  发布时间:   要求地区:
Exponential Distribution
February 24, 2021
• The Probability Density Function(PDF) of the exponential random variable t is given
by:
f(t) = λe−λt, t ≥ 0
• Mean= 1/λ
• The Cumulative Distribution Function(CDF) :
F(t) = f(T ≤ t) = 1 − e
−λt t ≥ 0
• Inverse transform sampling is a basic method for generating sample numbers at random
from any probability distribution given its cumulative distribution function. This means by
knowing the value of F(t) we can find the value of t as follows:
t = −
1
λ
ln(1 − F(t))
In Jave, the value of F(t) can be generated using nextDouble() function which returns the
next pseudorandom, uniformly distributed value between 0 and 1 from this random number
generator’s sequence.
• Example
Generate an arrival time from an exponential distribution of mean 3, if nextDouble()
returns 0.811. Sol. the arrival time value t can be found by substituting t=0.811 in the
above equation:
t = −
1
λ
ln(1 − F(t)) = −
1
3
ln(1 − 0.811) = 5
1


软件开发、广告设计客服
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 9951568
© 2021 www.rj363.com
软件定制开发网!