Sunday, October 8, 2023

Module #7 Assignment

 1. 

The data set for this question is as follows:

x <- c(16, 17, 13, 18, 12, 14, 19, 11, 11, 10)

y <- c(63, 81, 56, 91, 47, 57, 76, 72, 62, 48)

1.1 The input (x) is assumed to be fixed, while the output (y) is a response to the x, thereby being inherently random in contrast to the input. Under these circumstances the relationship is linear. 

1.2

 Intercepts: 19.26 and 3.269

2.

2.1. In this scenario, the relationship between these variables is the time between eruptions of a geyser.

2.2. eruption.lm = lm(eruptions ~ waiting, data=faithful)

coefficients: 1.874016    0.075628

2.3 4.172

3. The coefficients for the 'mtcars' data frame produces this in R; using the 'head' function and limited the variables to just the first 5. 



4.

Using the lm function, as well as the plot and abline function, this is the data represented graphically. 
The inputs for this in R looks like:





No comments:

Post a Comment

Final Project

  The compiled file is attached to the submission for this assignment itself. Blogger does not allow word documents to be attached as far as...