Docsity

Population Model Worksheet 6: Generating Random Population Numbers, Assignments of Mathematics

Toggle sidebar
bg1
Math 464, Worksheet 6
This exercise uses the population model from Worksheet 2, in which birth rate and death rate are
pb= 0.05 and pd=N
5000
and expected population is governed by the difference equation
∆N=1
5000(250N−N2)
The goal is a “one click” model of a full year of population numbers using random data on every
day of the year. Here’s how you get there:
1. Generate two independent columns of normally distributed random numbers. Each column
needs at least 365 numbers.
2. Use one of these columns to generate actual numbers of births each day. These should be
approximately binomial with mean and standard deviation
µ=pbNand σ=pNpb(1 −pb)
[Hint: pbis always 0.05]
3. Use the other column to generate actual numbers of deaths each day. These should be ap-
proximately binomial with mean and standard deviation
µ=pdNand σ=pNpd(1 −pd)
[Hint: pdchanges every day!]
4. Use all this data to compute the number of animals on each day for a year. You can pick any
starting population you like. I used 100.
5. Graph your data. It should look fairly jagged, particularly over the last half of the year. But
the jaggedness should hover around 250.
6. Copy the Day 2 Population cell and paste it back in the same cell. This will cause all the
random numbers to reset. You can watch the effect of this by watching the graph when you
click “Paste”.
1

Partial preview of the text

Download Population Model Worksheet 6: Generating Random Population Numbers and more Assignments Mathematics in PDF only on Docsity!

Math 464, Worksheet 6

This exercise uses the population model from Worksheet 2, in which birth rate and death rate are

pb = 0. 05 and pd =

N

and expected population is governed by the difference equation

∆N =

(250N − N^2 )

The goal is a “one click” model of a full year of population numbers using random data on every day of the year. Here’s how you get there:

  1. Generate two independent columns of normally distributed random numbers. Each column needs at least 365 numbers.
  2. Use one of these columns to generate actual numbers of births each day. These should be approximately binomial with mean and standard deviation

μ = pbN and σ =

Npb(1 − pb)

[Hint: pb is always 0.05]

  1. Use the other column to generate actual numbers of deaths each day. These should be ap- proximately binomial with mean and standard deviation

μ = pdN and σ =

Npd(1 − pd)

[Hint: pd changes every day!]

  1. Use all this data to compute the number of animals on each day for a year. You can pick any starting population you like. I used 100.
  2. Graph your data. It should look fairly jagged, particularly over the last half of the year. But the jaggedness should hover around 250.
  3. Copy the Day 2 Population cell and paste it back in the same cell. This will cause all the random numbers to reset. You can watch the effect of this by watching the graph when you click “Paste”.