Question 1
- Consider the following R code which contains the information of marks of six students in Statistics and Mathematics subjects.
> Math_marks = c(70, 85, 92, 60, 55, 60)> Stats_marks = c(80, 70, 80, 90, 75, 65)> Marks = data.frame(Math_marks, Stats_marks)> Marks Math_marks Stats_marks1 70 802 85 703 92 804 60 905 55 756 60 65Based on the given information, answer the following questions.
(i) What will be the output of the command head(Marks, 2)? [2 Marks]
(ii) What will be the output of the command Marks[2,3]? [2 Marks]
(iii) Write an R code that can be used to extract the marks of fourth student in Stats and Maths. [2 Marks]
- Let iid and . If each is independent of , then which of the following options is(are) true? [2 Marks]
(a)
(b)
(c)
(d)
I have written answers on the answer sheets
Not applicable
