Thursday, January 21, 2016

Special functions: Incomplete beta functions


All the elements presented are not warranted to be correct or free from defects. 
Please report any errors found to  afstblogs@gmail.com



INCOMPLETE BETA FUNCTIONS

Like the incomplete gamma function, there are four "variations" of the outputs we can get:
  1. Incomplete beta ratio lower tail
  2. Incomplete beta ratio upper tail
  3. Incomplete beta lower tail
  4. Incomplete beta upper tail
In this blog when the nature of the function is not specified we refer to the ratio lower tail that will be the object of the Excel formulas and user defined functions presented


BETA DISTRIBUTION


             

EXCEL FORMULA AND USER DEFINED FUNCTIONS



' Incomplete beta ratio function
Function xlINCBETA(x, a, b)
  With WorksheetFunction
    xlINCBETA = .Beta_Dist(x, a, b, 1)
  End With
End Function 


MATLAB


>> betainc(.5,.5,.2,'lower')
ans =
    0.2682
>> 
betainc(.5,.5,.2,'upper')
ans =
    0.7318






No comments:

Post a Comment

Note: Only a member of this blog may post a comment.