Math 152. Rumbos Fall Solutions to Exam #2

Similar documents
Economics 520. Lecture Note 19: Hypothesis Testing via the Neyman-Pearson Lemma CB 8.1,

Math 152. Rumbos Fall Solutions to Assignment #12

ME3620. Theory of Engineering Experimentation. Spring Chapter IV. Decision Making for a Single Sample. Chapter IV

EC2001 Econometrics 1 Dr. Jose Olmo Room D309

Statistical Analysis for QBIC Genetics Adapted by Ellen G. Dow 2017

Math 494: Mathematical Statistics

2.3 Analysis of Categorical Data

TUTORIAL 8 SOLUTIONS #

HYPOTHESIS TESTING: THE CHI-SQUARE STATISTIC

MIT Spring 2015

Practice Problems Section Problems

Central Limit Theorem ( 5.3)

H 2 : otherwise. that is simply the proportion of the sample points below level x. For any fixed point x the law of large numbers gives that

Ch. 11 Inference for Distributions of Categorical Data

Statistical Inference: Estimation and Confidence Intervals Hypothesis Testing

2. The CDF Technique. 1. Introduction. f X ( ).

STAT 513 fa 2018 Lec 02

2. Map genetic distance between markers

MATH 240. Chapter 8 Outlines of Hypothesis Tests

Summary of Chapters 7-9

CONTINUOUS RANDOM VARIABLES

10.2: The Chi Square Test for Goodness of Fit

Lecture 28 Chi-Square Analysis

Two hours. To be supplied by the Examinations Office: Mathematical Formula Tables THE UNIVERSITY OF MANCHESTER. 21 June :45 11:45

Review: General Approach to Hypothesis Testing. 1. Define the research question and formulate the appropriate null and alternative hypotheses.

STAT 135 Lab 5 Bootstrapping and Hypothesis Testing

Summary: the confidence interval for the mean (σ 2 known) with gaussian assumption

The Chi-Square Distributions

2 Hand-out 2. Dr. M. P. M. M. M c Loughlin Revised 2018

CBA4 is live in practice mode this week exam mode from Saturday!

Smoking Habits. Moderate Smokers Heavy Smokers Total. Hypertension No Hypertension Total

Hypothesis testing (cont d)

Chapter 7 Comparison of two independent samples

Math 152. Rumbos Fall Solutions to Review Problems for Exam #2. Number of Heads Frequency

Topic 21 Goodness of Fit

Chapter 10. Chapter 10. Multinomial Experiments and. Multinomial Experiments and Contingency Tables. Contingency Tables.

Hypothesis Testing One Sample Tests

M(t) = 1 t. (1 t), 6 M (0) = 20 P (95. X i 110) i=1

Part 1.) We know that the probability of any specific x only given p ij = p i p j is just multinomial(n, p) where p k1 k 2

Statistics Ph.D. Qualifying Exam: Part I October 18, 2003

3. (a) (8 points) There is more than one way to correctly express the null hypothesis in matrix form. One way to state the null hypothesis is

Classroom Activity 7 Math 113 Name : 10 pts Intro to Applied Stats

Semester , Example Exam 1

Universität Potsdam Institut für Informatik Lehrstuhl Maschinelles Lernen. Hypothesis testing. Anna Wegloop Niels Landwehr/Tobias Scheffer

HYPOTHESIS TESTING: FREQUENTIST APPROACH.

BIO5312 Biostatistics Lecture 6: Statistical hypothesis testings

Importance Sampling and. Radon-Nikodym Derivatives. Steven R. Dunbar. Sampling with respect to 2 distributions. Rare Event Simulation

Chi-Squared Tests. Semester 1. Chi-Squared Tests

Review. December 4 th, Review

Lecture 21: October 19

Answer keys for Assignment 10: Measurement of study variables (The correct answer is underlined in bold text)

STAT 135 Lab 7 Distributions derived from the normal distribution, and comparing independent samples.

STAT 526 Spring Midterm 1. Wednesday February 2, 2011

Testing Hypothesis. Maura Mezzetti. Department of Economics and Finance Università Tor Vergata

The goodness-of-fit test Having discussed how to make comparisons between two proportions, we now consider comparisons of multiple proportions.

Parametric versus Nonparametric Statistics-when to use them and which is more powerful? Dr Mahmoud Alhussami

15 Discrete Distributions

simple if it completely specifies the density of x

1 Hypothesis testing for a single mean

EXAM 3 Math 1342 Elementary Statistics 6-7

Order Statistics. The order statistics of a set of random variables X 1, X 2,, X n are the same random variables arranged in increasing order.

Chapter 10. Prof. Tesler. Math 186 Winter χ 2 tests for goodness of fit and independence

PSY 307 Statistics for the Behavioral Sciences. Chapter 20 Tests for Ranked Data, Choosing Statistical Tests

Spring 2012 Math 541B Exam 1

