## Companion R Script for unit 05 (Percy I)
# Consider the following samples of two random variables X and Y:
x <- c(1,2,3,4,5,6,7,8)
y <- c(1,3,2,3,4,3,5,6)
# Exercise 1: Estimate the mean and the variance of X and Y
# Exercise 2: Compute the estimated covariance matrix of X and Y
# Exercise 3: Compute the estimated Pearson correlation between X and Y
# Exercise 4: Compute the linear regression coefficients for the model
# Y = a_0 + a_1 X
# Exercise 5: Compute the R^2 metric for this model