Brian Dunning's FileMaker Custom Functions

RandomBeta ( alpha ; beta )

Returns random values from a Beta distribution

  Average rating: 4.7 (29 votes) Log in to vote

Jeremy Bante   Jeremy Bante

https://github.com/jbante/

Share on Facebook Share on Twitter

  Sample input:
List (
RandomBeta ( .5 ; .5 );
RandomBeta ( .5 ; .5 );
RandomBeta ( .5 ; .5 );
RandomBeta ( .5 ; .5 );
RandomBeta ( .5 ; .5 );
RandomBeta ( .5 ; .5 );
RandomBeta ( .5 ; .5 );
RandomBeta ( .5 ; .5 );
RandomBeta ( .5 ; .5 );
RandomBeta ( .5 ; .5 )
)
  Sample output:
.46840777434408664703
.97474977374076843262
.65431562019512057304
.92274553608149290085
.96121877944096922874
.91257860092446208
.42773321550339460373
.92498611891642212868
.7081926506944000721
.45913609443232417107

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

When called repeatedly, RandomBeta creates values consistent with a beta-distributed random variable with shape parameters alpha and beta.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth:

Under construction. Email me your wish list for improvements.