Inferential statistics

CPSC 531: Random Numbers. Jonathan Hudson Department of Computer Science University of Calgary

Math 151. Rumbos Spring Solutions to Review Problems for Exam 2

Normal (Gaussian) distribution The normal distribution is often relevant because of the Central Limit Theorem (CLT):

CIVL /8904 T R A F F I C F L O W T H E O R Y L E C T U R E - 8

Section VII. Chi-square test for comparing proportions and frequencies. F test for means

LECTURE 5. Introduction to Econometrics. Hypothesis testing

Bio 183 Statistics in Research. B. Cleaning up your data: getting rid of problems

Exam 2 (KEY) July 20, 2009

Class 24. Daniel B. Rowe, Ph.D. Department of Mathematics, Statistics, and Computer Science. Marquette University MATH 1700

Statistical Inference

Probability Theory and Statistics. Peter Jochumzen

Math 58. Rumbos Fall More Review Problems Solutions

557: MATHEMATICAL STATISTICS II HYPOTHESIS TESTING: EXAMPLES

Case-Control Association Testing. Case-Control Association Testing

Recall the Basics of Hypothesis Testing

" M A #M B. Standard deviation of the population (Greek lowercase letter sigma) σ 2

Qualifying Exam CS 661: System Simulation Summer 2013 Prof. Marvin K. Nakayama

Comprehensive Examination Quantitative Methods Spring, 2018

Probability theory and inference statistics! Dr. Paola Grosso! SNE research group!! (preferred!)!!

Data Analysis and Statistical Methods Statistics 651

The University of Hong Kong Department of Statistics and Actuarial Science STAT2802 Statistical Models Tutorial Solutions Solutions to Problems 71-80

Math 151. Rumbos Spring Solutions to Review Problems for Exam 1

Formulas and Tables by Mario F. Triola

Asymptotic Statistics-VI. Changliang Zou

Lecture 7: Hypothesis Testing and ANOVA

Hypothesis Testing. 1 Definitions of test statistics. CB: chapter 8; section 10.3

Stat 231 Exam 2 Fall 2013

UNIVERSITY OF TORONTO. Faculty of Arts and Science APRIL - MAY 2005 EXAMINATIONS STA 248 H1S. Duration - 3 hours. Aids Allowed: Calculator

Solutions to Practice Test 2 Math 4753 Summer 2005

CHAPTER 9, 10. Similar to a courtroom trial. In trying a person for a crime, the jury needs to decide between one of two possibilities:

Brief Suggested Solutions

INTERVAL ESTIMATION AND HYPOTHESES TESTING

FRANKLIN UNIVERSITY PROFICIENCY EXAM (FUPE) STUDY GUIDE

1 st Midterm Exam Solution. Question #1: Student s Number. Student s Name. Answer the following with True or False:

Topic 15: Simple Hypotheses

Transcription:

Math 152. Rumbos Fall 2009 1 Solutions to Exam #2 1. Define the following terms: (a) Significance level of a hypothesis test. Answer: The significance level, α, of a hypothesis test is the largest probability that the test will reject the null hypothesis when the null hypothesis is true. (b) Type II error Answer: A Type II error in hypothesis test occurs when the test fails to reject the null hypothesis when it is in fact false. (c) Power of a test (d) p value Answer: The power of a hypothesis test is the probability that the test will reject the null hypothesis when it is false. Answer: The p value of a hypothesis test is the probability that the test statistic will take on an observed value, or more extreme ones, under the assumption that the null hypothesis is true. (e) Simple hypothesis Answer: A simple hypothesis hypothesis is one that completely specifies certain distribution. 2. Let X 1, X 2,..., X n be a set of random variables with mean μ and variance σ 2, and let X n = 1 n X i and Sn 2 = 1 n (X i X n ) 2. State the assumption(s) n n 1 i=1 i=1 needed to make the following statements true. (a) X n μ S n / n t(n 1). Answer: Assume that X 1, X 2,..., X n are iid normal(μ, σ 2 ). (b) n (X i μ) 2 χ 2 (n). i=1 σ 2

