Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For the questions on this page, report the proportion of simulations that led to population extinction for each value of r = 2 . 0

For the questions on this page, report the proportion of simulations that led to population extinction for each value of r=2.0,2.2,2.4,2.6,2.8 using this original script Simulate<-function(r=2, K=50, No=10, var=0.01){
Time<-0:30; Nstochastic<-numeric(31); Ndeterministic<-numeric(31)
N<-No
for (i in 1:31){
Nstochastic[i]<-N
N<-round(N + r *N*(1-(N/K))+ rnorm(1,0,var*N))
if(N<0) N<-0
}
N<-No
for (i in 1:31){
Ndeterministic[i]<-N; N<-(N + r*N*(1-(N/K)))
}
plot(Time,Nstochastic,ylim=c(0,80),xlim=c(0,50),col="red")
lines(Time,Nstochastic,col="red",ylab="Nt")
points(Time,Ndeterministic,cex=0.5)
lines(Time,Ndeterministic)
text(31,Ndeterministic[31],col="black",pos=4,cex=0.8,
paste("Predicted N","=", round(Ndeterministic[31],1))
)
print("Predicted N:")
print(Ndeterministic[31])
if (Nstochastic[31]>0){
text(31,Ndeterministic[31]-8,paste("Stochastic N","=", Nstochastic[31]),
col="red",pos=4,cex=0.8)
print("Stochastic N:")
print(Nstochastic[31])
}
else {text(31,Ndeterministic[31]-8,"EXTINCTION!!!",col="red",pos=4,cex=0.8)}
}
Simulate(r=1.6, K=50, No=10, var=0.05)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Put Your Data To Work 52 Tips And Techniques For Effectively Managing Your Database

Authors: Wes Trochlil

1st Edition

0880343079, 978-0880343077

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago