The Goodness-of-Fit Test

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

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

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

1. What is the critical value for this 95% confidence interval? CV = z.025 = invnorm(0.025) = 1.96

People have thought about, and defined, probability in different ways. important to note the consequences of the definition:

Lecture 8. Confidence intervals and the central limit theorem

Final Exam Practice Problem Answers

Stats on the TI 83 and TI 84 Calculator

Chapter 8 Hypothesis Testing Chapter 8 Hypothesis Testing 8-1 Overview 8-2 Basics of Hypothesis Testing

Statistical Testing of Randomness Masaryk University in Brno Faculty of Informatics

Normal Approximation. Contents. 1 Normal Approximation. 1.1 Introduction. Anthony Tanbakuchi Department of Mathematics Pima Community College

THE FIRST SET OF EXAMPLES USE SUMMARY DATA... EXAMPLE 7.2, PAGE 227 DESCRIBES A PROBLEM AND A HYPOTHESIS TEST IS PERFORMED IN EXAMPLE 7.

Is it statistically significant? The chi-square test

3.4 Statistical inference for 2 populations based on two samples

Introduction to Hypothesis Testing

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

Stats Review Chapters 9-10

Non-Parametric Tests (I)

2x 2x 2 8x. Now, let s work backwards to FACTOR. We begin by placing the terms of the polynomial inside the cells of the box. 2x 2

Likelihood: Frequentist vs Bayesian Reasoning

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

Lecture 9 Maher on Inductive Probability

Bivariate Statistics Session 2: Measuring Associations Chi-Square Test

>

2 GENETIC DATA ANALYSIS

mod 10 = mod 10 = 49 mod 10 = 9.

Chapter 26: Tests of Significance

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

STT 200 LECTURE 1, SECTION 2,4 RECITATION 7 (10/16/2012)

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

Elementary Statistics

HYPOTHESIS TESTING (ONE SAMPLE) - CHAPTER 7 1. used confidence intervals to answer questions such as...

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

Using Excel for inferential statistics

Bowerman, O'Connell, Aitken Schermer, & Adcock, Business Statistics in Practice, Canadian edition

MA 1125 Lecture 14 - Expected Values. Friday, February 28, Objectives: Introduce expected values.

Hypothesis Testing: Two Means, Paired Data, Two Proportions

You flip a fair coin four times, what is the probability that you obtain three heads.

Section Format Day Begin End Building Rm# Instructor. 001 Lecture Tue 6:45 PM 8:40 PM Silver 401 Ballerini

Chi Square Distribution

