AP Statistics Chapter 26 Notes

Slides:



Advertisements
Similar presentations
Chapter 11 Other Chi-Squared Tests
Advertisements

CHI-SQUARE(X2) DISTRIBUTION
Multinomial Experiments Goodness of Fit Tests We have just seen an example of comparing two proportions. For that analysis, we used the normal distribution.
1 Chi-Squared Distributions Inference for Categorical Data and Multiple Groups.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 25, Slide 1 Chapter 25 Comparing Counts.
Chapter 26: Comparing Counts
Chapter 26 Part 1 COMPARING COUNTS. Is an observed distribution consistent with what we expect? Are observed differences among several distributions large.
Inference for Categorical Data Chi-SquareCh.11. Facts about Chi-Square ► Takes only positive values and the graph is skewed to the right ► Test Statistic.
PY 427 Statistics 1Fall 2006 Kin Ching Kong, Ph.D Lecture 12 Chicago School of Professional Psychology.
HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2010 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chapter 12 Additional.
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
Chapter 13 Chi-Square Tests. The chi-square test for Goodness of Fit allows us to determine whether a specified population distribution seems valid. The.
GOODNESS OF FIT TEST & CONTINGENCY TABLE
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 26 Comparing Counts.
Chapter 26: Comparing Counts AP Statistics. Comparing Counts In this chapter, we will be performing hypothesis tests on categorical data In previous chapters,
Copyright © 2010 Pearson Education, Inc. Warm Up- Good Morning! If all the values of a data set are the same, all of the following must equal zero except.
Copyright © 2013 Pearson Education, Inc. All rights reserved Chapter 10 Inferring Population Means.
Chapter 11: Applications of Chi-Square. Count or Frequency Data Many problems for which the data is categorized and the results shown by way of counts.
CHAPTER 26: COMPARING COUNTS OF CATEGORICAL DATA To test claims and make inferences about counts for categorical variables Objective:
Chi-square test or c2 test
Multinomial Experiments Goodness of Fit Tests We have just seen an example of comparing two proportions. For that analysis, we used the normal distribution.
Warm-up Researchers want to cross two yellow- green tobacco plants with genetic makeup (Gg). See the Punnett square below. When the researchers perform.
Chapter 26 Chi-Square Testing
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
United Stats Of AMERICA. Unit 7 chapters Jordo, Rob III, Kins and Toph.
Slide 26-1 Copyright © 2004 Pearson Education, Inc.
Chapter 14: Chi-Square Procedures – Test for Goodness of Fit.
AP Statistics Section 14.. The main objective of Chapter 14 is to test claims about qualitative data consisting of frequency counts for different categories.
Copyright © 2010 Pearson Education, Inc. Slide
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
Inference for Distributions of Categorical Variables (C26 BVD)
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
CHAPTER INTRODUCTORY CHI-SQUARE TEST Objectives:- Concerning with the methods of analyzing the categorical data In chi-square test, there are 2 methods.
AGENDA:. AP STAT Ch. 14.: X 2 Tests Goodness of Fit Homogeniety Independence EQ: What are expected values and how are they used to calculate Chi-Square?
Copyright © 2010 Pearson Education, Inc. Warm Up- Good Morning! If all the values of a data set are the same, all of the following must equal zero except.
11.2 Tests Using Contingency Tables When data can be tabulated in table form in terms of frequencies, several types of hypotheses can be tested by using.
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
ContentFurther guidance  Hypothesis testing involves making a conjecture (assumption) about some facet of our world, collecting data from a sample,
Chapter 15 The Chi-Square Statistic: Tests for Goodness of Fit and Independence PowerPoint Lecture Slides Essentials of Statistics for the Behavioral.
Chapter 12 The Analysis of Categorical Data and Goodness of Fit Tests.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Chapter 13- Inference For Tables: Chi-square Procedures Section Test for goodness of fit Section Inference for Two-Way tables Presented By:
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 12 Tests of Goodness of Fit and Independence n Goodness of Fit Test: A Multinomial.
Comparing Counts Chapter 26. Goodness-of-Fit A test of whether the distribution of counts in one categorical variable matches the distribution predicted.
Statistics 26 Comparing Counts. Goodness-of-Fit A test of whether the distribution of counts in one categorical variable matches the distribution predicted.
Chapter 13 Section 2. Chi-Square Test 1.Null hypothesis – written in words 2.Alternative hypothesis – written in words – always “different” 3.Alpha level.
Chapter 11: Categorical Data n Chi-square goodness of fit test allows us to examine a single distribution of a categorical variable in a population. n.
The Chi-Square Distribution  Chi-square tests for ….. goodness of fit, and independence 1.
Comparing Observed Distributions A test comparing the distribution of counts for two or more groups on the same categorical variable is called a chi-square.
Chapter 12 Lesson 12.2b Comparing Two Populations or Treatments 12.2: Test for Homogeneity and Independence in a Two-way Table.
 Check the Random, Large Sample Size and Independent conditions before performing a chi-square test  Use a chi-square test for homogeneity to determine.
