Docsity

ECE 5800 Fall 2008 Assignment 7: Statistical Analysis of Linear Congruential Algorithm - P, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 5800
Fall 2008
Severance
Assignment Seven
Due 17 October 2008
The purpose of this assignment is to investigate the statistical properties of the Linear
Congruential Generation (LCG) algorithm discussed in lecture. This algorithm is implemented
for you already in the form of a Visual Basic executable file, so you can concentrate on the actual
experiment rather than writing a program. Specifically, you should do the following:
1. Test the resident random number generator on your computer by performing both the
distribution and runs tests. Each should be based on a sample of at least 5000 variates
and the distribution test should have at least 100 bins.
i. The distribution test results should be analyzed in Excel (or some similar
spreadsheet) and should be both shown graphically and using a test.
ii. The runs test results should be completed using MatLab.
2. Repeat part (1) using the following LCG parameters:
a.
b.
c.
d.
3. Invent your own LCG random number generator that has reasonable statistical attributes.
Validate your findings.
Notes: 1. Show your finding for part (1) using screen shots of the appropriate VB forms.
This need not be done for the other parts. However, be sure to use Excel for
analyzing your results.
2. Do not overlook your writing in analyzing your conclusions, especially in regards
to each test.
3. The entire project should take no more than 6 pages. Do not include superfluous
working since anything over this page limit will be penalized! Please short,
complete and to the point!

Partial preview of the text

Download ECE 5800 Fall 2008 Assignment 7: Statistical Analysis of Linear Congruential Algorithm - P and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECE 5800

Fall 2008 Severance

Assignment Seven

Due 17 October 2008

The purpose of this assignment is to investigate the statistical properties of the Linear Congruential Generation (LCG) algorithm discussed in lecture. This algorithm is implemented for you already in the form of a Visual Basic executable file, so you can concentrate on the actual experiment rather than writing a program. Specifically, you should do the following:

  1. Test the resident random number generator on your computer by performing both the distribution and runs tests. Each should be based on a sample of at least 5000 variates and the distribution test should have at least 100 bins.

i. The distribution test results should be analyzed in Excel (or some similar spreadsheet) and should be both shown graphically and using a test.

ii. The runs test results should be completed using MatLab.

  1. Repeat part (1) using the following LCG parameters:

a. b. c. d.

  1. Invent your own LCG random number generator that has reasonable statistical attributes. Validate your findings.

Notes: 1. Show your finding for part (1) using screen shots of the appropriate VB forms. This need not be done for the other parts. However, be sure to use Excel for analyzing your results.

  1. Do not overlook your writing in analyzing your conclusions, especially in regards to each test.
  2. The entire project should take no more than 6 pages. Do not include superfluous working since anything over this page limit will be penalized! Please short, complete and to the point!