# Algebraic Manipulation of Random Variables (Numerical) (Scripts) 1.0

Average Rating
User Rating:
Visitors Rating:
My rating:

• Last update: 5 years ago
• Operating system: Linux, Mac OS X, Win All, BSD, Solaris
• Publisher: Aaron Swan
See full specifications

## Algebraic Manipulation of Random Variables (Numerical) (Scripts) Publisher's description

### % [z zC Z ZC] = transRV(jointXY,C,opp,n) Numerically approximate the PDF of% a nonlinear combination of the random variables X and Y given the joint% distribution of X and Y

% [z zC Z ZC] = transRV(jointXY,C,opp,n) Numerically approximate the PDF of
% a nonlinear combination of the random variables X and Y given the joint
% distribution of X and Y. The joint distribution (jointXY) should be
% generated using [jointXY, C] = hist3([x(:) y(:)]).
%
% z = transRV(jointXY,C,opp,n) Use the opperation opp which can
% be: '+', '-', '*', or '/', to generate a PDF z of length n.
%
% z = transRV(...,'ZLim',[minz maxz]) specify the limits on z.
%
% z = transRV(...,'Visual') display the area of integration and CDF of Z.
%
% [z zC Z ZC zlim] = transRV(...) returns the PDF z with values centered at
% zC, and the CDF Z with values centered at ZC. Also returns the limits on
% z.
%
% NOTE: Results may be noisy if the output vector z has high resolution
% (larger n) than the input distribution.
%
% EXAMPLE
%
% % Set the number of bins
% n = 200;
%
% % Generate random variables
% x = 2*randn(1000000,1);
% y = .5*randn(1000000,1);
%
% % Display joint distribution
% [jointXY C] = hist3([x y],[n n]);
% figure; imagesc(C{1},C{2},jointXY');
% set(gca,'YDir','normal')
%
% % Approximate new distribution
% [z zC Z ZC zlim] = transRV(jointXY,C,'*',n,'ZLim',[-5,5],'Visual');
%
% % Compare to the distribution of data under the same opperation
% zdata = x.*y;
% [N xc] = hist(zdata(zdata >= zlim(1) & zdata <= zlim(2)),n);
% bin_width = xc(2)-xc(1);
% N = N/sum(N.*bin_width);
%
% figure; bar(xc,N,'hist')
% hold on; plot(zC,z,'r')
% legend('Dist of Data','Approximation')

% Created by Aaron Swan - Summer 2010
% MERS Lab - Brigham Young University

#### System Requirements:

MATLAB 7.7 (R2008b)
Program Release Status: New Release
Program Install Support: Install and Uninstall

#### Algebraic Manipulation of Random Variables (Numerical) (Scripts) Tags:

Click on a tag to find related softwares

## Most Popular

ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
Simulink Communication Labs allows you to learn communication systems in greater depth.
M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.