R 1m
R 1m
Co1
1. a) CRAN
2. a) RStudio
5. a) Character string
6. a) >
7. b) Statistics
8. d) Assignment
9. b) Numeric
11. c) NaN
12. a) sort()
13. a) seq()
14. a) C()
15. a) typeof()
16. d) 2
18. a) “function”
19. b) 3
20. d) Error
CO2
1. **a) rnorm()**
3. **b) pnorm()**
4. **c) qchisq()**
6. **a) rexp()**
7. **a) size**
8. **c) dpois()**
9. **a) rbeta()**
1. C) It represents the error or difference between the actual and predicted values.
2. A) A strong negative linear relationship.
3. B) The rate of change in (y) for a one-unit change in (x).
4. B) They measure the goodness-of-fit of the model.
5. A) The independent variable is not statistically significant.
6. B) The relationship between variables is linear.
7. A) The predicted value is higher than the actual value.
8. B) No linear relationship between variables.
9. B) Fitted values.
10. B) To provide a range where a new observation is likely to fall.
11. A) The total variance in y explained by x.
12. A) Whether the model is linear.
13. B) They should be normally distributed.
14. A) The relationship between the variables is perfectly linear and positive.
15. D) It provides a range for the slope coefficient.
16. A) The variance of residuals is constant across all levels of x.
17. B) The value of y when x = 0.
18. A) Prediction intervals are wider because they account for individual variation.
19. A) A strong linear relationship between independent variables.
20. A) To test the significance of the overall model.
3. **C) It can cause overfitting and make the model sensitive to noise**
4. **B) Polynomial terms are created by raising the original independent variable to
increasing powers**
5. **A) `lm()`**
13. **B) Having more than one observation for each combination of factors**
15. **B) The main effects of both factors and the interaction effect**
16. **B) The effect of one factor depends on the level of the other factor**