Code covered by the BSD License  

Highlights from
bgeopdf

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

bgeopdf

by Antonio Trujillo-Ortiz

 

02 Oct 2009 (Updated 02 Oct 2009)

Beta-geometric probability distribution function.

| 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)
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

Contact us at files@mathworks.com