1. Rejecting a true null hypothesis is classified as a error. 2. Failing to reject a false null hypothesis is classified as a error.

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

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

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

STATISTICS 8, FINAL EXAM. Last six digits of Student ID#: Circle your Discussion Section:

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

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

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

Is it statistically significant? The chi-square test

SCHOOL OF HEALTH AND HUMAN SCIENCES DON T FORGET TO RECODE YOUR MISSING VALUES

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

LAB 4 INSTRUCTIONS CONFIDENCE INTERVALS AND HYPOTHESIS TESTING

Stat 411/511 THE RANDOMIZATION TEST. Charlotte Wickham. stat511.cwick.co.nz. Oct

Chapter 8: Hypothesis Testing for One Population Mean, Variance, and Proportion

Unit 26 Estimation with Confidence Intervals

STAT 145 (Notes) Al Nosedal Department of Mathematics and Statistics University of New Mexico. Fall 2013

CHAPTER 14 NONPARAMETRIC TESTS

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

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

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

Testing Hypotheses About Proportions

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

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

Two-Sample T-Tests Assuming Equal Variance (Enter Means)

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

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

Two-Sample T-Tests Allowing Unequal Variance (Enter Difference)

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

Unit 26: Small Sample Inference for One Mean

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

12.5: CHI-SQUARE GOODNESS OF FIT TESTS

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

Difference of Means and ANOVA Problems

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

Descriptive Statistics

Elementary Statistics

Comparing Multiple Proportions, Test of Independence and Goodness of Fit

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.

Chapter 2. Hypothesis testing in one population

Testing Research and Statistical Hypotheses

Recall this chart that showed how most of our course would be organized:

Chapter 7 Section 7.1: Inference for the Mean of a Population

Mind on Statistics. Chapter 12

3.4 Statistical inference for 2 populations based on two samples

Testing a claim about a population mean

Statistics 2014 Scoring Guidelines

Pearson's Correlation Tests

Having a coin come up heads or tails is a variable on a nominal scale. Heads is a different category from tails.

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

II. DISTRIBUTIONS distribution normal distribution. standard scores

Part 3. Comparing Groups. Chapter 7 Comparing Paired Groups 189. Chapter 8 Comparing Two Independent Groups 217

Mind on Statistics. Chapter 15

STAT 350 Practice Final Exam Solution (Spring 2015)

A POPULATION MEAN, CONFIDENCE INTERVALS AND HYPOTHESIS TESTING

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

Hypothesis Test for Mean Using Given Data (Standard Deviation Known-z-test)

Math 108 Exam 3 Solutions Spring 00

Statistical Impact of Slip Simulator Training at Los Alamos National Laboratory

