Hypothesis Testing for Categorical Data

Similar documents
Is it statistically significant? The chi-square test

Mind on Statistics. Chapter 15

Using Stata for Categorical Data Analysis

CHAPTER IV FINDINGS AND CONCURRENT DISCUSSIONS

Math 58. Rumbos Fall Solutions to Review Problems for Exam 2

University of Chicago Graduate School of Business. Business 41000: Business Statistics Solution Key

The power of a test is the of. by using a particular and a. value of the that is an to the value

Math 108 Exam 3 Solutions Spring 00

Class 19: Two Way Tables, Conditional Distributions, Chi-Square (Text: Sections 2.5; 9.1)

Answers: a to b to 92.94

The Economist/YouGov Poll

An Introduction to Statistics Course (ECOE 1302) Spring Semester 2011 Chapter 10- TWO-SAMPLE TESTS

Experimental Design. Power and Sample Size Determination. Proportions. Proportions. Confidence Interval for p. The Binomial Test

Hoover Institution Golden State Poll Fieldwork by YouGov October 3-17, List of Tables. 1. Family finances over the last year...

Elementary Statistics

Comparing Multiple Proportions, Test of Independence and Goodness of Fit

Unit 26 Estimation with Confidence Intervals

Stats Review Chapters 9-10

Practice problems for Homework 12 - confidence intervals and hypothesis testing. Open the Homework Assignment 12 and solve the problems.

Chi Square Distribution

Math 251, Review Questions for Test 3 Rough Answers

AP STATISTICS (Warm-Up Exercises)

Chapter 23. Two Categorical Variables: The Chi-Square Test

General Method: Difference of Means. 3. Calculate df: either Welch-Satterthwaite formula or simpler df = min(n 1, n 2 ) 1.

Chapter 26: Tests of Significance

A) B) C) D)

SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question.

s86 When motion must be decided by secret ballot [SM, s 88]

Crosstabulation & Chi Square

12.5: CHI-SQUARE GOODNESS OF FIT TESTS

Solutions: Problems for Chapter 3. Solutions: Problems for Chapter 3

Review #2. Statistics

Final Exam Practice Problem Answers

August 2012 EXAMINATIONS Solution Part I

Two-sample t-tests. - Independent samples - Pooled standard devation - The equal variance assumption

TEXAS: CRUZ, CLINTON LEAD PRIMARIES

Math 58. Rumbos Fall Solutions to Assignment #3

VIRGINIA: TRUMP, CLINTON LEAD PRIMARIES

PROPERTY TAX SOLUTIONS

Business Statistics. Successful completion of Introductory and/or Intermediate Algebra courses is recommended before taking Business Statistics.

Elementary Statistics Sample Exam #3

Manual for SOA Exam FM/CAS Exam 2.

Chapter 7: Simple linear regression Learning Objectives

2 Precision-based sample size calculations

Exam 3 Review/WIR 9 These problems will be started in class on April 7 and continued on April 8 at the WIR.

Technical Report. For this research Ipsos MORI interviewed a sample of 1,005 adults Wales between the 5 th and 9th March 2011.

Statistics I for QBIC. Contents and Objectives. Chapters 1 7. Revised: August 2013

BA 275 Review Problems - Week 5 (10/23/06-10/27/06) CD Lessons: 48, 49, 50, 51, 52 Textbook: pp

Practice Problems and Exams

Section 7.1. Introduction to Hypothesis Testing. Schrodinger s cat quantum mechanics thought experiment (1935)

Online 12 - Sections 9.1 and 9.2-Doug Ensley

" Y. Notation and Equations for Regression Lecture 11/4. Notation:

Study Guide for the Final Exam

Course Text. Required Computing Software. Course Description. Course Objectives. StraighterLine. Business Statistics

PANTONE DS-C PANTONE C:0 M:5 Y:100 K:10 DS 2-1 C PANTONE C:0 M:3 Y:100 K:10 DS 2-2 C PANTONE C:0 M:0 Y:100 K:10 DS 2-3 C

Bayesian Phylogeny and Measures of Branch Support

CONSTITUTION FOR THE FACULTYAND STAFF FEDERATION OF COMMUNITY COLLEGE OF PHILADELPHIA

Two-Group Hypothesis Tests: Excel 2013 T-TEST Command

Medicare, Social Security & The Deficit

In the past, the increase in the price of gasoline could be attributed to major national or global

Unit 31 A Hypothesis Test about Correlation and Slope in a Simple Linear Regression

Chicago Booth BUSINESS STATISTICS Final Exam Fall 2011

