Course Test · University: first two years

Mathematical statistics: test

Maximum likelihood estimates, unbiased variance, two-sample and paired t tests, chi-square intervals for a variance, one-way ANOVA, inference for a regression slope, multiple regression, the Mann–Whitney, sign, Fisher, Kolmogorov–Smirnov, Spearman and Kruskal–Wallis procedures, power and sample size, a conjugate prior, and an interval for a difference of proportions.

Twenty exercises of the kind this course sets. Answers are on the independent answers page; the same exercises done with RatMath are on the RatMath answers page.

  1. 1.Maximum likelihood: exponential
    The waiting times 2, 3, 1, 4, 5 come from an exponential distribution with rate λ\lambda. Find the maximum likelihood estimate of λ\lambda.
  2. 2.Maximum likelihood: Poisson
    Counts 2, 0, 3, 1, 4 come from a Poisson distribution. Find the maximum likelihood estimate of its mean.
  3. 3.Unbiased variance
    Find the sample variance s2s^2 (divisor n−1n-1) of 3, 5, 7, 9, 11.
  4. 4.Two-sample t test
    Group A: 12, 15, 11, 14, 13. Group B: 16, 18, 15, 17, 19. Test equal means with the pooled two-sample tt test. Give tt, the degrees of freedom and the two-sided pp-value.
  5. 5.Paired t test
    Blood pressure before: 200, 210, 190, 220, 205; after: 195, 200, 192, 210, 198. Test for a change with a paired tt test (two-sided).
  6. 6.Interval for a variance
    A sample of n=10n = 10 from a normal population has s2=4s^2 = 4. Give a 95% confidence interval for σ2\sigma^2.
  7. 7.One-way ANOVA
    Three groups: {4,5,6}\{4,5,6\}, {6,7,8}\{6,7,8\}, {9,10,11}\{9,10,11\}. Compute the ANOVA FF statistic and its pp-value.
  8. 8.Inference for a slope
    For x=1,…,5x = 1,\dots,5 and y=2,4,5,4,6y = 2, 4, 5, 4, 6, find the least-squares slope, its standard error, the tt statistic and the two-sided pp-value for H0:β1=0H_0: \beta_1 = 0.
  9. 9.Coefficient of determination
    For the same data, find R2R^2.
  10. 10.Multiple regression
    Fit y=b0+b1x1+b2x2y = b_0 + b_1x_1 + b_2x_2 to x1=1,2,3,4,5x_1 = 1,2,3,4,5, x2=2,1,4,3,5x_2 = 2,1,4,3,5, y=3,4,8,8,11y = 3,4,8,8,11.
  11. 11.Mann–Whitney test
    Compare {1.1,2.3,3.0}\{1.1, 2.3, 3.0\} with {3.5,4.1,5.2,6.0}\{3.5, 4.1, 5.2, 6.0\} by the Mann–Whitney (Wilcoxon rank-sum) test. Give UU and the exact two-sided pp-value.
  12. 12.Sign test
    Of 10 paired differences, 9 are positive and 1 negative. Find the two-sided sign-test pp-value.
  13. 13.Fisher's exact test
    Find the two-sided Fisher exact pp-value for the table (3113)\begin{pmatrix}3&1\\1&3\end{pmatrix}.
  14. 14.Power of a z test
    Test H0:μ=100H_0: \mu = 100 against μ>100\mu > 100 with σ=15\sigma = 15, n=25n = 25, α=0.05\alpha = 0.05. What is the power when the true mean is 106?
  15. 15.Sample size
    How large a sample gives a margin of error of at most 3 percentage points for a proportion at 95% confidence (use p=0.5p = 0.5)?
  16. 16.Conjugate prior
    With a uniform Beta(1, 1) prior on a success probability, 7 successes are seen in 10 trials. Give the posterior and its mean.
  17. 17.Kolmogorov–Smirnov statistic
    Find the Kolmogorov–Smirnov statistic DD for the sample 0.1, 0.4, 0.7 against the uniform distribution on [0,1][0, 1].
  18. 18.Spearman's rank correlation
    Find Spearman's ρ\rho for x=1,2,3,4,5x = 1,2,3,4,5 and y=2,1,4,3,5y = 2,1,4,3,5.
  19. 19.Kruskal–Wallis test
    Find the Kruskal–Wallis HH for {1,2,3}\{1,2,3\}, {4,5,6}\{4,5,6\}, {7,8,9}\{7,8,9\}.
  20. 20.Difference of proportions
    In two samples of 100, 45 and 30 people agree. Give a 95% confidence interval for p1−p2p_1 - p_2.