p ˆ (sample mean and sample

Final Exam Practice Problem Answers

Lesson 1: Comparison of Population Means Part c: Comparison of Two- Means

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

Simple Linear Regression Inference

In the general population of 0 to 4-year-olds, the annual incidence of asthma is 1.4%

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

Biostatistics: Types of Data Analysis

Unit 27: Comparing Two Means

Chapter 7: Simple linear regression Learning Objectives

UNDERSTANDING THE TWO-WAY ANOVA

Introduction to Hypothesis Testing

Bivariate Statistics Session 2: Measuring Associations Chi-Square Test

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

Elementary Statistics Sample Exam #3

Chapter 3 RANDOM VARIATE GENERATION

Statistics courses often teach the two-sample t-test, linear regression, and analysis of variance

Fairfield Public Schools

Introduction to Analysis of Variance (ANOVA) Limitations of the t-test

Chi-square test Fisher s Exact test

Point Biserial Correlation Tests

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

Comparing Two Groups. Standard Error of ȳ 1 ȳ 2. Setting. Two Independent Samples

Simulating Chi-Square Test Using Excel

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

8 6 X 2 Test for a Variance or Standard Deviation

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

Understanding Confidence Intervals and Hypothesis Testing Using Excel Data Table Simulation

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

Hypothesis Testing --- One Mean

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

Inference for two Population Means

Chi Square Distribution

Section 12 Part 2. Chi-square test

Lecture Notes Module 1

CHAPTER IV FINDINGS AND CONCURRENT DISCUSSIONS

Sample Size and Power in Clinical Trials

NCSS Statistical Software

Chi Square Tests. Chapter Introduction

Chapter 23 Inferences About Means

12: Analysis of Variance. Introduction

Name: Math 29 Probability. Practice Second Midterm Exam Show all work. You may receive partial credit for partially completed problems.

Mind on Statistics. Chapter 13

Transcription:

1. Rejecting a true null hypothesis is classified as a error. 2. Failing to reject a false null hypothesis is classified as a error.

8.5 Goodness of Fit Test Suppose we want to make an inference about a group of data (instead of just one or two). Or maybe we want to test counts of categorical data. Chi-square (or χ 2 ) testing allows us to make such inferences. There are several types of Chi-square tests but in this section we will focus on the goodness-of-fit test. Goodness-of-fit test is used to test how well one sample proportions of categories match-up with the known population proportions stated in the null hypothesis statement. The Chi-square goodness-of-fit test extends inference on proportions to more than two proportions by enabling us to determine if a particular population distribution has changed from a specified form. The null and alternative hypotheses do not lend themselves to symbols, so we will define them with words. H o : is the same as H a : is different from For each problem you will make a table with the following headings: Observed Counts (O) Expected ( O E Counts (E) )2 E

The sum of the third column is called the Chi-square test statistic. ( ) 2 2 observed expected χ = expected Table D gives p-values for χ 2 with n 1 degrees of freedom.

Chi-square distributions have only positive values and are skewed right. As the degrees of freedom increase it becomes more normal. The total area under the χ 2 curve is 1.

The assumptions for a Chi-square goodness-of-fit test are: 2. The sample must be an SRS from the populations of interest. 3. The population size is at least ten times the size of the sample. 4. All expected counts must be at least 5. To find probabilities for χ 2 distributions: 2 TI-83/84 calculator uses the command χ cdf found under the DISTR menu. R-Studio command is: 1 pchisq(test statistic, df)

Examples: 1. The Mixed-Up Nut Company advertises that their nut mix contains (by weight) 40% cashews, 15% Brazil nuts, 20% almonds and only 25% peanuts. The truth-in-advertising investigators took a random sample (of size 50 lbs) of the nut mix and found the distribution to be as follows: Cashews Brazil Almonds Nuts Peanuts 15 lb 11 lb 13 lb 11 lb At the 1% level of significance, is the claim made by Mixed-Up Nuts true?

Some problems from quiz 12: 2) A one-sided significance test gives a P-value of.04. From this we can a) Reject the null hypothesis with 95% confidence. b) Reject the null hypothesis with 96% confidence. c) Say that the probability that the null hypothesis is false is.04. d) Say that the probability that the null hypothesis is true is.04. 3&4) It is believed that the average amount of money spent per U.S. household per week on food is about $98, with standard deviation $10. A random sample of 100 households in a certain affluent community yields a mean weekly food budget of $100. We want to test the hypothesis that the mean weekly food budget for all households in this community is higher than the national average. Are the results significant at the 5% level? #3 asks for null and alternate hypothesis and #4 asks for reject or fail to reject 5&6) Based on information from a large insurance company, 67% of all damage liability claims are made by single people under the age of 25. A random sample of 53 claims showed that 42 were made by single people under the age of 25. Does this indicate that the insurance claims of single people under the age of 25 is higher than the national percent reported by the large insurance company? #5 State the null and alternate hypothesis. #6 - Give the test statistic and your conclusion.

7) Let x represent the hemoglobin count (HC) in grams per 100 milliliters of whole blood. The distribution for HC is approximately normal with µ = 14 for healthy adult women. Suppose that a female patient has taken 12 laboratory blood samples in the last year. The HC data sent to her doctor is listed below. We would like to know if the data indicates this patient has significantly high HC compared to the population. #7 - State the null and alternate hypothesis. #8 - Give the p-value and interpret the results. 9) An experimenter flips a coin 100 times and gets 44 heads. Test the claim that the coin is fair against the two-sided claim that it is not fair at the level α=.01. a) H o : p =.5, H a : p <.5; z = -1.20; Reject H o at the 1% significance level. b) H o : p =.5, H a : p.5; z = -1.20; Fail to reject H o at the 1% significance level. c) H o : p =.5, H a : p <.5; z = -1.21; Fail to reject H o at the 1% significance level. d) H o : p =.5, H a : p.5; z = -1.21; Fail to reject H o at the 1% significance level. e) H o : p =.5, H a : p.5; z = -1.20; Reject H o at the 1% significance level.

10) In a experiment on relaxation techniques, subject's brain signals were measured before and after the relaxation exercises with the following results: Person 1 2 3 4 5 Before 31 38 66 51 32 After 26 35 57 51 26 Assuming the population is normally distributed, is there sufficient evidence to suggest that the relaxation exercise slowed the brain waves? (Use α=0.05) a) There is not enough information to make a conclusion. b) Fail to reject the null hypothesis which states there is no change in brain waves. c) Reject the null hypothesis which states there is no change in brain waves in favor of the alternate which states the brain waves slowed after relaxation.

11 & 12) An auditor for a hardware store chain wished to compare the efficiency of two different auditing techniques. To do this he selected a sample of nine store accounts and applied auditing techniques A and B to each of the nine accounts selected. The number of errors found in each of techniques A and B is listed in the table below: Errors in A Errors in B 45 31 48 37 46 39 48 37 52 54 50 45 49 49 40 41 45 50 Does the data provide sufficient evidence to conclude that the number of errors in auditing technique A is fewer than the number of errors in auditing technique B at the 0.1 level of significance? #11 - Select the [Alternative Hypothesis, Value of the Test Statistic]. (Hint: the samples are dependent) #12 - Select the [Rejection Region, Decision of Reject (RH 0 ) or Failure to Reject (FRH 0 )]. (Hint: the samples are dependent)