Posts
Data Analytics | Our Portfolio
1. Basic Statistics (5%) (a) Exam Grades Analysis for Module A The exam grades for 20 students in Module A are: 5, 31, 19, 21, 33, 8, 15, 43, 67, 50, 93, 28, 41, 41, 35, 10, 23, 77, 97, 63 (i) Mean:
module_a <- c(5, 31, 19, 21, 33, 8, 15, 43, 67, 50, 93, 28, 41, 41, 35, 10, 23, 77, 97, 63)
mean(module_a)
The mean score for Module A is 40. (ii) Median:
median(module_a)
The median score for Module A is 34. (iii) Mode:
table_result <- table(module_a)
modes <- as.numeric(names(table_result[table_result == max(table_result)]))
modes
The mode score for Module A is 41. Measures of Spread (i) Variance:
var(module_a)
The variance of Module A scores is 734.7368. (ii) Standard Deviation:
sd(module_a)
The standard deviation of Module A scores is 27.10603. (b) Exam Grades Analysis for Module B The exam grades for 20 students in Module B are: 17, 40, 34, 19, 53, 87, 71, 42, 86, 61, 10, 22, 92, 52, 27, 12, 43, 84, 32, 41 Combining Module A and B Scores The combined…