1 Hypothesis Testing Goodness-of-fit & Independence Chi-Squared Tests.

Slides:



Advertisements
Similar presentations
CHI-SQUARE(X2) DISTRIBUTION
Advertisements

Hypothesis Testing and Comparing Two Proportions Hypothesis Testing: Deciding whether your data shows a “real” effect, or could have happened by chance.
Chapter 12 Goodness-of-Fit Tests and Contingency Analysis
Multinomial Experiments Goodness of Fit Tests We have just seen an example of comparing two proportions. For that analysis, we used the normal distribution.
Chi-Squared Hypothesis Testing Using One-Way and Two-Way Frequency Tables of Categorical Variables.
Chi Square Tests Chapter 17. Nonparametric Statistics A special class of hypothesis tests Used when assumptions for parametric tests are not met –Review:
Statistical Inference for Frequency Data Chapter 16.
Chapter 13: The Chi-Square Test
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Goodness-of-Fit Test.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
Cross Tabulation and Chi Square Test for Independence.
1 SOC 3811 Basic Social Statistics. 2 Reminder  Hand in your assignment 5  Remember to pick up your previous homework  Final exam: May 12 th (Saturday),
Ch 15 - Chi-square Nonparametric Methods: Chi-Square Applications
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 14 Goodness-of-Fit Tests and Categorical Data Analysis.
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
1 Categorical Data (Chapter 10) Inference about one population proportion (§10.2). Inference about two population proportions (§10.3). Chi-square goodness-of-fit.
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
The Chi-Square Test Used when both outcome and exposure variables are binary (dichotomous) or even multichotomous Allows the researcher to calculate a.
The Chi-square Statistic. Goodness of fit 0 This test is used to decide whether there is any difference between the observed (experimental) value and.
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
Goodness-of-Fit Tests and Categorical Data Analysis
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on Categorical Data 12.
Chapter 11 Chi-Square Procedures 11.3 Chi-Square Test for Independence; Homogeneity of Proportions.
Chi-Square as a Statistical Test Chi-square test: an inferential statistics technique designed to test for significant relationships between two variables.
Chapter 9: Non-parametric Tests n Parametric vs Non-parametric n Chi-Square –1 way –2 way.
Chi-Square X 2. Parking lot exercise Graph the distribution of car values for each parking lot Fill in the frequency and percentage tables.
1 In this case, each element of a population is assigned to one and only one of several classes or categories. Chapter 11 – Test of Independence - Hypothesis.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Other Chi-Square Tests
Slide 26-1 Copyright © 2004 Pearson Education, Inc.
Nonparametric Tests: Chi Square   Lesson 16. Parametric vs. Nonparametric Tests n Parametric hypothesis test about population parameter (  or  2.
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
HYPOTHESIS TESTING BETWEEN TWO OR MORE CATEGORICAL VARIABLES The Chi-Square Distribution and Test for Independence.
Testing hypothesis with two proportions and Chi-square testing.
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
Chapter Outline Goodness of Fit test Test of Independence.
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
Chapter 11: Chi-Square  Chi-Square as a Statistical Test  Statistical Independence  Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
Copyright © Cengage Learning. All rights reserved. Chi-Square and F Distributions 10.
Non-parametric Tests e.g., Chi-Square. When to use various statistics n Parametric n Interval or ratio data n Name parametric tests we covered Tuesday.
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 13- Inference For Tables: Chi-square Procedures Section Test for goodness of fit Section Inference for Two-Way tables Presented By:
Bullied as a child? Are you tall or short? 6’ 4” 5’ 10” 4’ 2’ 4”
MBA 7025 Statistical Business Analysis Hypothesis Testing Jan 27, 2015
Chapter 14 – 1 Chi-Square Chi-Square as a Statistical Test Statistical Independence Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
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.
Chapter 11 Chi-Square Procedures 11.1 Chi-Square Goodness of Fit.
Chapter 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
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.
CHI SQUARE DISTRIBUTION. The Chi-Square (  2 ) Distribution The chi-square distribution is the probability distribution of the sum of several independent,
Chi Square Test of Homogeneity. Are the different types of M&M’s distributed the same across the different colors? PlainPeanutPeanut Butter Crispy Brown7447.
Test of independence: Contingency Table
Chapter 9: Non-parametric Tests
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Chapter 4. Inference about Process Quality
Qualitative data – tests of association
Testing for Independence
Econ 3790: Business and Economics Statistics
Hypothesis Testing and Comparing Two Proportions
Chapter 10 Analyzing the Association Between Categorical Variables
Chi-square test or c2 test
Chapter 26 Comparing Counts.
Chapter Outline Goodness of Fit test Test of Independence.
Quadrat sampling & the Chi-squared test
Quadrat sampling & the Chi-squared test
Presentation transcript:

1 Hypothesis Testing Goodness-of-fit & Independence Chi-Squared Tests

2 Goodness-of-fit Test A managed forest has the following distribution of trees: Douglas Fir54% Ponderosa Pine40% Grand Fir5% Western Larch1% Mannan & Meslow (1984) made 156 observations of foraging by red-breasted nuthatches and found the following: Mannan, R.W., and E.C. Meslow “Bird populations and vegetation characteristics in managed and old-growth forests, northeastern Oregon.” J. Wildl. Manage. 48: Douglas Fir70 Ponderosa Pine 79 Grand Fir3 Western Larch4

3 Hypotheses Do the birds forage randomly, without regard to what species of tree they are in? To be true, the observed and expected distributions should be alike. Null: The distributions are alike (good fit, meaning birds forage randomly) Alternate: The distributions are different (lack of fit, or birds prefer certain vegetation)

4 Expected Values Based on the percentage distribution of trees, the expected counts for each type (out of 156) are: Douglas Fir84.24 Ponderosa Pine62.40 Grand Fir7.80 Western Larch1.56 (54% of 156 = 84.24)

5 Chi-Square Statistic ExpectedObservedo-e(o-e)Sq(o-e)Sq/e Douglas Fir Ponderosa Pine Grand Fir Western Larch Chi-square = p-value = For p-value in Excel, type =CHIDIST(13.593,3), for 3 degrees of freedom (n groups -1)

6 Conclusion Given the small p-value, we reject the null. These birds are not foraging randomly – they prefer certain types of trees.

7 Test of Independence Demographic data on 111 students is available. We wish to study gender differences, in this case pertaining to dog ownership. Data Set: Student Variables: Gender, Dog (Yes/No) Are Gender and Dog Ownership independent of each other? No Dog Have Dog Female2923 Male3524

8 The Hypotheses Null: The two variables are independent of each other (the occurrence of one does not influence the probability of the occurrence of the other.) Alternate: They are not independent (one influences the other)

9 Chi Square Test Results Tabulated statistics: Gender, Dog Rows: Gender Columns: Dog No Yes All Female Male All Cell Contents: Count Expected count Pearson Chi-Square = 0.143, DF = 1, P-Value = Likelihood Ratio Chi-Square = 0.143, DF = 1, P-Value = 0.705