Hypothesis Testing. Week 04. Presented by : W. Rofianto

Similar documents
Econ 3790: Business and Economics Statistics. Instructor: Yogesh Uppal

Econ 3790: Business and Economics Statistics. Instructor: Yogesh Uppal

Inference About Means and Proportions with Two Populations

Slides by. John Loucks. St. Edward s University. Slide South-Western, a part of Cengage Learning

10.4 Hypothesis Testing: Two Independent Samples Proportion

Section 9.4. Notation. Requirements. Definition. Inferences About Two Means (Matched Pairs) Examples

AMS7: WEEK 7. CLASS 1. More on Hypothesis Testing Monday May 11th, 2015

MATH 240. Chapter 8 Outlines of Hypothesis Tests

T.I.H.E. IT 233 Statistics and Probability: Sem. 1: 2013 ESTIMATION AND HYPOTHESIS TESTING OF TWO POPULATIONS

Hypothesis for Means and Proportions

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

POLI 443 Applied Political Research

Testing a Claim about the Difference in 2 Population Means Independent Samples. (there is no difference in Population Means µ 1 µ 2 = 0) against

7.2 One-Sample Correlation ( = a) Introduction. Correlation analysis measures the strength and direction of association between

The t-test: A z-score for a sample mean tells us where in the distribution the particular mean lies

10.2: The Chi Square Test for Goodness of Fit

Visual interpretation with normal approximation

Tables Table A Table B Table C Table D Table E 675

Two-Sample Inferential Statistics

Inference About Two Means: Independent Samples

Advanced/Advanced Subsidiary. You must have: Mathematical Formulae and Statistical Tables (Blue)

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

Descriptive Statistics

11-2 Multinomial Experiment

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

Including Statistical Power for Determining. How Many Crashes Are Needed in Highway Safety Studies

16.3 One-Way ANOVA: The Procedure

POLI 443 Applied Political Research

Chapter 9 Inferences from Two Samples

Econ 3790: Business and Economic Statistics. Instructor: Yogesh Uppal

Review 6. n 1 = 85 n 2 = 75 x 1 = x 2 = s 1 = 38.7 s 2 = 39.2

GPCO 453: Quantitative Methods I Sec 09: More on Hypothesis Testing

:the actual population proportion are equal to the hypothesized sample proportions 2. H a

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

+ Specify 1 tail / 2 tail

An inferential procedure to use sample data to understand a population Procedures

Sampling distribution of t. 2. Sampling distribution of t. 3. Example: Gas mileage investigation. II. Inferential Statistics (8) t =

While you wait: Enter the following in your calculator. Find the mean and sample variation of each group. Bluman, Chapter 12 1

Study Ch. 9.3, #47 53 (45 51), 55 61, (55 59)

Chapter 14 Simple Linear Regression (A)

LECTURE 6. Introduction to Econometrics. Hypothesis testing & Goodness of fit

The Chi-Square Distributions

Module 5 Practice problem and Homework answers

Inferences About Two Population Proportions

The Chi-Square Distributions

Section 9.5. Testing the Difference Between Two Variances. Bluman, Chapter 9 1

Hypothesis Tests Solutions COR1-GB.1305 Statistics and Data Analysis

i=1 X i/n i=1 (X i X) 2 /(n 1). Find the constant c so that the statistic c(x X n+1 )/S has a t-distribution. If n = 8, determine k such that

The One-Way Repeated-Measures ANOVA. (For Within-Subjects Designs)

Statistics for Managers Using Microsoft Excel/SPSS Chapter 8 Fundamentals of Hypothesis Testing: One-Sample Tests

Lecture Slides. Elementary Statistics. by Mario F. Triola. and the Triola Statistics Series

Chapter 8. Inferences Based on a Two Samples Confidence Intervals and Tests of Hypothesis

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

Tests about a population mean

Lab #12: Exam 3 Review Key

Two Sample Hypothesis Tests

The t-statistic. Student s t Test

