Transformation of a Random Variable Demo

Generates input/output pdf/CDFs for any writeable mixed pdf inputs and transformation function f(x).
3,5K download
Aggiornato 13 ott 2004

Visualizza la licenza

This GUI demo shows how a random variable, X, is transformed to a new random variable, Z, by a function z=f(x). The random variable X can have a uniform probability density function (pdf), a Gaussian pdf, or ?Other pdf? given by a user specified MATLAB expression. A pseudo-random number generator is used to generate the random variable(RV) X samples. The sample pdf of X is plotted in the lower right plot, the function f(x) is plotted in the upper right plot, and the sample pdf of Z is plotted in the upper left plot. A single random variable sample can be generated and followed through the transformation, or 5000 or 50,000 samples may be generated. Any multiple of any of these may be generated and displayed by repeated clicking on the appropriate button. A Check Box allows display of the cumulative distribution functions (CDF) rather than the pdfs if desired. Examples are included in the information given in the description available by pressing the INFO button.

Cita come

Filson Glanz (2025). Transformation of a Random Variable Demo (https://it.mathworks.com/matlabcentral/fileexchange/6030-transformation-of-a-random-variable-demo), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R14
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Random Number Generation in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0