- #1
neeraj.patel1
- 4
- 0
Homework Statement
Generate 1,00,000 triplets(sets of three) of Uniform random variables on [0,1]. Y be max of each triple and Z be min of each triple. Derive the densities for these RV from theory and compare histograms of Y and Z with densities found in theory.
Homework Equations
rand()
hist()
The Attempt at a Solution
for i=1:100000
for j=1:3
{
a[j]=rand(1)
}
r=max(a[j],a[j+1])
mx=(r,a[j+2])
...
min...