Questions 3.83, 6.11, 6.12, 6.17, 6.25, 6.29, 6.33, 6.35, 6.50, 6.51, 6.53, 6.55, 6.59, 6.60, 6.65, 6.69, 6.70, 6.77, 6.79, 6.89, 6.

Paper Reference R. Statistics S2 Advanced/Advanced Subsidiary. Tuesday 24 June 2014 Morning Time: 1 hour 30 minutes

Stats Review Chapter 14. Mary Stangler Center for Academic Success Revised 8/16

Paper Reference R. Statistics S2 Advanced/Advanced Subsidiary. Tuesday 24 June 2014 Morning Time: 1 hour 30 minutes

Lecture Slides. Elementary Statistics Eleventh Edition. by Mario F. Triola. and the Triola Statistics Series 9.1-1

Chapter 7 Comparison of two independent samples

Chapter 12: Estimation

Introduction to Statistics

Difference between means - t-test /25

Inferences about central values (.)

Texas A&M University

Portable Changeable Message Sign (PCMS) Speed Study

Sampling Distributions: Central Limit Theorem

Single Sample Means. SOCY601 Alan Neustadtl

Hypothesis testing for µ:

One-Way Analysis of Variance (ANOVA) Paul K. Strode, Ph.D.

(ii) at least once? Given that two red balls are obtained, find the conditional probability that a 1 or 6 was rolled on the die.

CHAPTER 9: HYPOTHESIS TESTING

LAB 2. HYPOTHESIS TESTING IN THE BIOLOGICAL SCIENCES- Part 2

9-6. Testing the difference between proportions /20

t test for independent means

FINAL REPORT. City of Toronto. Contract Project No: B

EC2001 Econometrics 1 Dr. Jose Olmo Room D309

hypothesis a claim about the value of some parameter (like p)

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:

IB Math Standard Level Probability Practice 2 Probability Practice 2 (Discrete& Continuous Distributions)

PLSC PRACTICE TEST ONE

Analysis of Variance

STAT Chapter 8: Hypothesis Tests

Hypothesis Testing and Confidence Intervals (Part 2): Cohen s d, Logic of Testing, and Confidence Intervals

CHAPTER 8. Test Procedures is a rule, based on sample data, for deciding whether to reject H 0 and contains:

A3. Statistical Inference

BIO5312 Biostatistics Lecture 6: Statistical hypothesis testings

STAT 135 Lab 6 Duality of Hypothesis Testing and Confidence Intervals, GLRT, Pearson χ 2 Tests and Q-Q plots. March 8, 2015

Contingency Tables. Safety equipment in use Fatal Non-fatal Total. None 1, , ,128 Seat belt , ,878

STAT 515 fa 2016 Lec Statistical inference - hypothesis testing

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

2011 Pearson Education, Inc

We know from STAT.1030 that the relevant test statistic for equality of proportions is:

What is a Hypothesis?

Chapter 9. Inferences from Two Samples. Objective. Notation. Section 9.2. Definition. Notation. q = 1 p. Inferences About Two Proportions

2.57 when the critical value is 1.96, what decision should be made?

Comparing Means from Two-Sample

Transcription:

Hypothesis Testing Week 04 Presented by : W. Rofianto

Tests about a Population Mean: σ unknown Test Statistic t x 0 s / n This test statistic has a t distribution with n - 1 degrees of freedom.

Example: Highway Patrol One-Tailed Test about a Population Mean: Small n A State Highway Patrol periodically samples vehicle speeds at various locations on a particular roadway. The sample of vehicle speeds is used to test the hypothesis H 0 : < 65. The locations where H 0 locations for radar traps. is rejected are deemed the best At Location F, a sample of 16 vehicles shows a mean speed of 68.2 mph with a standard deviation of 3.8 mph. Use an a =.05 to test the hypothesis.

Example: Highway Patrol One-Tailed Test about a Population Mean: Small n x Let n = 16, = 68.2 mph, s = 3.8 mph a =.05, d.f. = 16-1 = 15, t a = 1.753 t x s / n 68.2 65 0 3.8/ 16 3.37 Since 3.37 > 1.753, we reject H 0. Conclusion: We are 95% confident that the mean speed of vehicles at Location F is greater than 65 mph. Location F is a good candidate for a radar trap.