Comparing Counts Chi Square Tests Independence.
CHI-SQUARE(X2) DISTRIBUTION
CHAPTER 26 Comparing Counts.
Chi-square test or c2 test
Chapter 12 Tests with Qualitative Data
Chapter 25 Comparing Counts.
Chapter 12: Inference about a Population Lecture 6b
Chi Square Two-way Tables
Chapter 10 Analyzing the Association Between Categorical Variables
Inference for Relationships
Inference on Categorical Data
Analyzing the Association Between Categorical Variables
The Analysis of Categorical Data and Goodness of Fit Tests
Chapter 26 Comparing Counts.
Assistant prof. Dr. Mayasah A. Sadiq FICMS-FM
Chapter 26 Comparing Counts Copyright © 2009 Pearson Education, Inc.
Chapter 26 Comparing Counts.
Presentation transcript:

AP Statistics Chapter 26 Notes “Chi-Squared Tests”

Chi-Squared Models Chi-squared models are skewed to the right. They are parameterized by their degrees of freedom and become less skewed with increasing degrees of freedom. As the degrees of freedom increase, the distribution gets closer to a symmetric shape, but will never become completely symmetric. The Chi-Squared Model always has a longer tail to the right. Graph some chi-squared models: Window Settings: Xmin = 0 Xmax = 60 Ymin = 0 Ymax = .2

The Chi-Squared Statistic Chi-Squared analysis is based on the following calculation, called the chi-squared statistic. We use this number to find the p-value, which helps us determine whether to reject or retain the null hypothesis This is similar to the z-score in the Normal model and the t-score in the T model

Types of Chi-Squared Tests Chi-Squared Test for Goodness of Fit: this test compares the observed sample distribution with the population distribution. Generally, we are testing how well the observations “fit” what we expect. Use L1 for observed and L2 for expected. (df = n – 1) Chi-Squared Test for Homogeneity: This test compares two or more populations to look for similarities among the groups regarding a categorical variable. The data are provided in a table or matrix. Use matrix A for observed and matrix B for expected. (df = (r – 1)(c – 1)) Chi-Squared Test for Independence: This test looks for an association or dependence between two categorical variables within one population. Use matrix A for observed and matrix B for expected.

Chi-Squared Test for Goodness of Fit In one experiment, a scientist observed certain genetic alterations in offspring of lobsters in the Gulf of Maine. She found that 315 had alteration A, 108 had alteration B, 101 had alteration C, and 32 had alteration D. According to her theory, the expected frequencies should follow the ratio 9:3:3:1. Does this sample data lend confirmation to her theory? Observed Count Expected Count

The Solution Process STAT, TESTS, D X2 – GOF Test This is a Chi-Squared test for goodness of fit. We are interested in whether the observed data found in the lobsters match the theorized distribution of genetic alterations. Step 1: What are the hypotheses? Ho: the observed data found in the lobsters match/equal the theorized distribution of genetic alterations Ha: the observed data found in the lobsters do not match/do not equal the theorized distribution of genetic alterations Step 2: Check the conditions: the data must be randomly sampled and independent the individual expected counts in each cell of the categories must be at least 5 Step 3: Do the calculations. Step 4: State the conclusion

