petrelharp / nebria

0 stars 0 forks source link

determine parameter ranges #1

Closed petrelharp closed 2 years ago

petrelharp commented 3 years ago

Good news - we don't have very many parameters to tweak. My proposal is to adjust these:

...and leave these alone:

For reference, the parameters are here in the SLiM script.

seanschoville commented 3 years ago

Well, I think for the dispersal probability, it seems reasonable.

I think the distance dispersed is likely fine as is if it is an average, but there may be an exponential tail that allows longer dispersal out to 1km or more. Maybe we could go as high as 0.25 for a slightly larger average

The carrying capacity probably should go up so that we ensure we have dispersal events, so perhaps an order of magnitude or at least up to 50.

petrelharp commented 3 years ago

I think the distance dispersed is likely fine as is if it is an average, but there may be an exponential tail that allows longer dispersal out to 1km or more. Maybe we could go as high as 0.25 for a slightly larger average

Dispersal is a random number of Normally distributed hops, so the distribution does have a fairly long tail, FYI.

The carrying capacity probably should go up so that we ensure we have dispersal events, so perhaps an order of magnitude or at least up to 50.

Let's see - I think the way it works now is that there's around 20 adults; the 10 females have each 15 offspring, of which 10% migrate, so about 15 migrants per patch per year. Are you thinking this should be higher?

petrelharp commented 3 years ago

Notes:

Changes:

Note that the important numbers are (a) how many disperse (fecundity times dispersal prob) and (b) how many survive in the same place (roughly 2 per female); just plain fecundity matters less (but affects how quick pops recover after bad years).

TODO:

  1. run a small example and plot dispersal
  2. run a short example and look at landscape-wide carrying capacities and proportion of occupied sites and how long it takes to run per year
  3. run long simulations across a range of parameters
petrelharp commented 2 years ago

About dispersal: right now we have

 (pop size) * (1/2 females) * (fecundity) * (prob dispersal) = 200 * 1/2 * 5 * 0.1 = 50 dispersers per patch per year

and to have a good chance of finding new good habitat, dispersers must go kilometers, sometimes 5km; if they do then there's around a 1/20 chance they find a good patch.

Ok, how far do they go? SIGMA is the mean dispersal distance; here's (left) the histogram of dispersal distances with SIGMA=1km, (center) the proportion of dispersal distances greater than 5km as a function of SIGMA, and (right) plots of example paths at SIGMA=1km Screenshot from 2021-09-21 06-11-50 This looks like at SIGMA=1km, about 2/1000 dispersers go 5km; of these, only 1/20 find a patch; times 50 per year thats 1 disperser per 200 years between patches separated by 5km. That's not very much. To have one migrant per year we'd need 1/50 dispersers to find a patch; if only 1/20 of long-distance dispersers actually find a patch then we'd need like half of dispersers to travel the typical inter-patch dispersal distance.

This is telling me that we need to either (a) set the dispersal distance to be around 5km, or (b) somehow make it so that dispersing beetles preferentially find patches (in which case we could have a SIGMA of like 2km), or (c) make patches maybe 2x as dense. Now, recall that we have the quality of patches change with time, on a scale of hundreds of years, so that patches actually only spend like half the time being good patches. So, my proposal is to do (c): increase the density of potential patches to 1/8 of the pixels, but knowing that they'll only be good patches some proportion of the time (something we weren't taking into account when looking at the maps of where 'patches' are!). And then vary SIGMA from 0.2 to 2km, as we suggested above, and see what happens.

seanschoville commented 2 years ago

Thanks Peter, appreciate the nice explanation. Yes, I think your option C makes the most sense, especially biologically.

Sean

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Peter Ralph @.> Sent: Tuesday, September 21, 2021 8:28:51 AM To: petrelharp/nebria @.> Cc: Sean Schoville @.>; Comment @.> Subject: Re: [petrelharp/nebria] determine parameter ranges (#1)

About dispersal: right now we have

(pop size) (1/2 females) (fecundity) (prob dispersal) = 200 1/2 5 0.1 = 50 dispersers per patch per year

and to have a good chance of finding new good habitat, dispersers must go kilometers, sometimes 5km; if they do then there's around a 1/20 chance they find a good patch.

Ok, how far do they go? SIGMA is the mean dispersal distance; here's (left) the histogram of dispersal distances with SIGMA=1km, (center) the proportion of dispersal distances greater than 5km as a function of SIGMA, and (right) plots of example paths at SIGMA=1km [Screenshot from 2021-09-21 06-11-50]https://user-images.githubusercontent.com/1046249/134176614-1f37367f-1a19-4dab-87bc-29bd0eda7c88.png This looks like at SIGMA=1km, about 2/1000 dispersers go 5km; of these, only 1/20 find a patch; times 50 per year thats 1 disperser per 200 years between patches separated by 5km. That's not very much. To have one migrant per year we'd need 1/50 dispersers to find a patch; if only 1/20 of long-distance dispersers actually find a patch then we'd need like half of dispersers to travel the typical inter-patch dispersal distance.

This is telling me that we need to either (a) set the dispersal distance to be around 5km, or (b) somehow make it so that dispersing beetles preferentially find patches (in which case we could have a SIGMA of like 2km), or (c) make patches maybe 2x as dense. Now, recall that we have the quality of patches change with time, on a scale of hundreds of years, so that patches actually only spend like half the time being good patches. So, my proposal is to do (c): increase the density of potential patches to 1/10 of the pixels, but knowing that they'll only be good patches some proportion of the time (something we weren't taking into account when looking at the maps of where 'patches' are!). And then vary SIGMA from 0.1 to 5km, as we suggested above.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/petrelharp/nebria/issues/1#issuecomment-923990412, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AESSU4EWBY73QJMXA6ODNATUDCCBHANCNFSM5D6M4BWQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

petrelharp commented 2 years ago

I'll give it a try and see what happens.

petrelharp commented 2 years ago

Done, see #4.