Subject: STATISTICS (Course No: STASEC-151T)
Answer any fifteen questions (15 x 1 = 15 Marks)
tapply applied to data frames, used to apply a function to a data frame split by factors.
unique() function in base R or distinct() in the dplyr package.
scan() function is used to read data into a vector or list from the console or an external file.
main (title), xlab (x-axis), and ylab (y-axis) inside the plot() function.
pdf() or png()), generating the plot, and then closing the device with dev.off().
qqnorm() function is used to produce a normal QQ plot.
var() function is used to find variance in R.
cov() function is used to compute covariance.
Answer any five questions (5 x 2 = 10 Marks)
Answer any five questions (5 x 5 = 25 Marks)
Mean: x̄ = (Σx)/n
Variance: s² = Σ(x-x̄)²/(n-1)
SD: s = √s²
Standard Error: SE = s/√n