Purpose of this assignment

The tasks you’ll work on today will help you hone the skills you’ve been working on over the last week and to gain specific experience working with probability and probability distributions in R. Post your code and answers to the “Probability worksheet” discussion on Canvas. One submission per group is fine, and you’ll get a grade for completion (not quality or correctness, I just want you to get some practice). I’ll post my answers to these questions at the end of class.

Task 1

Suppose height in a human population is normally distributed with a mean of 1.8 meters and a standard deviation of 0.3 meters. Answer the following questions

Task 2

Consider a genetic locus in a haploid population (one gene copy per individual). Assume there are two alleles, A and a, and that the frequency of the A allele is 0.3.

Task 3

In this task, we are going to graph results for the first time. Let’s use the histogram function hist(), as shown below:

## draw 100 samples from a Poisson with rate parameter 2.5
x <- rpois(100, lambda = 2.5)
## make a histogram summarizing the sample label the x and y axes
## with xlab and ylab, and choose the color of the plot
hist(x, xlab = "Value", ylab = "Frequency", col = "red")

x <- seq(0, 20, by = 1)
y <- dpois(x, lambda = 4.6)
plot(x, y, type = "h", lwd = 2, xlab = "Value", ylab = "Probability")

Task 4

Consider a standard normal distribution (\(\mu\) = 0, \(\sigma\) = 1).

\[\\\] \[\\\] \[\\\] \[\\\]