1 Hypothesis testing & Chi-square COMM 420.8 Nan Yu Fall 2007.

Slides:



Advertisements
Similar presentations
Inferential Statistics and t - tests
Advertisements

1 COMM 301: Empirical Research in Communication Lecture 15 – Hypothesis Testing Kwan M Lee.
Hypothesis Testing and Comparing Two Proportions Hypothesis Testing: Deciding whether your data shows a “real” effect, or could have happened by chance.
Contingency Tables (cross tabs)  Generally used when variables are nominal and/or ordinal Even here, should have a limited number of variable attributes.
The Chi-Square Test for Association
Bivariate Analysis Cross-tabulation and chi-square.
Hypothesis Testing IV Chi Square.
Chapter 13: The Chi-Square Test
Chapter 11 Contingency Table Analysis. Nonparametric Systems Another method of examining the relationship between independent (X) and dependant (Y) variables.
PSY 340 Statistics for the Social Sciences Chi-Squared Test of Independence Statistics for the Social Sciences Psychology 340 Spring 2010.
Lecture 11 Psyc 300A. Null Hypothesis Testing Null hypothesis: the statistical hypothesis that there is no relationship between the variables you are.
CJ 526 Statistical Analysis in Criminal Justice
Chi-square Test of Independence
Inferential Statistics  Hypothesis testing (relationship between 2 or more variables)  We want to make inferences from a sample to a population.  A.
BCOR 1020 Business Statistics Lecture 21 – April 8, 2008.
Aaker, Kumar, Day Seventh Edition Instructor’s Presentation Slides
Lecture 7 PY 427 Statistics 1 Fall 2006 Kin Ching Kong, Ph.D
Hypothesis Testing. Outline The Null Hypothesis The Null Hypothesis Type I and Type II Error Type I and Type II Error Using Statistics to test the Null.
SW388R6 Data Analysis and Computers I Slide 1 Chi-square Test of Goodness-of-Fit Key Points for the Statistical Test Sample Homework Problem Solving the.
8/15/2015Slide 1 The only legitimate mathematical operation that we can use with a variable that we treat as categorical is to count the number of cases.
Learning Objective Chapter 13 Data Processing, Basic Data Analysis, and Statistical Testing of Differences CHAPTER thirteen Data Processing, Basic Data.
Inferential Statistics
Significance Testing 10/22/2013. Readings Chapter 3 Proposing Explanations, Framing Hypotheses, and Making Comparisons (Pollock) (pp ) Chapter 5.
+ Quantitative Statistics: Chi-Square ScWk 242 – Session 7 Slides.
Statistics for the Social Sciences Psychology 340 Fall 2013 Tuesday, November 19 Chi-Squared Test of Independence.
Statistics for the Social Sciences Psychology 340 Fall 2013 Thursday, November 21 Review for Exam #4.
AM Recitation 2/10/11.
Chapter 8 Introduction to Hypothesis Testing
The schedule moving forward… Today – Evaluation Research – Remaining time = start on quantitative data analysis Thursday – Methodology section due – Quantitative.
Chapter Thirteen Part I
Phi Coefficient Example A researcher wishes to determine if a significant relationship exists between the gender of the worker and if they experience pain.
CJ 526 Statistical Analysis in Criminal Justice
Week 10 Chapter 10 - Hypothesis Testing III : The Analysis of Variance
Week 8 Chapter 8 - Hypothesis Testing I: The One-Sample Case.
Chi-Square Test of Independence Practice Problem – 1
Tests of Significance June 11, 2008 Ivan Katchanovski, Ph.D. POL 242Y-Y.
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.
S519: Evaluation of Information Systems Social Statistics Inferential Statistics Chapter 8: Significantly significant.
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 Analysis of Variance ANOVA COMM Fall, 2008 Nan Yu.
Chi-square Test of Independence
CHI-SQUARE x 2. Chi Square Symbolized by Greek x 2 pronounced “Ki square” a Test of STATISTICAL SIGNIFICANCE for TABLE data “What are the ODDs the relationship.
Reasoning in Psychology Using Statistics Psychology
CHAPTER 9 Testing a Claim
1 Chi-square & T-test Comm Fall 2007 Nan Yu.
Chapter 11: Chi-Square  Chi-Square as a Statistical Test  Statistical Independence  Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
Review of Factorial ANOVA, correlations and reliability tests COMM Fall, 2007 Nan Yu.
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.
Chi-Square X 2. Review: the “null” hypothesis Inferential statistics are used to test hypotheses Whenever we use inferential statistics the “null hypothesis”
1.  What inferential statistics does best is allow decisions to be made about populations based on the information about samples.  One of the most useful.
Chi-Square X 2. Review: the “null” hypothesis Inferential statistics are used to test hypotheses Whenever we use inferential statistics the “null hypothesis”
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.
Chapter 13 Understanding research results: statistical inference.
ANOVA Knowledge Assessment 1. In what situation should you use ANOVA (the F stat) instead of doing a t test? 2. What information does the F statistic give.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 9 Testing a Claim 9.1 Significance Tests:
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 9 Testing a Claim 9.1 Significance Tests:
Hypothesis Testing.
Chi-Square X2.
Hypothesis Testing Review
CHAPTER 9 Testing a Claim
Inferential Statistics
Reasoning in Psychology Using Statistics
Hypothesis Testing and Comparing Two Proportions
CHAPTER 9 Testing a Claim
Contingency Tables (cross tabs)
Hypothesis Testing.
Reasoning in Psychology Using Statistics
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
Presentation transcript:

