bgeopdf

Beta-geometric probability distribution function.
483.0 次下载
更新时间 2009/10/2

查看许可证

This m-function returns the beta-geometric probability density function with parameters A and B at the values in X. Note: The density function is zero unless A and B are integers.

The Beta-geometric distribution is used to model the number of failures that will occur in a binomial proccess before the first success is observed and where the binomial p is itself a random variable taking a Beta(a,b) distribution.

It has been broadly applied in fecundability and manpower or contractual studies.

It has the probability density function:

B(a+x, b+1)
p(x) = --------------
B(a, b)

where B(a,b) is a beta function.

Syntax: function y = bgeopdf(x,a,b)

Inputs:
x - number of failures before the first success {0,1,2,...)
a - alpha parameter of Beta function (>0)
b - beta parameter of Beta function (>0)

Output:
y - beta-geometric probability value

引用格式

Antonio Trujillo-Ortiz (2024). bgeopdf (https://www.mathworks.com/matlabcentral/fileexchange/25469-bgeopdf), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

It was added an appropriate format to cite this file.

1.0.0.0