Null and Alternative Hypotheses about a Population Proportion The equality part of the hypotheses always appears in the null hypothesis. In general, a hypothesis test about the value of a population proportion p must take one of the following three forms (where p 0 is the hypothesized value of the population proportion). H 0 : p > p 0 H 0 : p < p 0 H 0 : p = p 0 H a : p < p 0 H a : p > p 0 H a : p p 0

Population Proportion Tests Test Statistic z p p 0 p where: p0 ( 1 p0 ) p n

Example: NSC Two-Tailed Test about a Population Proportion: Large n For a New Year s week, the National Safety Council estimated that 500 people would be killed and 25,000 injured on the nation s roads. The NSC claimed that 50% of the accidents would be caused by drunk driving. A sample of 120 accidents showed that 67 were caused by drunk driving. Use these data to test the NSC s claim with a = 0.05.

Example: NSC Two-Tailed Test about a Population Proportion: Large n Hypothesis H 0 : p = 0.5 Test Statistic H a : p 0.5 p p (1 p ).5(1.5) 0 0 n 120.045644 z p p0 (67 /120).5.045644 p 1.278

Example: NSC Two-Tailed Test about a Population Proportion: Large n Rejection Rule Reject H 0 if z < -1.96 or z > 1.96 Conclusion Do not reject H 0.

Calculating the Probability of a Type II Error 1. Formulate the null and alternative hypotheses. 2. Use the level of significance a to establish a rejection rule based on the test statistic. 3. Using the rejection rule, solve for the value of the sample mean that identifies the rejection region. 4. Use the results from step 3 to state the values of the sample mean that lead to the acceptance of H 0 ; this defines the acceptance region. 5. Using the sampling distribution of for any value of from the alternative hypothesis, and the acceptance region from step 4, compute the probability that the sample mean will be in the acceptance region. x

Example: Metro EMS (revisited) Calculating the Probability of a Type II Error 1. Hypotheses are: H 0 : and H a : 2. Rejection rule is: Reject H 0 if z > 1.645 3. Value of the sample mean that identifies the rejection region: z x 12 3.2/ 40 1.645 x 3.2 12 1.645 12.8323 40 4. We will accept H 0 when x < 12.8323

Example: Metro EMS (revisited) Calculating the Probability of a Type II Error 5. Probabilities that the sample mean will be in the acceptance region: z 12.8323 Values of b 1-b 3.2/ 40 14.0-2.31.0104.9896 13.6-1.52.0643.9357 13.2-0.73.2327.7673 12.83 0.00.5000.5000 12.8 0.06.5239.4761 12.4 0.85.8023.1977 12.0001 1.645.9500.0500

Example: Metro EMS (revisited) Calculating the Probability of a Type II Error Observations about the preceding table: When the true population mean is close to the null hypothesis value of 12, there is a high probability that we will make a Type II error. When the true population mean is far above the null hypothesis value of 12, there is a low probability that we will make a Type II error.

Determining the Sample Size where n 2 2 a b ( z z ) ( ) 0 z a = z value providing an area of a in the tail z b = z value providing an area of b in the tail = population standard deviation 0 = value of the population mean in H 0 a = value of the population mean used for the Type II error a 2 Note: In a two-tailed hypothesis test, use z a /2 not z a

Relationship among a, b, and n Once two of the three values are known, the other can be computed. For a given level of significance a, increasing the sample size n will reduce b. For a given sample size n, decreasing a will increase b, whereas increasing a will decrease b.

Example: Par, Inc. Interval Estimate of 1-2 Sample Statistics Sample #1 Sample #2 Par, Inc. Rap, Ltd. Sample Size n 1 = 120 balls n 2 = 80 balls Mean x 1 = 235 yards x = 218 yards 2 Standard Dev. s 1 = 15 yards s 2 = 20 yards