You try… The State University at Center City claims that their student body is accepted in the same proportion as the population of the key areas of the state. The university claims that their acceptance rate adheres to the following pattern, consistent with where the population of the state lives: 45% live in the northern section, 25% in the central section, 10% in the southwestern section, 15% live in the southeastern section, and 5% are from outside the state. A group of students question if the State University really follows their stated policy. A researcher takes a random sample of 1000 incoming freshmen and finds that: 487 are from the Northern section, 218 are from the Central section, 89 are from the Southwest section, 147 are from the Southeast section, and 59 are from out of state. Observed Count Expected Count Do these data provide evidence at the 5% significance level that the students are correct in doubting the university’s claim?

The Solution Process This is a Chi-Squared test for goodness of fit. We are interested in whether the distribution of students at State University is consistent with the distribution of the population of the state by geographical region. Step 1: What are the hypotheses? Ho: the distribution of students at State University is consistent/equals with the distribution of the population of the state by geographical region Ha: the distribution of students at State University is not consistent/does not equal with the distribution of the population of the state by geographical region Step 2: Check the conditions: the data must be randomly sampled and independent the individual expected counts in each cell of the categories must be at least 5 Step 3: Do the calculations Step 4: State the conclusion

Chi-Squared Test for Homogeneity The following table provides the responses of a group of 100 children shown three different toys and asked which one they liked the best. Based on the data, is there evidence of a difference in preference for toys between the boys and girls at a 5% significance level? Toy A Toy B Toy C Totals Boys 25 27 11 63 Girls 9 22 6 37 34 49 17 100

The Solution Process Toy A Toy B Toy C Totals Boys 25 27 11 63 Girls 9 STAT, TESTS, C X2 Test This is a chi-squared test for homogeneity because we are testing for a difference in toy preference among the two groups, boys and girls. Ho: toy preference is the same among the groups, boys and girls Ha: toy preference is different among the groups, boys and girls The expected frequency for each cell in the table is: (row total)(column total) (grand total) Toy A Toy B Toy C Totals Boys 25 27 11 63 Girls 9 22 6 37 34 49 17 100

Homogeneity Test – You try… Medical researchers enlisted 108 subjects for an experiment comparing treatments for depression. The subjects were randomly divided into three groups and given pills to take for a period of three months. Unknown to them, one group received a placebo, the second group the “natural” remedy St. Johnswort, and the third group the prescription drug Paxil. After six months psychologists and physicians (who did not know which treatment each person received) evaluated the subjects to see if their depression had returned. Is there evidence of a difference in the rate of recurrence among the types of treatments? Placebo St. JW Paxil Totals Depression returned 24 22 14 60 No sign of depression 6 8 16 30 90

The Solution Process Placebo St. JW Paxil Totals Depression returned This is a chi-squared test for homogeneity because we are testing for a difference in rate of recurrence among the different groups. Ho: the rate of recurrence is the same for each group Ha: the rate of recurrence is different for each group Calculate the expected frequencies. Placebo St. JW Paxil Totals Depression returned 24 22 14 60 No sign of depression 6 8 16 30 90

Chi-Squared Test for Independence In a study of exercise habits in men working in the health care profession in Chicago, researchers classified the 356 sampled employees according to the level of education they completed and their exercise habits. The researchers want to ascertain if there is an association between the level of education completed and exercise habits at the 5% significance level. College Some College High School Total Exercises Regularly 51 22 43 116 Exercises Occasionally 92 21 28 141 Never Exercises 68 9 99 211 52 93 356

The Solution Process College Some College High School Total This is a Chi-Squared test for independence because we are looking for an association between education level completed and exercise habits among the men working in the health care profession in Chicago. Ho: there is no association between education level completed and exercise habits among the men working in the health care profession in Chicago (independence) Ha: there is an association between education level completed and exercise habits among the men working in the health care profession in Chicago (dependence) Calculate the expected frequencies. College Some College High School Total Exercises Regularly 51 22 43 116 Exercises Occasionally 92 21 28 141 Never Exercises 68 9 99 211 52 93 356