A two-dimensional array (N X M) should be used to represent the number of times the bug reached each tile on the floor. All cells of this array should be initialized to zero. The position of the bug on the floor is represented by the coordinates (i-bug, j-bug). The eight possible moves the bug can make at each time interval are represented by the tiles located at [i-bug + i-move(k), j-bug + j-move(k)] where 1<k<8 and :

A random walk to one of the eight given squares is simulated by generating a random value for k lying between 1 and 8. The bug can not move up the wall so those coordinates which lead beyond a wall must be ignored and a new random combination formed. Each time a square is touched, the count for that square is incremented. Thus, a non-zero entry in the array shows the number of times the bug has landed on the corresponding square. When every square has been touched at least once, the simulation is complete.

Design a program to perform the simulation using a 40 by 20 tiled floor (N = 40, and M = 20). For each run, output:

a. The total number of legal moves which the bug makes
b. The final values in the N by M array (this will show the "density" of the walk, that is, the number of times each tile on the floor was touched during the experiment)

You should include an iteration limit, that is, a maximum number of squares that the bug may enter during the experiment. This assures that your program will not get "hung" in an infinite loop. A maximum of 50,000 iteration is appropriate for this simulation.

Solution Summary

A random walk simulation for c program is examined.

Simulate 10000 of X and Y random variables using excels Data Analysis package where both X and Y are normal with mean = 20 and standard deviation = 5.
Show, using simulations, that the variables Z= min(X,Y) and W=max(X,Y) are NOT normally distributed.
Y any interest?C

Hi
I would appreciate if you could help me with this question. Is the question below TRUE or FALSE and explain why ?
Question:
I have two randomwalks, both starting at 0 and with a reflecting boundary at 0. Each Step, Walk A goes up 1 with probability 1/2 and down 1 with probability 1/2(except at the boundary). Each

Number of cars arriving for oil chg and tune up in last 200 hours of operation and two digit random numbers are developed:
Number of Cars Arriving Frequency Random # of Ranges
3 or less 0
4 10 00-04
5 30

John Right, an analyst with Stock Pickers Inc., claims: "It is not worth my time to develop detailed forecasts of sales growth, profit margins, et cetera, to make earnings projections. I can be almost as accurate, at virtually no cost, using the randomwalk model to forecast earnings." What is the randomwalk model? Do you agree

True/False
Indicate whether the sentence or statement is true or false.
______ 1. In computer mathematical simulation, a system is replicated with a mathematical model that is analyzed with the computer.
______ 2. Random numbers generated by a mathematical process instead of a physical process are pseudorandom numbe

The drying rate in an industrial process is dependent on many factors and varies according to the following distribution.
Minutes Relative Frequency
3 0.22
4 0.36
5 0.28
6 0.10
7 0.04
Using these random numbers, simulate the drying time for 5 processes: 0.13; 0.09; 0.19; 0.81; and 0.12

X and Y are both standard normal random variables (mean = 0, standard deviation = 1), statistically independent of each other. Create a simulation model to estimate the probability that X and Y are both positive and that their sum is less or equal to 1. This probability is
A. Less than 12.5%.
B. Between 12.5% and 25%.
C. Be