1 Hypothesis testing & Chi-square COMM Nan Yu Fall 2007

2 Warming up Download “ChisquareData” to your desk top. Download Review Practice to your desk top. Double click to open the SPSS file Please complete the questions in the file of “Review Practice.” *Dataset was from Pew Research Center. Survey was conducted in Feb, 2007

3 Missing values How to define the “missing value” in SPSS ? Click here Select Discrete missing values. Enter the defined missing values.

4 From descriptive statistics to inferential statistic Inferential statistic provided answer to the question: Is what we have observed in the sample are true in the population (in reality)? How do we know?

5 First: Specifying the hypothesis to test Hypothesis: The attitude toward whether to keeping troops in Iraq or bring troops home would vary as a result of party affiliation (republican v. democrats).

6 Second: Levels of Measurement Are both IV and DV nominal? Chi-Square Test If Yes, 22

7 SPSS and Chi-Square Open Chi-Square Data  Locate the variable “party” in the variable view of SPSS. Click the gray button in the column of “missing’  Define missing values “3, 4, 5, 9”

8 Descriptive  Crosstabs Click Statistic: Choose Chi-square Click Cells: select column percentages Click OK

9 Crosstabulation We can observe a difference between republicans and democrats. What was this difference really happened in a great population or it was something only existing in this sample?

10 Chi-Square Chi-Square Value (test statistic) Degrees of Freedom Significance Level

11 Significant Level (p-value, or alpha level).000 level of significance means: 1.Probability that results happened by chance < Chance of being wrong < The probability that the results are a “fluke.”

12 Significant level (cont’) Three commonly-used accepted significant levels p <.05 (SPSS default) p <.01 p <.001 The smaller the p-value, the more significant the result is said to be. The smaller the p-values, the more unlikely the result have occurred by chance. If you want to make extra sure that you reject the null only when you’re very likely to be correct, do you chose a large or small accepted p-value?

13 Table example % of attitude toward plans for U.S. troops in Iraq RepublicanDemocrat Keep troops in Iraq78.60%24.10% Bring troops home21.40%75.90%  2 (1, N=862) = , p <.001.

14 Chart example

15 Interpret the result The chi-square test showed that the attitude toward whether to keeping troops in Iraq or bring troops home significantly varied as a result of party affiliation,  2 (1, N=862) = , p <.001. A significantly large percentage of Republicans (78.6%) thought the U.S. should keep the troops in Iraq, whereas a significantly large percentage of Democrats (75.9%) thought the country should bring the troops home. What we have proposed: The attitude toward whether to keeping troops in Iraq or bring troops home would vary as a result of party affiliation (republican v. democrat).

