Be the first to rate this file! 16 downloads (last 30 days) File Size: 2.49 KB File ID: #25469

bgeopdf

by Antonio Trujillo-Ortiz

 

02 Oct 2009 (Updated 02 Oct 2009)

Code covered by BSD License  

Beta-geometric probability distribution function.

Download Now | Watch this File

File Information
Description

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

Required Products Statistics Toolbox
MATLAB release MATLAB 7 (R14)
Zip File Content  
Other Files bgeopdf.m,
license.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
02 Oct 2009

It was added an appropriate format to cite this file.

Tag Activity for this File
Tag Applied By Date/Time
betageometric Antonio Trujillo-Ortiz 02 Oct 2009 11:41:08
discrete Antonio Trujillo-Ortiz 02 Oct 2009 11:41:08
pdf Antonio Trujillo-Ortiz 02 Oct 2009 11:41:08
probability Antonio Trujillo-Ortiz 02 Oct 2009 11:41:08
probability density function Antonio Trujillo-Ortiz 02 Oct 2009 11:41:08
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com