CHAPT 18 Resampling and Nonparametric Approaches to Data
- Slides: 71
CHAPT 18 Resampling and Nonparametric Approaches to Data & CHAPT 6 Categorical Data and Chi (Kahy) -Square 1
PARAMETRIC TESTS § PARAMETRIC tests are more accurate than NONPARAMETRIC tests and they have 3 assumptions (research). § 1. Random selection § 2. Independent of observation § 3. Sample is taken from a normal population with a normal distribution 2
NONPARAMETRIC STATISTICAL TESTS or distributionfree tests § These tests which also used for hypotheses testing are rely on less restrictive assumptions about populations than parametric tests. § Wilcoxon’s rank-sum test: § This test is often thought of as the distribution-free analogue of the t-test for two independent sample. § The man-whitney U Test: § This test is very similar to Wilcoxon’s rank-sum test 3
NONPARAMETRIC STATISTICAL TESTS or distributionfree tests § Kruskal-Wallis one way anova: § This test is direct generalization of the Wilcoxon’s rank-sum test to the case in which we have three or more independent groups. As such it is the distribution-free analogue of one way anova. 4
NONPARAMETRIC STATISTICAL TESTS or distributionfree tests § Friedman’s rank test for K correlated samples: This test was developed by the well-known economist Milton Friedman. It is the distribution-free analogue of the oneway repeated-measures Anova. It is closely related to a standard repeated-measure ANVA applied to ranks instead of raw scores (see data on page 680). 5
CHI (Kahy) SQURE test for goodness of fit 6
NONPARAMETRIC STATISTICAL TESTS § CHI SQURE is similar to frequency distribution (f ). The independent observation is the basic assumption for a chisquare hypothesis test. § It is used for comparative studies (use ranking). 7
NONPARAMETRIC STATISTICAL TESTS § Ex 1. Of the two leading brands of cola, which is preferred by most Pepsi Coke Americans? 8
CHI-SQURE test for goodness of fit §Ex 2. which psychotherapy technique is used by most psychologists? e. g. cognitive, behavioral, humanistic, CBT, psychodynamics, etc. 9
CHI-SQURE test for goodness of fit 10
11
§ The value of chi-square cannot be negative. § if the number of categories is increased, the critical value will decrease. 12
§ 2 c= Σ(fo-fe)² /fe § fo= observed frequency § fe= expected frequency § df=(R-1)(C-1) R is usually 2 for Chisquare test for independence (2 -1)=1 § R= # of Rows and C= # of Columns df=C-1 § f o = H 1 § fe = n/c = Ho fe = pn or where p is the proportion stated in the Null Hypothesis and n is the sample size. 13
Problem 1 § Ten years ago, only 15% (proportion) of the U. S. population consisted of people more than 65 years old. A researcher plans to use a sample of n = 300 people to determine whether the population distribution has changed during the past ten years. If a chi-square test is used to evaluate the data, what is the expected frequency for the older-than-65 category? 14
Problem 1 § Ten years ago, only 15% of the U. S. population consisted of people more than 65 years old. A researcher plans to use a sample of n = 300 people to determine whether the population distribution has changed during the past ten years. If a chi-square test is used to evaluate the data, what is the expected frequency (fe) for the older-than-65 category? Answer: 0. 15 X 300=45 § fe=p(n) 15
Problem 2 § A chi-square test for goodness of fit has df = 2. How many categories were used to classify the individuals in the sample? 16
Problem 2 § A chi-square test for goodness of fit has df = 2. How many categories were used to classify the individuals in the sample? § df=C-1 § 2=C-1 17
Problem 2. 1 § A researcher used a sample of n = 60 individuals to determine whethere any preferences among four brands of pizza. Each individual tastes all four brands and selects his/her favorite. If the data are evaluated with a chi-square test for goodness of fit using a =. 05, then how large does the chi-square statistic need to be to reject the null hypothesis? 18
Problem 2. 1 § A researcher used a sample of n = 60 individuals to determine whethere any preferences among four brands of pizza. Each individual tastes all four brands and selects his/her favorite. If the data are evaluated with a chi-square test for goodness of fit using a =. 05, then how large does the chi-square statistic need to be to reject the null hypothesis? Answer: >7. 82 see the critical values for chi-square on p. 691 19
Problem 3 Very tricky question § A sample of 100 people is classified by gender (male/female) and by whether or not they are registered voters. The sample consists of 80 females and 20 males, and has a total of 60 registered voters. If these data are used for a chisquare test for independence, what is the total number of females for the expected frequencies? 20
Problem 3 Very tricky question § A sample of 100 people is classified by gender (male/female) and by whether or not they are registered voters. The sample consists of 80 females and 20 males, and has a total of 60 registered voters. If these data are used for a chisquare test for independence, what is the total number of females for the expected frequencies? Answer: 80 § fe=p(n)=0. 8 X 100=80 21
THE CHI-SQUARE TEST FOR INDEPENDENCE (Pearson CHI SQURE) § The chi square statistic may also be used to test whethere is a relationship between two variables. In this situation, each individual in the sample is measured or classified on two separate variables. If the number of their categories don’t match then use df=(C -1)(C 2 -1) ex. next 1 22
Problem 4 § A chi-square test for independence is being used to evaluate the relationship between two variables, one of which is classified into three categories and the second of which is classified into four categories. The chi-square statistic for this test would have df equal to? 23
Problem 4 § A chi-square test for independence is being used to evaluate the relationship between two variables, one of which is classified into three categories and the second of which is classified into four categories. The chi-square statistic for this test would have df equal to? § Answer df=6 § df=(C -1)(C 2 -1) = (3 -1)(4 -1)=2 X 3=6 1 24
Problem 5 § A sample of 100 people is classified by gender (male/female) and by whether or not they are registered voters. The sample consists of 80 females and 20 males, and has a total of 60 registered voters. If these data were used for a chi-square test for independence, what is the expected frequency for males who are registered voters? 25
Problem 5 § A sample of 100 people is classified by gender (male/female) and by whether or not they are registered voters. The sample consists of 80 females and 20 males, and has a total of 60 registered voters. If these data were used for a chi-square test for independence, what is the expected frequency for males who are registered voters? Answer: p=20/100=0. 20 § fe=p(n)= 0. 20 X 60=12 0. 20 26
Problem 5. 5 § A sample of 100 people is classified by gender (male/female) and by whether or not they are registered voters. The sample consists of 80 females and 20 males, and has a total of 60 registered voters. If these data were used for a chi-square test for independence, what is the expected frequency for males who are NOT registered voters? Answer: p=20/100=0. 20 X 40=8 27
Problem 5. 6 § A researcher is using a chi-square test for independence to examine the relationship between TV preferences and gender for a sample of n = 100 children. Each child is asked to select his/her favorite from a fixed set of three TV shows and each child is classified as male or female. The chi-square statistic for this study would have df equal to …. . 28
§ Problem 5. 7 29
Problem 6 § A chi-square test for independence has df = 3. What is the total number of categories (cells in the matrix) that were used to classify individuals in the sample? 30
Problem 6 § A chi-square test for independence has df = 3. What is the total number of categories that were used to classify individuals in the sample? § Answer: 8 § df= (R-1)(C - 1) § 3= (2 -1)(4 - 1) 31
Problem 7 § A researcher is conducting a chi-square test for independence to evaluate the relationship between gender and preference for three different designs for a new automobile. Each individual in a sample of n = 30 males and n = 30 females selects a favorite design from the three choices. If the researcher obtains a chi -square statistic of c 2 = 4. 81, what is the appropriate statistical decision for the test? § Try a =. 05 and then a =. 01 32
Hypotheses testing (step 1) §Ho: fo=fe §H 1: fo ≠ fe SPSS: Asymp. Sig is an abbreviation for asymptotic significance, which means that he significance is very close to 0 because you're WAY out in the tail of the test! 33
Step 2 df=(R-1)(C-1) 34
Step 3 35
Step 4 36
Effect size=Phi-Coefficient use for 2 X 2 data matrix 37
Effect size=Cramer‘s V use for more than 2 X 2 data matrix § For Cramer’s V, the value of df* is the smaller of either (R-1) or (C-1). 38
Effect size=Cramer‘s V use for more than 2 X 2 data matrix § Under what conditions is Cramér’s V used to measure effect size for a chi-square test for independence? Answer: When either of the two variables consists of more than two categories 39
Problem 8 (one variable, eye color) § Distribution of Eye colors for a sample of n=40 individuals. § FYI From the chapter 2 Frequency Distribution § (X )eye colors (f ) frequencies § Blue 12 § Brown 21 § Green 3 § Other 4 see next slide for Chi square 40
Problem 8 § Distribution of Eye colors for a sample of n=40 individuals. § Frequency distribution Fo Blue Brown Green Others 12 21 3 4 41
Problem 8 § Distribution of Eye colors for a sample of n=40 individuals. § Frequency distribution Fo n=40 Fe Blue Brown Green Others 12 21 3 4 Blue Brown Green Others 10 10 42
The question for the hypothesis test is whethere any distribution of the four possible eye colors. Are any of the eye color distribution would be expected simply by chance? We will set alpha at α =. 05 § Step 1) H 0 : fo = fe no preference for any specific eye color H 1 : fo ≠ fe preference for specific eye color 43
Problem 8 § Distribution of Eye colors for a sample of n=40 individuals. § Frequency distribution Blue fo fe Brown Green Others 12 21 3 4 10 10 44
Step 2 df=(R-1)(C-1) 45
46
47
Problem 9 § A psychologist examining art appreciation selected an abstract painting that had no obvious top or bottom. Hangers were placed on the painting so that it could be hung with any one of the four sides at the top. The painting was shown to a sample of n=50 participants, and each was asked to hung the painting in the orientation that looked correct. The following data indicate how many people choose each of the four sides to be placed at the top. fo Top up (correct) Bottom up Left side up Right side up 18 7 8 17 48
Problem 9 fo Top up (correct) Bottom up Left side up Right side up 18 17 7 8 Top up (correct) Bottom up Left side up Right side up 12. 5 n= 50 fe 12. 5 49
50
51
52
53
Problem 9 § The question for the hypothesis test is whethere any preferences among the four possible orientations. Are any of the orientations selected more (or less) often than would be expected simply by chance? § We will set alpha at α =. 05 54
Problem 9 § Step 1) H : fo=fe no preference for any specific 0 orientation H : fo≠fe 1 preference for specific orientation 55
Step 2 df=(R-1)(C-1) 56
57
58
59
§Special case of chisquare statistic next 60
THE CHI-SQUARE TEST FOR INDEPENDENCE (Pearson CHI SQURE) § The chi square statistic may also be used to test whethere is a relationship between two variables. In this situation, each individual in the sample is measured or classified on two separate variables. § Example next: fe=(fc. f. R)/n 61
Problem 10 § A researcher selects a sample of 100 people to investigate the relationship between gender (male/female) and registering to vote (registered/not registered). The sample consists of 40 females, of whom 30 are registered voters, and 60 males, of whom 40 are registered voters. If these data were used for a chi-square test for independence, what is the expected frequency for registered females? 62
Problem 10 § A researcher selects a sample of 100 people to investigate the relationship between gender (male/female) and registering to vote. The sample consists of 40 females, of whom 30 are registered voters, and 60 males, of whom 40 are registered voters. If these data were used for a chi-square test for independence, what is the expected frequency for registered females? § Answer: 28 fe=(fc. f. R)/n see next slide fe-(70 x 40)/100=28 63
Problem 10 registered not registered FEMALES 30 10 MALES 40 20 f. C = 7 0 fc=30 f. R = 40 f. R=60 64
65
Problem 11 § An insurance investigator has observed the people with some astrological signs tend to be safer drivers than the people with other signs. Using insurance records, the investigator classified 200 people according to their astrological signs and whether or not they were involved in a car accident during the previous 12 months. The data are as follows: 3 X 2 Accident n=40 No Accident 10 70 10 20 40 50 N=160 Total=200 Do the data indicate a significant relationship between sign and accidents? Test at the. 05 level of significance. 66
67
Problem 11 Males and females Willingness to use mental health services (Hypotheses testing) PROBABLY NO MAYBE PROBABLY YES MALES 17 32 11 FEMALES 13 43 34 30 75 45 68
69
70
§Please check your textbook for the critical values. 71
- Parametric test and non parametric test
- Parametric and nonparametric statistics
- Nonparametric test
- Parametric vs nonparametric test
- Nonparametric test
- Nonparametric methods
- Douwe postmus
- Data quality and data cleaning an overview
- Data integration problems approaches and perspectives
- A comparison of approaches to large-scale data analysis
- What is wad approach
- A company's resources and capabilities represent
- Semantic structure of a word
- What is expressive criticism
- Formalist-substantivist debate
- Content based task based and participatory approaches
- Approaches to health promotion
- Ib approaches to teaching and learning
- Essay-translation approach example
- Mode of discourse in register
- What is quasi experimental research
- Inductive method of teaching
- Historical changeability of semantic structure
- Ap psychology module 2 review
- Develop new approaches to public governance and engagement
- Vendor rating techniques
- Organizational communication: approaches and processes
- Pricing considerations and approaches
- Learning approaches theory and practice
- Diachronic and synchronic approaches of language study
- Unit 1 psychology's history and approaches
- Power bi governance and deployment approaches
- Research philosophies and approaches
- Approaches meets masters
- How did wilhelm wundt break down consciousness
- Cas treatment approaches
- Trait theory of leadership
- A remarkable turnaround case study
- External locus of control psychology definition
- Physical spatial approach in tourism planning
- What are the three approaches to security
- To what does steinbeck compare the town?
- Mischief rule of interpretation
- Step wise project planning
- Approaches to develop social factors
- School approaches to the education of eal students
- Nnn poem
- Policy implementation approaches
- Trait theory
- General pricing approaches
- Personality in greek word
- Social cognitive approaches to personality
- Valuation approach
- Approaches meets masters
- No gyro approach
- Literary approaches
- Applying critical approaches to literary analysis quiz
- Literary approaches structuralism/formalism
- Limits involving infinity
- Ethical theories
- Approaches to systems development
- Dunlop system approach
- Converging ils approaches
- A framework for thinking ethically
- Manpower requirement approach in educational planning
- Classic theories of economic development: four approaches
- Applying critical approaches to literary analysis quiz
- Corpus approaches to discourse analysis
- Theories of group living in residential care
- Going rate approach
- Marketing research approaches to demand estimation
- Os perceptual gap map