16 Hypothesis and Null Hypothesis H1: The attitude toward whether to keeping troops in Iraq or bring troops home would vary as a result of party affiliation (republican v. democrat). (We want to detect a difference here.) Null: The attitude toward whether to keeping troops in Iraq or bring troops home would NOT vary as a result of party affiliation (republican v. democrat). (We don’t want to detect a difference here)

17 Reject the null The general goal of inferential statistical analysis is to REJECT THE NULL = Reject that there is no relationship between two variables

18 Type I Error (α error) When researchers successful reject the null, but if fact they should not. When researchers claims that there is a relationship between two variables but actually it doesn’t exists in reality. Plainly speaking, it occurs when we are observing a difference when in truth there is none.

19 Type I Error Example: Researcher found that Freshmen skip more classes than older students.” Reality: Freshmen don’t skip more classes.

20 Turn to page 336 of the text The larger the sample size, the smaller the chance of committing Type I error.

21 Probability of Committing a Type I error What’s the probability of committing a Type I error? The significance level (alpha risk, p value). If accepted p-value is.05, chances are 5 in 100 of committing a Type 1 error.

22 Type II Error When researchers failed to reject the null, but if fact they should. When researchers claims that there is no relationship between two variables but actually it does exist. Plainly speaking, it occurs when we are NOT observing a difference when in truth there is a different.

23 Type II error (β errors) Example Researcher found that diet is not related to heart disease. Reality: Diet is related to heart disease.

24

25 Reality What Researcher Does Rejects the Null Not Reject the Null Reject the Null Not Reject the Null X X Type I Error Type II Error

26 Revisit the crosstabulation We can observe a difference between republicans and democrats.

27 Revisit the Chi-square test Chi-Square Value (test statistic) Degrees of Freedom Significance Level N  2 (1, N=862) = , p <.001. We have successfully rejected the null because 1) data are consistent with predictions, and if 2) obtained p value less than accepted significance level Note: we always need test statistic, df, N to determine the significance level

28 Formula to calculator Chi-square   2 = (O - E) E 2 Observed value Expected value

29 Number of Scores Free to Vary (How many boxes do I have to fill in before you can fill in the rest?) Degree of freedom Republican Democrat Keep troop in Iraq Bring troops home 100 Total

How many boxes do I have to fill in before you can fill in the rest? 5 5 For an R x K Chi-Square DF= (rows-1) x (columns-1) (3-1) X (2-1) =2 Total

31 Chi-Square practice 1 Use the data set of “ChisquareData” Test the hypothesis: The attitude toward George W. Bush (q1) would vary as a result of party affiliation (party).

32 Report your findings for What is the percentage of republicans who approve the way Bush is handling his job as president? What is the percentage of Democrats who disapprove the way Bush is handling his job as president? Report the chi-square test statistics, degree of freedom, valid N, and significant level in a proper format. Can we reject the null for this hypothesis?

33 Chi-Square practice 2 Use the data set of “ChisquareData” to test the hypothesis: The attitude toward War in Iraq (q37) would vary as a result of whether or not people believe in Christianity (chr).

34 Report your findings for What is the percentage of Christian who think U.S. made a wrong decision in using military force against Iraq? What is the percentage of people who are not Christian and also think U.S. made a wrong decision in using military force against Iraq? Report the chi-square test statistics, degree of freedom, valid N, and significant level in a proper format. Can we reject the null for this hypothesis?

35 Answers to practice 1 What is the percentage of republicans who approve the way Bush is handling his job as president? 80.3% What is the percentage of Democrats who disapprove the way Bush is handling his job as president? 90.6% Report the chi-square test statistics, degree of freedom, valid N, and significant level in a proper format.  2 (1, N=841) = , p <.001. Can we reject the null for this hypothesis? Yes, the null can be reject at the.001 significant level.

36 Answers to practice 2 What is the percentage of Christian who think U.S. made a wrong decision in using military force against Iraq? 57.1% What is the percentage of people who are not Christian and also think U.S. made a wrong decision in using military force against Iraq? 89.7% Report the chi-square test statistics, degree of freedom, valid N, and significant level in a proper format.  2 (1, N=71) = 8.71, p <.01. Can we reject the null for this hypothesis? Yes, we can reject the null at the.01 significant level.