Code covered by the BSD License  

Highlights from
Generation of Random Variates

image thumbnail

Generation of Random Variates


James Huntley (view profile)


generates random variates from over 870 univariate distributions

% binchisq_cdf.m - evaluates a Compound Binomial Chi Square Cumulative Distribution.
%   See "The Compounding of the Binomial and Generalized Beta Distributions",   
%   T. Gerstenkorn, Prob. and Statistical Inference, p.87, 1982.                 
%  Created by:  Jim Huntley,  06/08/11.

function [cdf] = binchisq_cdf(n,nn,c,md2)

sum1 = binchisq_pdf(0, nn, c, md2);
for jn = 1:n
    sum1 = sum1 + binchisq_pdf(jn, nn, c, md2);
cdf = sum1;


Contact us