Language change: parameter exploration
homework
  Following the example set in the lecture, simulate a population of variational learners, obtaining the evolution (=history) of the average value of \(p\). Explore how variation in the following model parameters affects the population’s evolution. Use the Plots package to visualize your findings.
N: population size, i.e. the number of agentsp: the initial value of \(p\). Set this to the same value for each learner.P1: probability of a string that only \(G_1\) can parse. Set this to the same value for each learner.P2: probability of a string that only \(G_2\) can parse. Set this to the same value for each learner.gamma: learning rate.
For the learning rate parameter, do both of the following:
- First, set 
gammato the same value for each learner. - In a second set of simulations, initialize your population so that each learner gets a randomly chosen 
gammafrom the interval between 0 and 1.