School of Computer, Data and Mathematical Sciences
MARKING GUIDE
The marks allocated are shown as after the required text, where is the number of marks
allocated. Note this guide is to assist in marking. If a student provides a correct solution with
complete working, the student should be awarded full marks for the question, even if it is different
to the solution provided in this guide.
EXAM INSTRUCTIONS
Read all the information below and follow any instructions carefully before proceeding.
This exam is printed on both sides of the paper – ensure you answer all the questions.
You may begin writing when instructed by the Exam Supervisor at the start of the exam.
Clearly indicate which question you are answering on any Examination Answer Booklets used.
Unit Name: Social Web Analytics
Unit Number: 300958
Number of Questions: 7
Total Number of Pages: 14
Value of Questions: Exam questions are worth 8 marks, giving a total of 57 marks.
Answering Questions: Answer all questions in the Examination Answer Booklet
provided.
Unit Coordinator: Gizem Intepe
Time Allowed: 2 hours, includes reading time
RESOURCES ALLOWED
Only the resources listed below are allowed in this exam.
All printed materials, books, handwritten or printed notes are allowed.
Any calculator which has the primary function of a calculator is allowed. For example,
calculators on mobile phones or similar electronic devices are not allowed.
Page 1 of 14
,300958 Social Web Analytics Sample Final Exam
This page intentionally left blank
Page 2 of 14
,300958 Social Web Analytics Sample Final Exam
Question 1 (2 + 2 + 2 + 2 = 8 marks)
The table below shows the counts of reach by age group and gender for a particular
facebook page.
13–24 25–34 35–44 45+ Total
F 7 19 42 7 75
M 24 44 45 12 125
Total 31 63 87 19 200
(a) State the Null and alternative hypothesis of the test that needs to be conducted.
(b) State which test statistic should be used for the test and provide its equation.
(c) Describe the randomisation process to obtain the distribution of the test statistic.
(d) Given the following randomisation distribution and sample test statistic value of 3.1, what is
the conclusion of the test?
Randomisation distribution
400
300
Frequency
200
100
0
0 5 10 15
Randomised statistic
Answer:
(a) H0: Age and Gender are independent. 1 HA: They are not independent. 1
(b) The χ2 statistic should be used to compare the sample to the expected independent values.
2
Page 3 of 14
, 300958 Social Web Analytics Sample Final Exam
(c) The randomisation distribution shows the distribution of χ2 when age and gender are
independent. If we shuffle the ages, construct the table, and compute the χ2 v alue, we 2
obtain one random χ2 when H0 i s true. By repeating this many times we obtain the
randomisation distribution. 2
(d) The the test statistic could be sampled from the randomisation distribution, then we can’t
reject H0. We cannot conclude that age and gender are not independent. 2 2
CHECK ME → 8 marks
Page 4 of 14