Z-table p-values: use choice 2: normalcdf(

Distribution is a χ 2 value on the χ 2 axis that is the vertical boundary separating the area in one tail of the graph from the remaining area.

statistics Chi-square tests and nonparametric Summary sheet from last time: Hypothesis testing Summary sheet from last time: Confidence intervals

Outline. Topic 4 - Analysis of Variance Approach to Regression. Partitioning Sums of Squares. Total Sum of Squares. Partitioning sums of squares

Chi Square Tests. Chapter Introduction

KSTAT MINI-MANUAL. Decision Sciences 434 Kellogg Graduate School of Management

Chapter 11: Chi-Square and ANOVA Tests

Tests of Hypotheses Using Statistics

Association Between Variables

Math 3C Homework 3 Solutions

p-values and significance levels (false positive or false alarm rates)

Chi-square test Fisher s Exact test

NONPARAMETRIC STATISTICS 1. depend on assumptions about the underlying distribution of the data (or on the Central Limit Theorem)

Hypothesis Testing. Reminder of Inferential Statistics. Hypothesis Testing: Introduction

MATH 140 Lab 4: Probability and the Standard Normal Distribution

Permutation & Non-Parametric Tests

Chapter 3 RANDOM VARIATE GENERATION

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

CHAPTER IV FINDINGS AND CONCURRENT DISCUSSIONS

LAB : THE CHI-SQUARE TEST. Probability, Random Chance, and Genetics

Mind on Statistics. Chapter 15

Hypothesis Testing --- One Mean

Solutions to Homework 10 Statistics 302 Professor Larget

Test Positive True Positive False Positive. Test Negative False Negative True Negative. Figure 5-1: 2 x 2 Contingency Table

Math 55: Discrete Mathematics

Math 108 Exam 3 Solutions Spring 00

STAT 315: HOW TO CHOOSE A DISTRIBUTION FOR A RANDOM VARIABLE

Simple Linear Regression Inference

How Does My TI-84 Do That

Dick Schwanke Finite Math 111 Harford Community College Fall 2015

Comparing Multiple Proportions, Test of Independence and Goodness of Fit

DETERMINE whether the conditions for a binomial setting are met. COMPUTE and INTERPRET probabilities involving binomial random variables

Name: (b) Find the minimum sample size you should use in order for your estimate to be within 0.03 of p when the confidence level is 95%.

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

AP: LAB 8: THE CHI-SQUARE TEST. Probability, Random Chance, and Genetics

Variables Control Charts

Use of the Chi-Square Statistic. Marie Diener-West, PhD Johns Hopkins University

Probability Distribution for Discrete Random Variables

12.5: CHI-SQUARE GOODNESS OF FIT TESTS

1. A credit card company randomly generates temporary three digit pass codes for cardholders. The

Chapter 16. Law of averages. Chance. Example 1: rolling two dice Sum of draws. Setting up a. Example 2: American roulette. Summary.

Section 1.3 P 1 = 1 2. = P n = 1 P 3 = Continuing in this fashion, it should seem reasonable that, for any n = 1, 2, 3,..., =

Second Midterm Exam (MATH1070 Spring 2012)

Bill Burton Albert Einstein College of Medicine April 28, 2014 EERS: Managing the Tension Between Rigor and Resources 1

HYPOTHESIS TESTING: POWER OF THE TEST

Microsoft Excel 2010 and Tools for Statistical Analysis

CONTINGENCY TABLES ARE NOT ALL THE SAME David C. Howell University of Vermont

CHI-SQUARE: TESTING FOR GOODNESS OF FIT

Hypothesis testing - Steps

Brad Bailey & Robb Sinn North Georgia College & State University

TEST 2 STUDY GUIDE. 1. Consider the data shown below.

Math 431 An Introduction to Probability. Final Exam Solutions

AMS 5 CHANCE VARIABILITY

Curriculum Map Statistics and Probability Honors (348) Saugus High School Saugus Public Schools

Stats for Strategy Fall 2012 First-Discussion Handout: Stats Using Calculators and MINITAB

Topic 8. Chi Square Tests

Introduction to. Hypothesis Testing CHAPTER LEARNING OBJECTIVES. 1 Identify the four steps of hypothesis testing.

CHAPTER 12. Chi-Square Tests and Nonparametric Tests LEARNING OBJECTIVES. USING T.C. Resort Properties

IEOR 6711: Stochastic Models I Fall 2012, Professor Whitt, Tuesday, September 11 Normal Approximations and the Central Limit Theorem

Elementary Statistics Sample Exam #3

Transcription:

The Goodness-of-Fit Test Lecture 49 Section 14.3 Robb T. Koether Hampden-Sydney College Tue, Apr 24, 2012 Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 1 / 15

Outline 1 Goodness-of-Fit Test on the TI-83 2 The Effect of Sample Size 3 Goodness-of-Fit Example 4 Assignment Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 2 / 15

Outline 1 Goodness-of-Fit Test on the TI-83 2 The Effect of Sample Size 3 Goodness-of-Fit Example 4 Assignment Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 3 / 15

Goodness-of-Fit Test on the TI-83 Be careful when using the TI-83! There is a function called χ 2 -Test, but it does not perform the goodness-of-fit test. Some TI-84s have a GOF-Test function. The GOF-Test function does perform the goodness-of-fit test. Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 4 / 15

Goodness-of-Fit Test on the TI-83 TI-83 Goodness-of-fit test Put the observed counts in list L 1. Put the hypothetical proportions in list L 2. Multiply L 2 by the sample size and store as L 2. These are the expected counts. Calculate (L 1 -L 2 ) 2 /L 2 (either all at once or step by step). Go to LIST > MATH and select sum (item #5). Enter Ans and press ENTER. The value of χ 2 appears. Then use χ 2 cdf to find the p-value. Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 5 / 15

Outline 1 Goodness-of-Fit Test on the TI-83 2 The Effect of Sample Size 3 Goodness-of-Fit Example 4 Assignment Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 6 / 15

The Effect of Sample Size In the previous example, 3 s and 5 s were overrepresented and 1 s were underrepresented. Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 7 / 15

The Effect of Sample Size In the previous example, 3 s and 5 s were overrepresented and 1 s were underrepresented. Yet that was not significant. Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 7 / 15

The Effect of Sample Size In the previous example, 3 s and 5 s were overrepresented and 1 s were underrepresented. Yet that was not significant. What if we observed the same proportions, but for a larger sample? Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 7 / 15

The Effect of Sample Size In the previous example, 3 s and 5 s were overrepresented and 1 s were underrepresented. Yet that was not significant. What if we observed the same proportions, but for a larger sample? That is, what if we had observed Number 1 2 3 4 5 6 Observed 90 150 190 140 180 150 (Expected) (150) (150) (150) (150) (150) (150) Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 7 / 15

The Effect of Sample Size In the previous example, 3 s and 5 s were overrepresented and 1 s were underrepresented. Yet that was not significant. What if we observed the same proportions, but for a larger sample? That is, what if we had observed Number 1 2 3 4 5 6 Observed 90 150 190 140 180 150 (Expected) (150) (150) (150) (150) (150) (150) Would it be signficant? Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 7 / 15

Outline 1 Goodness-of-Fit Test on the TI-83 2 The Effect of Sample Size 3 Goodness-of-Fit Example 4 Assignment Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 8 / 15

Example - Fairness of a Coin Example (TI-83 Goodness-of-fit test) Suppose we toss a coin 1000 times and get 525 heads and 475 tails. Does this indicate that is fair or that it is biased? Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 9 / 15

Example - Fairness of a Coins Example (TI-83 Goodness-of-fit test) (1) Let p 1 = proportion of heads. Let p 2 = proportion of tails. H 0 : p 1 = 0.50, p 2 = 0.50 H 1 : H 0 is not true. (2) α = 0.05. (3) The test statistic is χ 2 = all cells (O E) 2. E Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 10 / 15

Example - Fairness of a Coin Example (TI-83 Goodness-of-fit test) (4) We have the table Calculate Heads Tails Observed 525 475 (Expected) (500) (500) χ 2 = = 625 500 + 625 500 = 1.25 + 1.25 = 2.5. (525 500) 2 500 + (475 500)2 500 Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 11 / 15

Example - Fairness of a Coin Example (TI-83 Goodness-of-fit test) (5) The p-value is p-value = χ 2 cdf(2.5,e99,1) = 0.1138. (6) Accept H 0. (7) The proportion of heads is 50%. Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 12 / 15

Example - Fairness of a Coin Perform the above test as a two-tailed one-proportion z test. That is, let the alternative hypothesis be H 1 : p 1 p 2. What is the p-value? What is the value of the test statistic z? Square that number. What do you get? Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 13 / 15

Outline 1 Goodness-of-Fit Test on the TI-83 2 The Effect of Sample Size 3 Goodness-of-Fit Example 4 Assignment Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 14 / 15

Assignment Homework Read Sections 14.1-14.3, pages 921-935. Let s Do It! 14.2, 14.3. Exercises 6-11, 14, 15, page 935. Robb T. Koether (Hampden-Sydney College) The Goodness-of-Fit Test Tue, Apr 24, 2012 15 / 15