Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

### Problem 3 title:\"R Notebook\" e) & f) output: html_notebook --- This is an

ID: 3598673 • Letter: #

Question

### Problem 3 title:"R Notebook" e) & f)
output: html_notebook
---
This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. When you execute code within the notebook, the results appear beneath the code.

### Problem 3
It is hypothesized that humans originated in East Africa, and migrated from there. A measure of genetic diversity for different populations (Ramachandran S., Deshpande O., Roseman C.C., Rosenberg N.A., Feldman M.W., Cavalli-Sforza L.L., " Support from the relationship of genetic and geographic distance in human populations for a serial founder effect originating in Africa," Proceedings of the National Academy of Sciences, 2005, 102 15942 - 15947)and the geographic distance of each population from East Africa (Addis Ababa, Ethiopia), as one would travel over the surface of the earth by land (migration long ago is thought to have happened by land) were computed. The relationship between these two variables is included in the dataset $GeneticDiversity$.


e) Populations with greater genetic diversity are thought to be better able to adapt to changing environments, becuase more genetic diversity provides more opportunities for natural selection. Based on the scatterd plot above-obtained, do the populations closer or farther from East Africa appear to be better suited to adapt to change?

f) The Mayan population in Mexico is $19847 km$ from East Africa (by land). Calculate the predicted genetic diversity for Mayans. The actual genetic diversity calculated for the Mayan population is 0.678. Will the point on the graph that corresponds to Maya be above or below the line? Calculate the residual for Maya.

```{r}
# Insert R code here

```

Explanation / Answer

package com;
public class ArraySortedPolynomial implements PolynomialInterface

{

ArraySortedPolynomial()

{

}

ArraySortedPolynomial(String pol)

{

}

@Override

public PolynomialInterface add(PolynomialInterface other) {

// TODO Auto-generated method stub

return null;

}

@Override

public PolynomialInterface subtract(PolynomialInterface other) {

// TODO Auto-generated method stub

return null;

}

}