Question
In this assignment you will simulate the process of population decay by using random numbers. We can make random numbers simulate an event which can
In this assignment you will simulate the process of population decay by using random numbers. We can make random numbers simulate an event which can occur with any probability that we decide. In this assignment we will use random numbers to simulate the population decay process.
The population decay process is founds in many fields of Science and Engineering and can be stated as follows. Given an initial population with a certain probability of decay per unit time of a member of that population, then that population will decline in an exponential fashion. The decay constants are dependent on the probabilty of decay. Thus
N=Noe-at Where No is the initial number and N is the number remaining at time t. 'a is called the decay constant.
Some common examples of this process are as follows:
In radioactive decay, Uranium atoms spontaneously decay with a certain probability per unit time. The amount of Uranium present decays exponentially. Because the probability of the fission of a particular uranium atom in a given time is small, the decay constant is small.
In Biology given an initial population of rabbits whose chance of getting eaten by a predator is say one in five per week, then the population will decline exponentially. Here no account is taken of production of new rabbits.
In manufacturing of light bulbs (or any other components), if the probability of failure of the lightbulbs are say 1 in four per year, then the population of light bulbs (with no replacements) will decline exponentially.
The assignment consists of simulating the decay process in the following way:
1)Use the =RAND( ) function to generate an event with a 75% probablity of survival and a 25% probability of failure. Since Random numbers are generated in the range 0-1, this can be done by choosing "survival" if the random number falls between 0- 0.75 and "failure" if the random number falls between 0.75 and 1.0.
2) To model the process, for each sample, generate random numbers until say a "failure" is achieved which indicates decay of that sample. So if it takes 10 random numbers to get a "failure" the individual has lived 10 units of time. This is repeated over and over again generating a "history" for a reasonable sample size of individuals.
3) The simulation consists of many repetitions to build up statistics of the lifetimes of the many individual samples. You build up statistics of how many individuals lived for 1 unit of time, how many for 2 units of time how many for 3 units etc. At the end of the simulations you have the history of a large number of individuals and one can construct a graph of number left vs time. This will look like an exponential decay. The equation is N=N0e-at, where N0 is the initial number at time 0 and "a" is the decay constant. Note that the half life of the decay is the time when the number has dropped to one half of N0 and is related to the constant 'a' by the formula Half Life = ln(2)/a.
4)To get the constant you do a semi log plot ln(N(t)) vs t which should yield points roughly in a straight line. Use the trend line tool in Excel to get the best" straight line fit and thus get the constant.
On a single graph show the ln(N(t)) vs time and the straight line produced by using the constants provided by the trend line tool
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started