p ˆ (sample mean and sample

MATH 2200 PROBABILITY AND STATISTICS M2200FL083.1

Module 2 Probability and Statistics

Calculating P-Values. Parkland College. Isela Guerra Parkland College. Recommended Citation

Course 6426: Configuring and Troubleshooting Identity & Access Solutions With Windows Server 2008 Active Directory Page 1 of 6

IMPLEMENTING BUSINESS CONTINUITY MANAGEMENT IN A DISTRIBUTED ORGANISATION: A CASE STUDY

Descriptive Statistics

Chi Squared and Fisher's Exact Tests. Observed vs Expected Distributions

1. The parameters to be estimated in the simple linear regression model Y=α+βx+ε ε~n(0,σ) are: a) α, β, σ b) α, β, ε c) a, b, s d) ε, 0, σ

Odds ratio, Odds ratio test for independence, chi-squared statistic.

Name: Date: Use the following to answer questions 3-4:

SECOND M.B. AND SECOND VETERINARY M.B. EXAMINATIONS INTRODUCTION TO THE SCIENTIFIC BASIS OF MEDICINE EXAMINATION. Friday 14 March

Mind on Statistics. Chapter 10

Contingency Tables and the Chi Square Statistic. Interpreting Computer Printouts and Constructing Tables

Statistics 100 Sample Final Questions (Note: These are mostly multiple choice, for extra practice. Your Final Exam will NOT have any multiple choice!

Data Mining Techniques Chapter 5: The Lure of Statistics: Data Mining Using Familiar Tools

Electrical and Electronics Engineering Department Graduate Handbook

Joint Exam 1/P Sample Exam 1

In the Tea Party Movement, Possibilities and Challenges

NEW JERSEY: OBAMA RATINGS UP

Chi-square test Fisher s Exact test

EXAMPLES OF ASSIGNING DEPTH-OF-KNOWLEDGE LEVELS ALIGNMENT ANALYSIS CCSSO TILSA ALIGNMENT STUDY May 21-24, 2001 version 2.0

C. The null hypothesis is not rejected when the alternative hypothesis is true. A. population parameters.

AP STATISTICS TEST #2 - REVIEW - Ch. 14 &15 Period:

CHAPTER 13 SIMPLE LINEAR REGRESSION. Opening Example. Simple Regression. Linear Regression

MONT 107N Understanding Randomness Solutions For Final Examination May 11, 2010

MS Configure and Troubleshoot Identity Access Solutions with Windows Server 2008 Active Directory

November 08, S8.6_3 Testing a Claim About a Standard Deviation or Variance

Simulating Chi-Square Test Using Excel

Californians. education. ppic state wide surve y APRIL 2014

SAMPLING & INFERENTIAL STATISTICS. Sampling is necessary to make inferences about a population.

Lecture 25. December 19, Department of Biostatistics Johns Hopkins Bloomberg School of Public Health Johns Hopkins University.

National Tracking Poll Senior s Poll

WISE Power Tutorial All Exercises

The Chi-Square Test. STAT E-50 Introduction to Statistics

Ordinal Regression. Chapter

BA 275 Review Problems - Week 6 (10/30/06-11/3/06) CD Lessons: 53, 54, 55, 56 Textbook: pp , ,

Experimental Designs (revisited)

Transcription:

Hypothesis Testing for Categorical Data 1. A die is rolled 36 times, with the following results: VALUE 1 2 3 4 5 6 TIMES 8 1 7 9 5 6 Is the die fair? Perform a Hypothesis Test with α =.05.

Step One: H 0 : The die is fair. (p 1 = p 2 = p 3 = p 4 = p 5 = p 6 = 1/6) H A : The die is not fair. α =.05

Step Two: This is a χ 2 test with α =.05. Since we have six categories, we have 5 degrees of freedom. The table value is 11.07. We therefore reject the Null Hypothesis if our test statistic is greater than 11.07.

Step Three: We compute our test statistic by first creating the expected table. If the Null Hypothesis is correct then we should receive the same number of each value, in this case six. Our table is therefore Recall that the observed table was This makes the test statistic 6 χ 2 (O i E i ) 2 = i=1 E i VALUE 1 2 3 4 5 6 TIMES 6 6 6 6 6 6 VALUE 1 2 3 4 5 6 TIMES 8 1 7 9 5 6 = (8 6)2 6 (1 6)2 6 (7 6)2 6 (9 6)2 6 (5 6)2 6 (6 6)2 6 = 6 2 3. Since χ 2 = 6 2 3 is not > 11.07, we fail to reject the Null Hypothesis and conclude that the die may be fair.

2. A simple random sample of size 1600 was taken, and two questions were asked: What is your (political) party affiliation? and Did you vote on November 2? The results were: DEM REP IND YES 390 400 170 NO 250 240 150 Is party affiliation independent of voter turnout? Perform a Hypothesis Test with α =.025.

Step One: H 0 : Party Affiliation is independent of voter turnout. H A : Party Affiliation is not independent of voter turnout. α =.025

Step Two: This is a χ 2 test with α =.025. We have two variables, one with three categories and the other with two categories, making six categories total. We have (3-1)(2-1)=2 degrees of freedom. The table value is 7.378. We therefore reject the Null Hypothesis if our test statistic is greater than 7.378.

Step Three: We compute our test statistic by first creating the expected table. If the Null Hypothesis is correct then we should receive the same proportion of Voters and Non-voters within each party. Since of the 1600 in the sample, 960 voted and 640 did not vote, we should have 3/5 voters and 2/5 non-voters in each party. Our table is therefore Recall that the observed table was This makes the test statistic 6 χ 2 (O i E i ) 2 = i=1 E i DEM REP IND YES 384 384 192 NO 256 256 128 DEM REP IND YES 390 400 170 NO 250 240 150 = (390 384)2 384 (400 384)2 384 (170 192)2 192 (250 256)2 256 (240 256)2 256 (150 128)2 128 = 8.3125. Since χ 2 = 8.3125 is > 7.378, we reject the Null Hypothesis and conclude that party affiliation is not independent of voter turnout.

3. A course with 100 students had three exams. The results were: TEST 1 TEST 2 TEST 3 A 15 30 15 B 35 25 30 C 18 22 D 17 19 24 F 15 6 9 Was the grade distribution the same on each test? Perform a Hypothesis Test with α =.05.

Step One: H 0 : The three exams have the same distribution. H A : The three exams do not have the same distribution. α =.05

Step Two: This is a χ 2 test with α =.05. We have two variables, one with three categories and the other with five categories, making fifteen categories total. We have (3-1)(5-1)=8 degrees of freedom. The table value is 15.507. We therefore reject the Null Hypothesis if our test statistic is greater than 15.507.

Step Three: We compute our test statistic by first creating the expected table. If the Null Hypothesis is correct then we should receive the same proportion of As, Bs, Cs, Ds, and Fs on each exam. Since of the 300 exams, 60 were As, 90 were Bs, 60 were Cs, 60 were Ds, and 30 were Fs, we should have As, 30 Bs, Cs, Ds and 10 Fs on each exam. Our table is therefore Recall that the observed table was TEST 1 TEST 2 TEST 3 A B 30 30 30 C D F 10 10 10 TEST 1 TEST 2 TEST 3 A 15 30 15 B 35 25 30 C 18 22 D 17 19 24 F 15 6 9

This makes the test statistic χ 2 = 15 i=1 (O i E i ) 2 E i = (15 )2 (30 )2 (15 )2 (35 30)2 30 (25 30)2 30 (30 30)2 30 (18 )2 ( )2 (22 )2 (17 )2 (19 )2 (24 )2 (15 10)2 10 (6 10)2 10 (9 10)2 10 = 15.0 6. Since χ 2 = 15.0 6 is not > 15.507, we fail to reject the Null Hypothesis and conclude that the three exams might have the same grade distributions.

4. A standardized exam is given which typically results in 15% As, % Bs, 30% Cs, % Ds, and 15% Fs. Of the 1000 students who take the exam, the following grades were given: A B C D F 128 194 326 193 159 Was the grade distribution typical for this exam? Perform a Hypothesis Test with α =.1.

Step One: H 0 : The grade distribution is 15% A, % B, 30% C, % D, 15% F. H A : The grade distribution is not 15% A, % B, 30% C, % D, 15% F. α =.1

Step Two: This is a χ 2 test with α =.1. Since we have five categories, we have 4 degrees of freedom. The table value is 7.779. We therefore reject the Null Hypothesis if our test statistic is greater than 7.779.

Step Three: We compute our test statistic by first creating the expected table. If the Null Hypothesis is correct then we should receive 15% As, % Bs, 30% Cs, % Ds, and 15% Fs. Our table is therefore Recall that the observed table was This makes the test statistic 5 χ 2 (O i E i ) 2 = i=1 A B C D F 150 0 300 0 150 A B C D F 128 194 326 193 159 E i = (128 150)2 150 (194 0)2 0 (326 300)2 300 (193 0)2 0 (159 150)2 150 = 6.445. Since χ 2 = 6.445 is not > 7.779, we fail to reject the Null Hypothesis and conclude that the grade distribution was typical for this exam.