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.
No comments:
Post a Comment