RSTUDIO MUST BE USED TO ANSWER THIS QUESTION
Run the following three commands in order\n
x <- rnorm(100)
y <- 2*x + 3 + rnorm(100,sd=1)
z <- 2*x + 3 + rnorm(100,sd=2)
Calculate the correlation coefficients between x and y and between x and z.
Identify the true statements below. (There may be more than one correct answer)
A. Both coefficients are positive
B. The correlation between x and z is stronger than that between x and. y
C. The correlation coefficients both indicate a lack of correlation between the two variables.

Thus based on results we can conclude that:
A. Both co-effecients are positive
B. is not true since corr(X,Z) < cor(X,Y)
C. is not true since both the correlation co-effecients are significant
RSTUDIO MUST BE USED TO ANSWER THIS QUESTION Run the following three commands in order\n x...
Consider a data set consisting of values for three variables: x, y, and z. Three observations are made on each of the three variables. The following table shows the values of x, y, z, x2, y2, z2, xy, yz, and xz for each observation. Observation x y z x2 y2 z2 xy yz xz 6 6 2 36 36 4 36 12 12 4 3 8 16 9 64 12 24 32 2 6 5 4 36 25 12 30...
You run a correlation matrix between a Y variables auto sales in units and two X variables auto prices (X1) and car buyer’s income (X2). As expected auto prices had a high negative correlation to auto sales while buyer’s income had a high positive correlation. Both X variables had significant correlations. When you run a multiple regression analysis of the forecast variable auto sales with independent variables automobile price and car buyer’s income the results were positive coefficients for both...
What are the exact commands I should use to complete the task? 1. Run command (date; sleep 45; echo “Done.”; date) > date.out in the foreground (i.e. without &) 2. Suspend it with Ctrl-Z. Pay attention to the number in the [], it will become handy later. This number is the job number of the command that has been suspended. 3. Run command top to display only processes started by you (i.e. associated with your userid). Write down the process...
This question requires using Rstudio. This is following commands to install and import data into R: > install.packages("ISLR") > library(ISLR) > data(Wage) The required data installed and imported, now this is description of the data: This dataset contains economic and demographic data for 3000 individuals living in the mid-Atlantic region. For each of the 3000 individuals, the following 11 variables are recorded: year: Year that wage information was recorded age: Age of worker maritl: A factor with levels 1. Never...
Question* On STAT your assessment is based on: Final Exam Learn based online assessment Assignments 4790 +' 3490 19% Consider three random variables X, Y and Z which respectively represent the exam, online assessment total and assignment scores (out of 100%) of a randomly chosen student. Assume that X, Y and Z are independent (this is clearly not true, but the answers may be a reasonableapproximation).Suppose that past experience suggests the following properties of these assessment items (each out of...
question 2, and 3 please. I want the code command on
Rstudio
it
is Rstudio
Question 2 1. Define the following function in R: 810) = { Answer 1 2. Plot f(x) for all integers between 10 and 10. # Answer 2 Question 3 1. Extract all the info related to call option contracts written on Facebook (FB), expiring on 01/17/2020, from Yahoo Finance. In order to do this, you need to go to Yahool Finance, search for Facebook click...
Suppose that two variables, x and y, have a correlation coefficient of 0.27. Which of the following statements are true? You must make a selection for each option. Click once to place a check mark for correct answers and click twice to empty the box for the wrong answers. The variables have a positive linear relationship. There is a weak relationship between these two variables. There is a strong relationship between these two variables As xincreases, y decreases. As x...
The equation of the regression line between two variables x (independent variable) and y (dependent variable) is given by y-hat = -3x + 2; and the correlation coefficient is r = -.95. The possible x-values range from 1 to 10. Which of the following statements are correct? I. The variable y is strongly positive correlated to the variable x. II. The variable y is strongly negative correlated to the variable x. III. If x = 5, one would predict that...
please help me understand this. I will greatly appreciate a
fully detailed answer as I want to understand this problem than
just get the answer. Thanks.
Random variables X and Y arejointly Gaussian with 2] 4 -4 m=[1 1. Find the correlation coefficient between X and Y. 3. Find the PDF of Z.