Math 152. Rumbos Fall 2009 2 Answer: Assume that X 1, X 2,..., X n are iid normal(μ, σ 2 ). 3. In a simple genetic model, if both the mother and the father of a child have genotype Gg, then there is probability 1/4 that the child will have genotype GG, probability 1/2 of genotype Gg, and probability 1/4 of genotype gg. In a random sample of 24 children having both parents with genotype Gg, it is found that 10 have genotype GG, 10 have genotype Gg, and 4 have genotype gg. Perform an appropriate test on the data to determine whether the data are consistent with the genetic model. Explain your reasoning. Solution: Index the categories of genotypes GG, Gg and gg by 1, 2 and 3, respectively. Assuming that the given genetic model is true, we then get that the corresponding probabilities of observing children in each category are H o : p 1 = 1 4, p 2 = 1 2, p 3 = 1 4, respectively. This constitutes the null hypothesis that we would like to test against the alternative that the actual distribution of genotypes does not follows the one predicted by the model. Assume that H o is true, we then get that the expected counts in each categories are then ones listed on the third column of Table 1. The Category p i Expected Observed (i) Counts Counts 1 1/4 6 10 2 1/2 12 10 3 1/4 6 4 Table 1: Expected and predicted counts for genotypes GG, Gg and gg observe counts are also listed in Table 1. It then follows that he value for the Pearson Chi Square statistic, Q, for this test is ˆQ = (10 6)2 6 + (10 12)2 12 + (4 6)2 6 = 11 3 3.67. For large values of n, Q has an approximate χ 2 (2) distribution, or an exponential(2) distribution. Using this information, we can then

Math 152. Rumbos Fall 2009 3 approximate the p value to be p value = P(Q ˆQ) ˆQ 1 2 e x/2 dx = e ˆQ/2 0.16. This p value is bigger than the usual significance levels (α = 0.1, 0.05, or 0.01). Thus, we cannot reject the null hypothesis and conclude that the observations are consistent with the simple genetic model. 4. A test of H o : λ = 1 against H 1 : λ > 1 is based on a test statistic, T, with a Poisson(λ) distribution. Suppose the observed value of the test statistic is ˆT = 3. (a) Compute the p value for the test. Solution: The p value is the probability that the test statistic will take on the observed value, or more extremes ones, given that the null hypothesis is true. In this case, more extreme means T > ˆT since the alternative hypothesis is phrased in the form λ > 1. Thus, p value = P(T 3), given that T Poisson(1). Thus, p value = 1 P(T 2) = 1 2 k=0 1 k! e 1 ( = 1 e 1 1 + 1 + 1 ) 2 = 1 5 2e 0.08. (b) Can H o be rejected at the α = 0.05 significance level?

Math 152. Rumbos Fall 2009 4 Solution: Since p value > 0.05, we cannot reject H o at the α = 0.05 significance level. 5. Suppose that X 1, X 2,..., X n is a random sample from a normal(μ, 1) distribution. We wish to test the hypothesis H o : μ = μ o against the alternative H 1 : μ = μ o. A sample of size n = 25 is drawn and the following rejection region is set R: X n μ o > c, for some critical value c. (a) Determine a value of c so that the significance level of the test is α = 0.05. Solution: The significance level, α, is the largest probability that the test will reject the null hypothesis given that it is true. Since the null hypothesis for this test is simple, we have that α = P( X n μ o > c), given that X n normal(μ o, 1/n), where n = 25. We then have that ( Xn μ o α = P > c ) 1/5 1/5 = P( Z > 5c), where Z normal(0, 1). Then, from which we get that α = 1 P( Z 5c) = 1 P( 5c Z 5c) = 1 P( 5c < Z 5c) = 1 (F Z (5c) F Z ( 5c)) = 2 2F Z (5c), F Z (5c) = 1 α 2.

Math 152. Rumbos Fall 2009 5 Thus, if α = 0.05 we have that F Z (5c) = 0.975. We then obtain from a standard normal probabilities table that 5c 1.96. Consequently, c 0.39 (b) Find and expression in terms of standard normal probabilities for the power function of this test. Solution: The power function of this test, γ(μ) is the probability that the the test will reject the null hypothesis when μ = μ o ; that is, γ(μ) = P ( X n μ o > c ) given that X n normal(μ, 1/25), for μ = μ o. Thus, we can write γ(μ) as γ(μ) = 1 P ( X n μ o c ) = 1 P ( μ o c < X n μ o + c ) = 1 P ( μ o μ c < X n μ μ o μ + c ) ( = 1 P 5(μ o μ) 5c < X n μ 1/5 ) 5(μ o μ) + 5c = 1 P (5(μ o μ) 5c < Z 5(μ o μ) + 5c), where Z normal(0, 1). We therefore have that γ(μ) = 1 (F Z (5(μ o μ) + 5c) F Z (5(μ o μ) 5c)), (1) where F Z denotes the cdf of the standard normal distribution. (c) If μ = μ o 1 5, compute the probability of a Type II error. Solution: The probability of a Type II error when μ = μ o 1/5 is β(μ o 1/5) = 1 γ(μ o 1/5).

Math 152. Rumbos Fall 2009 6 Using the formula in equation (1) we obtain that β(μ o 1/5) = F Z (1 + 5c) F Z (1 5c), where 5c = 1.96 by part (a) of this problem. We then have that β(μ o 1/5) = F Z (2.96) F Z ( 0.96) = F Z (2.96) (1 F Z (0.96)) = F Z (2.96) + F Z (0.96) 1. Using a standard normal probabilities table we get that β(μ o 1/5) 0.9985 + 0.8315 1 = 0.83.