数据分析|ST104A

联系我们: 手动添加方式: 微信>添加朋友>企业微信联系人>13262280223 或者 QQ: 1483266981

ST104A
ST104A Statistics 1
Candidates should answer THREE questions: all parts of Section A (50 marks
in total) and TWO questions from Section B (25 marks each). Candidates are
strongly advised to divide their time accordingly.
Please find questions on the following page.
A list of formulae and extracts from statistical tables are provided after the
final question of this paper.
University of London 2023
SECTION A
Answer all parts of question 1 (50 marks in total).
1. (a) Suppose that x1 = 4, x2 = 4, x3 = 3, and y1 = 4, y2 = 16, y3 = 12.
Calculate the following quantities:
i.
3
X
i=1
5xi
ii.
3
X
i=2
p
|xiyi
| iii. y1
3 +
3
X
i=2
xi
yi
.
(6 marks)
(b) Classify each one of the following variables as either measurable
(continuous) or categorical. If a variable is categorical, further classify it as
either nominal or ordinal. Justify your answer. (No marks will be awarded
without a justification.)
i. Airline cabins (first class, business class, economy class).
ii. Length of TikTok videos.
iii. University of London student reference number.
(6 marks)
(c) State whether the following are true or false and give a brief explanation.
(No marks will be awarded for a simple true/false answer.)
i. The sample variance, s
2
, can be equal to zero.
ii. For any two events A and B such that P(A) > 0 and P(B) > 0, it is
always the case that:
P(A | B) P(B) = P(B | A) P(A).
iii. When using a small random sample from a non-normal distribution, the
distribution of the sample mean may be regarded as having a normal
distribution.
iv. In experimental studies, quota sampling can be used to select the treatment
and control groups.
v. The regression of the variable y on the variable x will always have the same
slope as the regression of the variable x on the variable y.
(10 marks)
(d) An urn contains 24 balls numbered 1 to 24. One ball is selected at random
and its number observed. Let A denote the event that the number on the ball
is divisible by 2, and let B denote the event that the number on the ball is
divisible by 3. Calculate P(A ∪ B).
(5 marks)
Page 2 of 6
(e) Let X be a normal random variable with mean 1 and variance 9. Calculate to
four decimal places:
P(X > 1 | X > 2).
(5 marks)
(f) The probability distribution of a random variable X is given below.
X = x 4 2 0 2 4
P(X = x) 0.05 0.15 0.60 0.15 0.05
i. Without performing any calculation, explain why the expected value of X
is E(X) = 0.
(2 marks)
ii. Calculate the standard deviation of X to four decimal places.
(3 marks)
iii. Calculate P(X < 0 | X ≤ 0). (3 marks) (g) Based on the central limit theorem, you are told that a 99% confidence interval for a population proportion is (0.4760, 0.6240). What was the size of the sample used (5 marks) (h) A linear regression of weekly sales in a busy store, y in hundreds of dollars, on the number of customers, x, produced the following estimated model: b y = 3.50 + 0.14x. The y-intercept of the estimated regression line is 3.50. Interpret this value and discuss whether this is a concern. Justify your view. (5 marks) Page 3 of 6 SECTION B Answer two out of the three questions from this section (25 marks each). 2. (a) A company manufactures an electronic device to be used in a wide temperature range. The company knows that increased temperature (x), measured in Celsius degrees, shortens the life time of the device (y), measured in 100s of hours. For this reason, data were collected from 12 machines, exposed in different temperatures, and the values of x and y are shown in the table below. Temperature (x) 20 16 10 21 12 26 16 19 22 13 21 16 Device life time (y) 5 7 16 8 15 5 15 12 11 11 7 12 The summary statistics for these data are: Sum of x data: 212 Sum of the squares of x data: 3984 Sum of y data: 124 Sum of the squares of y data: 1448 Sum of the products of x and y data: 2042 i. Draw a scatter diagram of these data. Label the diagram carefully. (4 marks) ii. Calculate the sample correlation coefficient. Interpret your findings. (3 marks) iii. Calculate the least squares line of y on x and draw the line on the scatter diagram. (4 marks) iv. Using the equation you found in iii., obtain the predicted device life time for temperature exposures at 11 Celsius degrees. Do you think this value is realistic Justify your answer. (2 marks) (b) i. Define simple random sampling and stratified random sampling. (4 marks) ii. Why might a researcher prefer to take a stratified random sample rather than a simple random sample Give two reasons. (3 marks) iii. You have been asked to design a nationwide survey in your country to find out about the drinking habits of adults. Give two stratification factors you might use, and explain why you have chosen them. (5 marks) Page 4 of 6 3. (a) A random sample of 550 students in a high school were surveyed in order to explore a potential association between gender and academic performance in Mathematics. The classification band for each student was recorded as well as their gender. The data are summarised in the following table together with row percentages. Classification in Mathematics Gender Fair Good Excellent Total Boys 35 (17%) 90 (45%) 75 (38%) 200 (100%) Girls 73 (21%) 163 (46%) 114 (33%) 350 (100%) Total 108(20%) 253 (46%) 189 (34%) 550 (100%) i. Based on the data in the table, and without conducting a significance test, how would you describe the relationship between gender and performance in Mathematics (4 marks) ii. Calculate the χ 2 statistic and use it to test for independence between gender and performance in Mathematics, using a 10% significance level. What do you conclude (9 marks) (b) A study is conducted to explore potential differences in lifestyles among full time and part-time employees. For this purpose, several randomly selected employees across different occupations, industries, roles and contracts, were asked if they exercise regularly outside work. The results are shown in the following table. Sample size Exercise regularly Part-time 168 127 Full-time 207 132 i. You are asked to consider an appropriate hypothesis test to determine whether there is a difference between full-time and part-time employees in how often the exercise outside work. Test at two appropriate significance levels and comment on your findings. Specify the test statistic you use and its distribution under the null hypothesis. (7 marks) ii. State clearly any other assumptions you made in part i. (2 marks) iii. Compute a 98% confidence interval for the proportion of full-time and part time employees combined that exercise regularly outside work, assuming the respective sample sizes are proportional to population sizes. (3 marks) Page 5 of 6 4. (a) i. The following data reflect the marks for each student of a class. Carefully construct a boxplot to display these data. 49 46 52 64 61 97 46 55 49 52 70 76 (8 marks) ii. Describe the distribution of the data based on the boxplot you have drawn. (2 marks) iii. Name two other types of graphical displays that would be suitable to represent the data and their distribution. Provide a justification for your answers. (3 marks) (b) A group of students was given two tests, in Algebra and Calculus and the test scores are shown below. The aim is to find out whether the performance in Calculus is higher, as captured by these tests taken by the students. Algebra 74 46 44 59 45 63 56 50 72 Calculus 77 42 46 62 45 62 52 54 71 i. Carry out an appropriate hypothesis test at two appropriate significance levels to determine whether the marks in Calculus tend to be higher. State the test hypotheses, and specify your test statistic and its distribution under the null hypothesis. Comment on your findings. (6 marks) ii. State any assumptions you made in part i. (2 marks) iii. Compute a 90% confidence interval for the difference in the means of the test scores. (2 marks) iv. On the basis of the data alone, would you argue that it is easier to get a good mark in Calculus Explain why or why not. (2 marks) Page 6 of 6 End of paper ST104a Statistics 1 Examination Formula Sheet Expected value of a discrete random variable: μ = E(X) = N X i=1 pixi Standard deviation of a discrete random variable: σ = √ σ 2 = v u u t N X i=1 pi(xi μ) 2 The transformation formula: Z = X μ σ Finding Z for the sampling distribution of the sample mean: Z = ˉX μ σ/√ n Finding Z for the sampling distribution of the sample proportion: Z = P p π(1 π π)/n Confidence interval endpoints for a single mean (σ known): ˉx ± zα/2 × σ √ n Confidence interval endpoints for a single mean (σ unknown): ˉx ± tα/2, n 1 × s √ n Confidence interval endpoints for a single proportion: p ± zα/2 × r p(1 n p) Sample size determination for a mean: n ≥ (zα/2 ) 2 σ 2 e 2 Sample size determination for a proportion: n ≥ (zα/2 ) 2 p(1 p) e 2 z test of hypothesis for a single mean (σ known): Z = ˉX μ0 σ/√ n t test of hypothesis for a single mean (σ unknown): T = ˉX μ0 S/√ n z test of hypothesis for a single proportion: Z ~= P π0 p π0(1 π0)/n z test for the difference between two means (variances known): Z = ˉX1 ˉX2 (μ1 μ2) p σ 2 1 /n1 + σ 2 2 /n2 t test for the difference between two means (variances unknown): T = ˉX1 ˉX2 (μ1 μ2) q S2 p (1/n1 + 1/n2) Confidence interval endpoints for the difference between two means: ˉx1 ˉx2±tα/2, n1+n2 2× s s 2 p n 1 1 + 1 n2 Pooled variance estimator: Sp 2 = (n1 1)S 2 1 + (n2 1)S2 2 n1 + n2 2 t test for the difference in means in paired samples: T = ˉXd μd Sd/ √ n Confidence interval endpoints for the difference in means in paired samples: ˉxd ± tα/2, n 1 × s √ d n z test for the difference between two proportions: Z = P1 P2 (π1 π2) p P(1 P)(1/n1 + 1/n2) Pooled proportion estimator: P = R1 + R2 n1 + n2 Confidence interval endpoints for the difference between two proportions: p1 p2±zα/2× s p1(1 p1) n1 + p2(1 p2) n2 χ 2 statistic for test of association: rX i=1 cX j=1 (Oij Eij ) 2 Eij Sample correlation coefficient: r = n i P=1 xiyi nˉxyˉ s n i P=1 x 2 i nˉx 2 n i P=1 yi 2 nyˉ 2 Spearman rank correlation: rs = 1 6 n i P=1 d 2 i n(n2 1) Simple linear regression line estimates: b = n i P=1 xiyi nˉxyˉ n i P=1 x 2 i nˉx 2 a = ˉy bˉx Dennis V. Lindley, William F. Scott, New Cambridge Statistical Tables, (1995) Cambridge University Press, reproduced with permission. Dennis V. Lindley, William F. Scott, New Cambridge Statistical Tables, (1995) Cambridge University Press, reproduced with permission. Dennis V. Lindley, William F. Scott, New Cambridge Statistical Tables, (1995) Cambridge University Press, reproduced with permission. Dennis V. Lindley, William F. Scott, New Cambridge Statistical Tables, (1995) Cambridge University Press, reproduced with permission. Dennis V. Lindley, William F. Scott, New Cambridge Statistical Tables, (1995) Cambridge University Press, reproduced with permission. Dennis V. Lindley, William F. Scott, New Cambridge Statistical Tables, (1995) Cambridge University Press, reproduced with permission. Dennis V. Lindley, William F. Scott, New Cambridge Statistical Tables, (1995) Cambridge University Press, reproduced with permission. Dennis V. Lindley, William F. Scott, New Cambridge Statistical Tables, (1995) Cambridge University Press, reproduced with permission. Dennis V. Lindley, William F. Scott, New Cambridge Statistical Tables, (1995) Cambridge University Press, reproduced with permission. Dennis V. Lindley, William F. Scott, New Cambridge Statistical Tables, (1995) Cambridge University Press, reproduced with permission. Dennis V. Lindley, William F. Scott, New Cambridge Statistical Tables, (1995) Cambridge University Press, reproduced with permission. Dennis V. Lindley, William F. Scott, New Cambridge Statistical Tables, (1995) Cambridge University Press, reproduced with permission. Dennis V. Lindley, William F. Scott, New Cambridge Statistical Tables, (1995) Cambridge University Press, reproduced with permission.

发表回复