Hypothesis Testing and Comparing Two Proportions

Slides:



Advertisements
Similar presentations
What is Chi-Square? Used to examine differences in the distributions of nominal data A mathematical comparison between expected frequencies and observed.
Advertisements

Hypothesis Testing and Comparing Two Proportions Hypothesis Testing: Deciding whether your data shows a “real” effect, or could have happened by chance.
SPSS Session 5: Association between Nominal Variables Using Chi-Square Statistic.
LEARNING PROGRAMME Hypothesis testing Part 2: Categorical variables Intermediate Training in Quantitative Analysis Bangkok November 2007.
Bivariate Analysis Cross-tabulation and chi-square.
Hypothesis Testing IV Chi Square.
Statistical Inference for Frequency Data Chapter 16.
Chapter 11 Contingency Table Analysis. Nonparametric Systems Another method of examining the relationship between independent (X) and dependant (Y) variables.
Section 4.2: How to Look for Differences. Cross-Tabulations College student binge drinkers experienced many personal and social problems, the researchers.
Copyright (c) Bani K. Mallick1 STAT 651 Lecture #17.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
PSY 340 Statistics for the Social Sciences Chi-Squared Test of Independence Statistics for the Social Sciences Psychology 340 Spring 2010.
QM Spring 2002 Business Statistics SPSS: A Summary & Review.
CJ 526 Statistical Analysis in Criminal Justice
Chi-square Test of Independence
Problem 1: Relationship between Two Variables-1 (1)
1 Nominal Data Greg C Elvers. 2 Parametric Statistics The inferential statistics that we have discussed, such as t and ANOVA, are parametric statistics.
Significance Testing 10/22/2013. Readings Chapter 3 Proposing Explanations, Framing Hypotheses, and Making Comparisons (Pollock) (pp ) Chapter 5.
Inferential Statistics: SPSS
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.
1 Psych 5500/6500 Chi-Square (Part Two) Test for Association Fall, 2008.
The schedule moving forward… Today – Evaluation Research – Remaining time = start on quantitative data analysis Thursday – Methodology section due – Quantitative.
CJ 526 Statistical Analysis in Criminal Justice
For testing significance of patterns in qualitative data Test statistic is based on counts that represent the number of items that fall in each category.
Chi-Square Test of Independence Practice Problem – 1
Chi-square (χ 2 ) Fenster Chi-Square Chi-Square χ 2 Chi-Square χ 2 Tests of Statistical Significance for Nominal Level Data (Note: can also be used for.
Chapter 9: Non-parametric Tests n Parametric vs Non-parametric n Chi-Square –1 way –2 way.
Social Science Research Design and Statistics, 2/e Alfred P. Rovai, Jason D. Baker, and Michael K. Ponton Pearson Chi-Square Contingency Table Analysis.
Chapter 12 A Primer for Inferential Statistics What Does Statistically Significant Mean? It’s the probability that an observed difference or association.
Education 793 Class Notes Presentation 10 Chi-Square Tests and One-Way ANOVA.
Nonparametric Tests: Chi Square   Lesson 16. Parametric vs. Nonparametric Tests n Parametric hypothesis test about population parameter (  or  2.
11/16/2015Slide 1 We will use a two-sample test of proportions to test whether or not there are group differences in the proportions of cases that have.
Chi-square Test of Independence
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
Reasoning in Psychology Using Statistics Psychology
Chapter 13 Inference for Counts: Chi-Square Tests © 2011 Pearson Education, Inc. 1 Business Statistics: A First Course.
4 normal probability plots at once par(mfrow=c(2,2)) for(i in 1:4) { qqnorm(dataframe[,1] [dataframe[,2]==i],ylab=“Data quantiles”) title(paste(“yourchoice”,i,sep=“”))}
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.
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.
12/23/2015Slide 1 The chi-square test of independence is one of the most frequently used hypothesis tests in the social sciences because it can be used.
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.
Chi-Square Analyses.
Bullied as a child? Are you tall or short? 6’ 4” 5’ 10” 4’ 2’ 4”
Chapter 14 – 1 Chi-Square Chi-Square as a Statistical Test Statistical Independence Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
Ch 13: Chi-square tests Part 2: Nov 29, Chi-sq Test for Independence Deals with 2 nominal variables Create ‘contingency tables’ –Crosses the 2 variables.
1 Hypothesis testing & Chi-square COMM Nan Yu Fall 2007.
Class Seven Turn In: Chapter 18: 32, 34, 36 Chapter 19: 26, 34, 44 Quiz 3 For Class Eight: Chapter 20: 18, 20, 24 Chapter 22: 34, 36 Read Chapters 23 &
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Introduction to Marketing Research
The Chi-square Statistic
Hypothesis Testing Review
Qualitative data – tests of association
Hypothesis Testing Using the Chi Square (χ2) Distribution
Data Analysis for Two-Way Tables
Statistical Analysis Determining the Significance of Data
The Chi-Square Distribution and Test for Independence
Is a persons’ size related to if they were bullied
Consider this table: The Χ2 Test of Independence
Reasoning in Psychology Using Statistics
Chapter 10 Analyzing the Association Between Categorical Variables
Contingency Tables: Independence and Homogeneity
The 2 (chi-squared) test for independence
Analyzing the Association Between Categorical Variables
Hypothesis Testing Part 2: Categorical variables
Chi2 (A.K.A X2).
Parametric versus Nonparametric (Chi-square)
Chapter 26 Comparing Counts.
Graphs and Chi Square.
Contingency Tables (cross tabs)
Presentation transcript:

Hypothesis Testing and Comparing Two Proportions Hypothesis Testing: Deciding whether your data shows a “real” effect, or could have happened by chance Hypothesis testing is used to decide between two possibilities: The Research Hypothesis The Null Hypothesis

H1 and H0 H1: The Research Hypothesis H0: The Null Hypothesis The effect observed in the data (the sample) reflects a “real” effect (in the population) H0: The Null Hypothesis There is no “real” effect (in the population) The effect observed in the data (the sample) is just due to chance (sampling error)

Example: Comparing Proportions H0: The proportions are not really different H1: The proportions are really different Example 1: Are pennies heavier on one side? Example 2: Do males mention footware in personals ads more often than females do? Work through the examples in the Excel file before proceeding to the next slide. Go through the first 3 sheets, then come back to the powerpoint file.

The Logic of Hypothesis Testing Assume the Null Hypothesis (H0) is true Calculate the probability (p) of getting the results observed in your data if the Null Hypothesis were true If that probability is low (< .05) then reject the Null Hypothesis If you reject the Null Hypothesis, that leaves only the Research Hypothesis (H1)

Assume the Null Hypothesis is true The coins are fair (balanced) Calculate the probability (p) of getting the results observed in your data if the Null Hypothesis were true How often would you get 8/10 coins coming up heads if the coins were fair? You would get 8/10 heads less than 5% of the time. If that probability is low (< .05) then reject the Null Hypothesis That is unlikely, so the Null Hypothesis must be false. If you reject the Null Hypothesis, that leaves only the Research Hypothesis We conclude that the coins are not fair (balanced).

Calculating p How do you calculate the probability that the observed effect is just due to chance? Use a test statistic: Are two proportions different? Chi-square Are two means different? t-test Are more than two means different? ANOVA or “F-test” Three we will learn about in this course. (Probably just the first two actually)

The Logic is Always the Same: Assume nothing is going on (assume H0) Calculate a test statistic (Chi-square, t, F) How often would you get a value this large for the test statistic when H0 is true? (In other words, calculate p) If p < .05, reject the null hypothesis and conclude that something is going on (H1) If p > .05, do not conclude anything.

Demonstrating Hypothesis Testing with Chi-square Example 1: Testing whether coins are unbalanced Example 2: Testing whether men are more likely to mention footware in personals ads than women are. (see Excel spreadsheet for both examples)

Assumptions of Chi-square Test Each observation must be INDEPENDENT – one data point per subject DV is categorical (often yes/no) Calculations must be made from COUNTS, not proportions or percentages No cell should have an “expected value” of less than 5

Using Chi-square in SPSS to compare two proportions Setting up the data file – copy data from excel and paste it into SPSS data file Performing the Chi-square test (next slide) Interpreting the Results (separate slide) Reporting the Results (separate slide)

Performing the Chi-Square Test Name the variables using the variables tab in the SPSS data window analyze -> descriptive statistics -> crosstabs Use arrow button to move “gender” into “rows” box Use arrow button to move “footware” into “columns” box Click “Statistics” box Check the box for “Chi-square”, then click “Continue” Click the “Cells” box. Under “Percentages” check the boxes for “Row” and “Column” Click “OK”

Interpreting the Results “Case Processing Summary” – look for missing data, etc. “Gender x Footware Crosstabulation” – shows the counts of observations in each cell, and the percentages within each row and within each column. “Chi-square Tests” – look at “Pearson chi-square” line Value = 5.33 – This is the value of Chi-square “Asymp Sig” = .021 – This is the p value Compare these values to those I calculated by hand on the excel spreadsheet

Reporting the Results Report the value of chi-square, the degrees of freedom (df), and the p value. Also mention how many observations there were. EXAMPLE: “A greater proportion of men than women mentioned footware in their ads (see Table 1). Of the six ads placed by men, 83% mentioned footware. Only 17% of the six ads placed by women mentioned footware. This difference was significant by a Chi-square test, Chi-square (1) = 5.3, p < .05.”