Question: ## Problem 3 # Here is a data vector that will be used in this problem. vec = c(3, -4, 0, 12, 23, 26) #

## Problem 3 # Here is a data vector that will be used in this problem. vec = c(3, -4, 0, 12, 23, 26) # Please don't change the values of this vector (the autograder has a copy of these values that it uses) # a vector x with length 6 so that the correlation between x and vec is exactly +1 # Hint: This means vec and x have a perfect linear relationship with a positive slope x = c(vec) # Hint: You can calculate the correlation between x and vec to check your answer. This will give you more information for any adjustments you need to make. # a vector y with length 6 so that the correlation between y and vec is exactly -1 y = c(-vec) # a vector z with length 6 so that the correlation between z and vec is close to 0. # Any correlation between -0.3 and +0.3 will be accepted by the autograder for this part. z = c()

# a vector w with length 6 so that the correlation between w and vec is between -0.9999 and -0.7 # Note a correlation of -1 is not accepted for this part, but anything between -0.9999 and -0.7 is accepted. w = c() # a vector v with length 6 so that the correlation between v and vec is between +0.3 and +0.7

v = c()

Please fill in the codes for z, w, v while retaining the "= c()" format. and check if x and y are correct

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!