Chap3E - = w s rnd 1 ( ) = s n 1-.. = Sample size for...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
WRITEPRN "D:\PROGRAM FILES\SLICECOP\PH140\NEWDAT3.PRN" ( 29 wt = 0 1 2 0 200 400 HI jj int jj jj 0 29 .. = Histogram frequency function HI hist int wt , ( ) = int 0 0 = int j 2 j 30 = j 1 30 .. = Third example of generator wt s Φ 0.5 w s - ( 29 2 w s 1 Φ 0.5 w s - ( 29 - ( 29 2 2 2 w s - - ( 29 + = wt s rnd 1 ( ) rnd 1 ( ) + rnd 1 ( ) rnd 1 ( ) + ( ) + rnd 1 ( ) rnd 1 ( ) + ( ) + rnd 1 ( ) rnd 1 ( ) + rnd 1 ( ) rnd 1 ( ) + ( ) + rnd 1 ( ) rnd 1 ( ) + ( ) + [ ] + = wt s rnd 1 ( ) rnd 1 ( ) + rnd 1 ( ) rnd 1 ( ) + ( ) + rnd 1 ( ) rnd 1 ( ) + ( ) + = Second example of generator wt s rnd 1 ( ) rnd 1 ( ) + = First example of generator wt s 2 rnd 1 ( )
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: = w s rnd 1 ( ) = s n 1-.. = Sample size for simulated data n 5000 = PROGRAM TO ILLUSTRATE DIFFERENT APPLICATIONS OF RANDOM VARIATE GENERATORS ADD THIS LINE AND THE NEXT LINE OF CODE WHAT HAPPENS TO THE DENSITY ESTIMATED BY THE SLICEMET PROGRAM WHEN THE NUMBER OF ADDED INDEPENDENT UNIFORM (RECTANGULARLY DISTRIBUTED) VARIATES INCREASES?...
View Full Document

Ask a homework question - tutors are online