Question: Exercise 2: Moran process In this exercise we will implement a simplified version of a Moran process. A Moran process is a stochastic process used

Exercise 2: Moran process In this exercise we will implement a simplified version of a Moran process. A Moran process is a "stochastic process" used in biology to describe finite populations. It was first proposed by statistician Patrick Moran in 19581 . Assume we have a population of N individuals. The number N of individuals is assumed to be constant throughout the whole process. Each individual can be of type 0 (thought of as the "standard" type) or of type 1 (thought of as the "mutant" type). Initially there will be N ?1 individuals of type 0 and 1 individual of type 1. The process consists of a sequence of "generations". In each generation, one individual, chosen randomly, "dies" and is "replaced" by a copy of another individual, also chosen randomly. This will continue until either the mutant individuals disappear or the population is taken over by the mutants.

Exercise 2: Moran process In this exercise we will implement a simplifiedversion of a Moran process. A Moran process is a "stochastic process"

(a) Write a function in R called simulate moran. It should receive as input n (which is assumed to be a positive integer). This function starts by creating a vector of size n containing (n - 1) 0-entries and 1 1-entry: population

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!