******* Generate some random data from the binomial distribution ******* MTB > Random 100 C1; SUBC> Binomial 15 0.5. ******* Empirical pdf ********************* MTB > Tally C1; SUBC> Percents. ******* Empirical cdf ********************* MTB > Tally C1; SUBC> CumPercents. ******* Sequenced data from 0 to 15 **** MTB > Set c2 DATA> 1( 0 : 15 / 1 )1 DATA> End. ******* Evaluate the theoretical binomial pdf at 0 through 15 ****** MTB > PDF C2; SUBC> Binomial 15 0.5. ******* Evaluate the theoretical binomial cdf at 0 through 15 ****** MTB > CDF C2; SUBC> Binomial 15 0.5. ******* Graph the empirical pdf of a discrete r.v ******* MTB > Chart C1; SUBC> Percent; SUBC> Bar. ******* Graph the empirical cdf of a discrete r.v ******* MTB > ECDF C1; SUBC> Connect. ******* Generate random normal data ******* MTB > Random 100 C3; SUBC> Normal 0.0 1.0. ******* View the empirical pdf of a continuous rv as histogram with lowess smoother ***** MTB > Histogram C3; SUBC> Density; SUBC> Bar; SUBC> Lowess.