x <- c(8.23, 8.97, 2.72, 1.09, 2.03, 8.07, 8.92, 2.14, 5.6, 2.43, 0.49, 5.8, 5.38, 5.89, 2.31, 5.05, 6.57, 9.21, 9.99, 2.81, 8.86, 9.68, 6.41, 9.36) y <- c(6.7, 6.3, 2, 2.5, 3.4, 2.7, 6.6, 5.3, 7.3, 2.5, 1.9, -0.3, -1, 4, 6.5, 2.5, 0.6, 5.5, 3.6, 1.8, 2.4, 3.2, 6.1, 5.6)   Using the varials x and y that you just created, fit a linear model using y as the dependent variable and x as the independent variable and provide the following:   What is the equation of the regression line?

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question

Run the following lines in R:

 

x <- c(8.23, 8.97, 2.72, 1.09, 2.03, 8.07, 8.92, 2.14, 5.6, 2.43, 0.49, 5.8, 5.38, 5.89, 2.31, 5.05, 6.57, 9.21, 9.99, 2.81, 8.86, 9.68, 6.41, 9.36)
y <- c(6.7, 6.3, 2, 2.5, 3.4, 2.7, 6.6, 5.3, 7.3, 2.5, 1.9, -0.3, -1, 4, 6.5, 2.5, 0.6, 5.5, 3.6, 1.8, 2.4, 3.2, 6.1, 5.6)

 

Using the varials x and y that you just created, fit a linear model using y as the dependent variable and x as the independent variable and provide the following:

 
    1. What is the equation of the regression line?
      y^ =  +  x
 
    1. How many degrees of freedom would need to be used when obtaining a ?p-value associated with the test statistic for the slope parameter?
      Degrees of Freedom = 
 
    1. What is the value of the coefficient of determination?
      R2 = 
 
    1. What is the value of the correlation coefficient?
      Correlation = 
 
  1. Is there a statistically significant relationship between x and y at the α=0.07 significance level? (answer “Yes” or “No” without quotes)
    Yes
    No
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Similar questions
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman