File Exchange

image thumbnail

Noncentral Beta Distribution

version (983 Bytes) by Joshua Carmichael
Compute the Noncentral Beta using Transformations

1 Download

Updated 19 Feb 2014

View License

This function computes the probability density function for the
noncentral beta distribution using a transformation of variables to put
the desired density function in terms of a noncentral F, which is included
in Matlabs statsitics toolbox already.
[ pz ] = ncbeta (x, a, b, lambda )

%To test with a histogram that gives the ratio of to IID chi-square RVs, compute:


znum = ncx2rnd(ones(5e4,1), y'*y);

z = znum./(znum +
ncx2rnd(99*ones(5e4,1), 0));

[N,b] = hist(z,floor(sqrt(length(z))));
bar(b, N,'facecolor','k')
hold on
plot(r, ncbeta (r, 1, 99, y'*y),'linewidth',4,'r');

Cite As

Joshua Carmichael (2021). Noncentral Beta Distribution (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!