Week 4 Homework

20. Number of surviving offspring

Poisson Distributions

A tree produces many seeds but only 1.1 on average becomes an established mature tree. Probability of survival p is small and n is large, so we can consider a Poisson distribution with λ=1.1.

We are looking for the k value where the probability of having more than k seeds survive is less than 1%. In other words, we are looking for the value of kx that fits this formula:

0.01>1−∑k=0kxP(k)0.01>1−∑k=0kxλkk!e−λ

Plot the Poisson distribution P(k) :

```desmos-graph top=0.4 bottom=-0.01 left=-0.1 right=6 --- \poissondist(1.1) ``` We can see that $k=5$ is when we have the first individual probability below 0.01 (1%). So this is probably a good value to check with:

1−(P(0)+P(1)+P(2)+P(3)+P(4)+P(5))

Using estimated values from the plot
1−(0.33+P(1)+P(2)+P(3)+P(4)+P(5))

24. Generalizing the Skellam Model to perennial plants

We need to add the possibility that the plant survives another year in the same site - no seeds can grow in that site if it lives.

Previously, our assumption was the only sites that are not occupied are the ones that zero seeds reached. Now, there is another independent possibility, the possibility that an occupied site had its plant survive to the next year. At time t+1, pxt plants survived to the next year. So our total is:

xt+1=(1−e−αxt)+(pxt)

However, if a site is already occupied by a living plant, it doesn't matter if it is reached by germination. So this equation is counting these sites twice (Probability - Fundamentals#Example Mutually exclusive events). To correct this, we need to multiply the two independent probabilities of seed reaching the site or :

xt+1=(1−e−αxt)(1−pxt)+pxt

(b) At equilibrium, xt+1=xt=x^:

x^=(1−e−αx^)(1−px^)+px^

If we solve for alpha then plot how this varies with different p values:

α=−1xln⁡(1−x1−px)

In the plot:

```desmos-graph top=1 bottom=0 left=0 right=5 --- a=0.8 b=0.5 c=0.2 d=0 y = (1-e^{-xy})(1-ay)+ay y = (1-e^{-xy})(1-by)+by y = (1-e^{-xy})(1-cy)+cy y = (1-e^{-xy})(1-dy)+dy ``` Takeaways from this plot: - When $p=0$, there is no chance of the plant surviving, so when the equilibrium number of sites is close to 0 the number of seeds produced is close to 1 - just enough to replace itself once without competitive effect - When $p$ increases, this makes it so the number of seeds produced with no competition lower, since its more likely the plant will survive in the same site and this seed will be wasted. # 25. Coexistence of two species in the Skellam Model

The superior species is the same since it always out competes the inferior one. There is one condition for success - at least one seed must reach the site. So xt+1=1−P(0seeds)

xt+1=1−e−αxt

The inferior species has two conditions for success:

These two are independent so we multiply them:

yt+1=(1−e−βyt)e−αxt

At equilibrium y=yt+1=y^. So:

y^=(1−e−βy^)e−αx^

Solving for α in equation one gives

α=−ln⁡(1−x^)x^

Solving for β in equation two is β=−1yln⁡(1−yexp(−αx))

If we sub in the α from the first part, it simplifies to:

β=−1yln⁡(1−y1−x)

Now, we can try plotting alpha as a function of x and beta as a function of y

If we plot the corresponding alpha and beta values according to certain x values if we consider that y→0?

(not exactly sure what happens here)

When we consider y as very small, using some property of a logarithm that I don't understand, we can simplify the beta equation to
β≈11−x

26. Host parasitoid system

Imagine the Skellam model, except instead of sites we are talking about hosts for the parasites. Each host can support B parasite larvae. The host species will die after an infection but non-parasitized hosts produce F offpsring each.

Also, let's say that α how many attacks one parasitoid makes per host:

α=nPtHt

Total number of attacks is given by n=αPtHt
One parasitoid makes αHt attacks
Chance of a host being infected is p=1/Ht - this is very small

Since number of attacks (n) is very large and the chance of an individual host being infected (p) is small, we can use a Poisson distribution with lambda:

λ=np=(αPtHt)(1Ht)=αPt

(a) Probability that the host avoids attack

This is the probability that zero parasitoid offspring reach this host. Given the parameters, and assuming n infected hosts and nHt=α, they might follow a Poisson dist with λ=Ptα. The probability of zero infections is wtih k=0:

P(k=0)=e−Ptα

(b) Two conditions for a host being alive are:

Ht+1=Hte−αPtF

For the parasite, it produces B offspring in each infected host Ht. It can infect 1−eαPt hosts. So the total is:

Pt+1=Ht(1−e−αPt)B

Bonus: Coin flipping

We flip two fair coins. If the number of heads is x (may be 0, 1, 2), then you get x2 euros. Calculate (a) the expected number of heads per round; and (b) the expected gain per round.

Probability - Mean#Example gambling

(a) Number of heads per round:
E(ξ)=∑k=02xk⋅Pk

Define x and k for each possibility:
x0=0,P0=0.5⋅0.5=0.25
There is a 0.25 possibility of getting 0 heads

x1=1,P1=(0.5⋅0.5)+(0.5⋅0.5)=0.5:
We add the possibility of getting heads on coin one and not coin 2 plus the inverse. There is a 0.5 probability of 2 heads.

x2=2,P0=0.5⋅0.5=0.25

E(ξ)=x0P(0 heads)+x1P(1 heads)+x2P(2 heads)
E(ξ)=0(0.25)+1(0.5)+2(0.25)
E(ξ)=1

(b) expected money per round.

Since number of money is x2 and we have the same probabilities:
E(ξ)=x02P(0 heads)+x12P(1 heads)+x22P(2 heads)
E(ξ)=0(0.25)+12(0.5)+22(0.25)
E(ξ)=1.5