Course Test · University: first two years
Mathematical statistics: independent answers
Each answer here was worked out by hand, without RatMath, before the RatMath code was written. Where the arithmetic is long, the working says how it was checked.
- 1.Maximum likelihood: exponentialThe waiting times 2, 3, 1, 4, 5 come from an exponential distribution with rate . Find the maximum likelihood estimate of .Answer, so .
- 2.Maximum likelihood: PoissonCounts 2, 0, 3, 1, 4 come from a Poisson distribution. Find the maximum likelihood estimate of its mean.Answer.
- 3.Unbiased varianceFind the sample variance (divisor ) of 3, 5, 7, 9, 11.AnswerDeviations ; ; .
- 4.Two-sample t testGroup A: 12, 15, 11, 14, 13. Group B: 16, 18, 15, 17, 19. Test equal means with the pooled two-sample test. Give , the degrees of freedom and the two-sided -value.Answer, , both , pooled . , 8 df, .
- 5.Paired t testBlood pressure before: 200, 210, 190, 220, 205; after: 195, 200, 192, 210, 198. Test for a change with a paired test (two-sided).AnswerDifferences 5, 10, , 10, 7: , . , 4 df, : not significant at 5%.
- 6.Interval for a varianceA sample of from a normal population has . Give a 95% confidence interval for .Answer.
- 7.One-way ANOVAThree groups: , , . Compute the ANOVA statistic and its -value.AnswerMeans 5, 7, 10, grand mean . , . on (2, 6) df, .
- 8.Inference for a slopeFor and , find the least-squares slope, its standard error, the statistic and the two-sided -value for .Answer. , , , , 3 df, .
- 9.Coefficient of determinationFor the same data, find .Answer, … more simply .
- 10.Multiple regressionFit to , , .AnswerSolving the normal equations gives .
- 11.Mann–Whitney testCompare with by the Mann–Whitney (Wilcoxon rank-sum) test. Give and the exact two-sided -value.AnswerEvery value in the first sample is below every value in the second, so . Only 1 of the arrangements is that extreme on each side: .
- 12.Sign testOf 10 paired differences, 9 are positive and 1 negative. Find the two-sided sign-test -value.Answer.
- 13.Fisher's exact testFind the two-sided Fisher exact -value for the table .AnswerHypergeometric probabilities for the top-left cell : . Tables at most as likely as the observed one: .
- 14.Power of a z testTest against with , , . What is the power when the true mean is 106?AnswerReject when . Power .
- 15.Sample sizeHow large a sample gives a margin of error of at most 3 percentage points for a proportion at 95% confidence (use )?Answer, so .
- 16.Conjugate priorWith a uniform Beta(1, 1) prior on a success probability, 7 successes are seen in 10 trials. Give the posterior and its mean.AnswerBeta(8, 4), with mean .
- 17.Kolmogorov–Smirnov statisticFind the Kolmogorov–Smirnov statistic for the sample 0.1, 0.4, 0.7 against the uniform distribution on .AnswerCompare with the step function: at 0.1 the gaps are 0.1 and 0.233, at 0.4 they are 0.267 and 0.067, at 0.7 they are 0.3 and 0.033. .
- 18.Spearman's rank correlationFind Spearman's for and .AnswerRank differences , : .
- 19.Kruskal–Wallis testFind the Kruskal–Wallis for , , .AnswerRank sums 6, 15, 24. .
- 20.Difference of proportionsIn two samples of 100, 45 and 30 people agree. Give a 95% confidence interval for .Answer.