Docsity

Problem Set 8 for System Modeling and Simulation | ECE 5800, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 5800
Fall 2008
Severance
Assignment Eight
Due 24 October
This assignment is to implement and study several of the algorithms for generating
random variates discussed in lecture.
1. In particular, you should write a
Visual Basic program to generate a
prescribed number of variates for
each of the following probability
distributions by the methods
indicated:
Uniform (formula)
Gaussian (formula)
Exponential (inverse)
Beta (rejection)
Erlang (convolution)
Note that the parameters defining each distribution are dynamic.
2. Execute several “interesting” cases by varying the number of variates and their defining
parameters. Save the results of each as text files to be loaded into Excel, where the
analysis can take place.
a. Create suitable frequency distribution tables and their corresponding histograms
of the empirical probability density functions. Note the example given in lecture!
b. Include the theoretical density functions on each graph so as to “eye-ball” a
suitable correlation between theory and practice.
c. Calculate the -value for each distribution; conclude whether or not there is a
sufficiently close fit.
Note that a positive answer to part (2c) isn’t necessarily a good thing. A proper “study”
should show where and under what conditions things do not work too!

Partial preview of the text

Download Problem Set 8 for System Modeling and Simulation | ECE 5800 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECE 5800

Fall 2008 Severance

Assignment Eight

Due 24 October

This assignment is to implement and study several of the algorithms for generating random variates discussed in lecture.

  1. In particular, you should write a Visual Basic program to generate a prescribed number of variates for each of the following probability distributions by the methods indicated:

Uniform (formula)

Gaussian (formula)

Exponential (inverse)

Beta (rejection)

Erlang (convolution)

Note that the parameters defining each distribution are dynamic.

  1. Execute several “interesting” cases by varying the number of variates and their defining parameters. Save the results of each as text files to be loaded into Excel, where the analysis can take place.

a. Create suitable frequency distribution tables and their corresponding histograms of the empirical probability density functions. Note the example given in lecture!

b. Include the theoretical density functions on each graph so as to “eye-ball” a suitable correlation between theory and practice.

c. Calculate the -value for each distribution; conclude whether or not there is a sufficiently close fit.

Note that a positive answer to part (2c) isn’t necessarily a good thing. A proper “study” should show where and under what conditions things do not work too!