Calculating the 1 way 2 and 2 way
- Slides: 27
Calculating the 1 -way χ2 and 2 -way χ2 Statistics Using statistics in small-scale language education research Jean Turner © Taylor & Francis 2014
1 -way χ2 The fabricated Halloween data are used in this discussion—questionnaire data from 300 students regarding whether they plan to attend their school Halloween party. The first step in statistical logic is… © Taylor & Francis 2014
State the formal research hypotheses. � Null: There is no statistically significant pattern of response to the questionnaire. (There is no prevailing tendency. ) � Alternative: There is a statistically significant pattern of response to the questionnaire. (There is a prevailing tendency. ) © Taylor & Francis 2014
Set alpha. � Alpha is set at. 01 because people may make decisions about allocation of resources based on the findings. © Taylor & Francis 2014
Propose the statistic to use in the analysis. Hmmm…. 1) There’s a single nominal variable. 2) The data are frequency counts. 3) The researcher wants to know if there’s a statistically significant pattern of response to the question. Sounds like the 1 -way χ2 is appropriate. © Taylor & Francis 2014
Collect the data. � Here’s a summary table of the data. Number of respondents who indicated “yes” Number of respondents who indicated “no” 61 65 Number of participants who indicated “I haven’t decided yet” 84 Number of participants who chose not to respond to the question 90 © Taylor & Francis 2014
Check the assumptions. � The independent variable is nominal. OK � The data are frequency counts. OK � Each piece of information is independent from every other (no influenced votes!) This seems to be OK. � Each individual is included in only one level of a variable. OK � df > 1, so all expected frequencies must be greater than or equal to 5. (Three hundred people participated; expected frequency is 300/4 = 75. We’re OK with this assumption too. ) © Taylor & Francis 2014
Calculate the observed value of the statistic. Cell fo fe A 61 75 B 65 75 C D 84 90 75 75 fo ‒ fe (fo ‒ fe)2 / fe © Taylor & Francis 2014
Cell fo A 61 fo ‒ (fo ‒ fe)2 fe 75 ‒ 14 B 65 75 ‒ 10 C D 84 90 75 +9 75 +15 fe (fo ‒ fe)2 / fe © Taylor & Francis 2014
Cell fo A 61 fo ‒ (fo ‒ fe)2 fe 75 ‒ 14 196 B 65 75 ‒ 10 100 C D 84 90 75 +9 75 +15 81 225 fe (fo ‒ fe)2 / fe © Taylor & Francis 2014
Cell fo A 61 fo ‒ (fo ‒ fe)2 fe 75 ‒ 14 196 B 65 75 ‒ 10 100/75 = 1. 33 C D 84 90 75 +9 75 +15 81 225 81/75 = 1. 08 225/75 = 3 fe (fo ‒ fe)2 / fe 196/75 = 2. 613 © Taylor & Francis 2014
The sum of the last column is χ2 observed. � χ2 observed = 8. 023 © Taylor & Francis 2014
Calculating 2 -way χ2 �Research question: Is there a statistically significant relationship between teachers’ degree of scoring agreement depending on how well they know their students? © Taylor & Francis 2014
State the formal research hypotheses. � Null hypothesis: There is no statistically significant relationship between the variables. � Alternative hypothesis: There is a statistically significant relationship between the variables. © Taylor & Francis 2014
Set alpha. � Alpha is set at. 01 because the researcher believes important decisions may be made on the basis of the findings. © Taylor & Francis 2014
Propose the statistic to use in the analysis. 1) There are two nominal variables. 2) The data are frequency counts. 3) The researcher wants to know if there’s a statistically significant relationship between the two variables. Sounds like the 2 -way χ2 statistic is appropriate. © Taylor & Francis 2014
Check the assumptions. � The independent variable and the moderator variable are nominal. OK � The data are frequency counts. OK � Each piece of information is independent of every other. (Depends on how the data were collected. ) I think this is OK. � Each individual is included in only one level of a variable. OK � df > 1, so all expected frequencies must be greater than or equal to 5. Must be calculated and checked. © Taylor & Francis 2014
Calculate the observed value. Two raters agree 1 st semester Ss 2 nd semester Ss 3 rd semester Ss 13 (cell A) T who knows Ss rates higher 6 (cell B) T who knows Ss rates lower 5 (cell C) 11 (cell D) 17 (cell E) 13 (cell F) 6 10 (cell G) (cell H) 19 (cell I) © Taylor & Francis 2014
Two raters agree 1 st semester 13 Ss (cell A) T who knows Ss rates higher 6 (cell B) T who knows Ss rates lower 5 (cell C) Marginals for the rows 24 2 nd 11 semester Ss (cell D) 17 (cell E) 13 (cell F) 41 3 rd 6 semester Ss (cell G) 10 (cell H) 19 (cell I) 35 Marginals for the columns 33 37 N = 100 30 © Taylor & Francis 2014
Cell fo A B C D E F G H I fe fo ‒ fe (fo ‒ fe)2/ fe 13 6 5 11 17 13 6 10 19 © Taylor & Francis 2014
Cell fo fe A B C D E F G H I 13 6 5 11 17 13 6 10 19 (24)(30) / 100 = (24)(33) / 100 = (24)(37) / 100 = (41)(30) / 100 = (41)(33) / 100 = (41)(37) / 100 = (35)(30) / 100 = (35)(33) / 100 = (35)(37) / 100 = fo ‒ fe (fo ‒ fe)2 © Taylor & Francis 2014 (fo ‒ fe)2/ fe
Cell fo fe A 13 (24)(30) / 100 = 7. 20 B 6 (24)(33) / 100 = 7. 92 C 5 (24)(37) / 100 = 8. 88 D 11 (41)(30) / 100 = 12. 30 E 17 (41)(33) / 100 = 13. 53 F 13 (41)(37) / 100 = 15. 17 G 6 (35)(30) / 100 = 10. 50 H 10 (35)(33) / 100 = 11. 55 I 19 (35)(37) / 100 = 12. 95 fo ‒ fe (fo ‒ fe)2/ fe © Taylor & Francis 2014
Cell fo fe fo ‒ fe (fo ‒ fe)2 A 13 (24)(30) / 100 = 7. 20 13 – 7. 20 = 5. 80 B 6 (24)(33) / 100 = 7. 92 6 – 7. 92 = ‒ 1. 92 C 5 (24)(37) / 100 = 8. 88 5 – 8. 88 = ‒ 3. 88 D 11 (41)(30) / 100 = 12. 30 11 – 12. 30 = ‒ 1. 30 E 17 (41)(33) / 100 = 13. 53 17 – 13. 53 = 3. 47 F 13 (41)(37) / 100 = 15. 17 13 – 15. 17 = ‒ 2. 17 G 6 (35)(30) / 100 = 10. 50 6 – 10. 50 = ‒ 4. 50 H 10 (35)(33) / 100 = 11. 55 10 – 11. 55 = ‒ 1. 55 I 19 (35)(37) / 100 = 12. 95 19 – 12. 95 = 6. 05 © Taylor & Francis 2014 (fo ‒ fe)2/ fe
Cell fo fe fo ‒ fe (fo ‒ fe)2/ fe A 13 (24)(30) / 100 =7. 20 13 – 7. 20 = 5. 80 33. 64 B 6 (24)(33) / 100 = 7. 92 6 – 7. 92 = ‒ 1. 92 3. 69 C 5 (24)(37) / 100 = 8. 88 5 – 8. 88 = ‒ 3. 88 15. 05 D 11 (41)(30) / 100 = 12. 30 11 – 12. 30 = ‒ 1. 30 1. 69 E 17 (41)(33) / 100 = 13. 53 17 – 13. 53 = 3. 47 F 13 (41)(37) / 100 = 15. 17 13 – 15. 17 = ‒ 2. 17 4. 71 G 6 (35)(30) / 100 = 10. 50 6 – 10. 50 = ‒ 4. 50 H 10 (35)(33) / 100 = 11. 55 10 – 11. 55 = ‒ 1. 55 2. 40 I 19 (35)(37) / 100 = 12. 95 19 – 12. 95 = 6. 05 12. 04 20. 25 36. 60 © Taylor & Francis 2014
Cell fo fe fo ‒ fe (fo ‒ fe)2/ fe A 13 (24)(30) / 100 =7. 20 13 – 7. 20 = 5. 80 33. 64 / 7. 20 = 4. 67 B 6 (24)(33) / 100 = 7. 92 6 – 7. 92 = ‒ 1. 92 3. 69 / 7. 92 =. 47 C 5 (24)(37) / 100 = 8. 88 5 – 8. 88 = ‒ 3. 88 15. 05 / 8. 88 = 1. 69 D 11 (41)(30) / 100 = 12. 30 11 – 12. 30 = ‒ 1. 30 1. 69 / 12. 30 =. 14 E 17 (41)(33) / 100 = 13. 53 17 – 13. 53 = 3. 47 12. 04 / 13. 53 =. 89 F 13 (41)(37) / 100 = 15. 17 13 – 15. 17 = ‒ 2. 17 4. 71 / 15. 17 =. 31 G 6 (35)(30) / 100 = 10. 50 6 – 10. 50 = -4. 50 20. 25 / 10. 50 = 1. 93 H 10 (35)(33) / 100 = 11. 55 10 – 11. 55 = ‒ 1. 55 2. 40 / 11. 55 =. 21 I 19 (35)(37) / 100 = 12. 95 19 – 12. 95 = 6. 05 36. 60 / 12. 95 = 2. 83 12. 04 20. 25 36. 60 © Taylor & Francis 2014
Cell fo fe fo ‒ fe (fo ‒ fe)2/ fe A 13 (24)(30) / 100 =7. 20 13 – 7. 20 = 5. 80 33. 64 / 7. 20 = 4. 67 B 6 (24)(33) / 100 = 7. 92 6 – 7. 92 = ‒ 1. 92 3. 69 / 7. 92 =. 47 C 5 (24)(37) / 100 = 8. 88 5 – 8. 88 = -3. 88 15. 05 / 8. 88 = 1. 69 D 11 (41)(30) / 100 = 12. 30 17 (41)(33) / 100 = 13. 53 13 (41)(37) / 100 = 15. 17 6 (35)(30) / 100 = 10. 50 10 (35)(33) / 100 = 11. 55 19 (35)(37) / 100 = 12. 95 11 – 12. 30 = ‒ 1. 30 1. 69 / 12. 30 =. 14 17 – 13. 53 = 3. 47 12. 04 / 13. 53 =. 89 13 – 15. 17 = ‒ 2. 17 4. 71 / 15. 17 =. 31 6 – 10. 50 = ‒ 4. 50 20. 25 / 10. 50 = 1. 93 10 – 11. 55 = ‒ 1. 55 2. 40 / 11. 55 =. 21 19 – 12. 95 = 6. 05 36. 60 / 12. 95 = 2. 83 E F G H I χ2 = ∑(fo ‒ fe)2/ fe = 13. 14 © Taylor & Francis 2014
Using R to calculate 2 -way χ2 � Enter the values for the first variable. x = c(1, 1, 1, 3, 2, 2, 1, 1, 2, 3, 2, 2, 3, 1, 3, 2, 2, 2, 1, 3, 2, 1, 2, 2, 3, 1, 1, 3, 2, 3, 3, 2, 2, 3, 2, 2, 1, 3, 3, 2, 1, 1, 2, 2, 3, 3, 3, 2, 2, 1, 2, 2, 1, 3, 3, 2, 2, 3, 3, 2, 3, 1, 1, 3) � Enter the values for the second variable. y = c(1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3) � chisq. test (x, y) ◦ χ2 = 13. 1338, df = 4, p-value = 0. 01064 © Taylor & Francis 2014
- Frequency trig
- Thread binary tree
- Perbedaan two way anova dan one way anova
- The old way and the new way
- How to calculate distance
- Calculating speed
- How to get speed from distance and time
- What is intake and output
- Calculate kb
- Calculating iv infusion rate
- Speed distance time worksheet
- Formula of distance speed and time
- Hát kết hợp bộ gõ cơ thể
- Frameset trong html5
- Bổ thể
- Tỉ lệ cơ thể trẻ em
- Gấu đi như thế nào
- Thang điểm glasgow
- Chúa yêu trần thế alleluia
- Môn thể thao bắt đầu bằng từ chạy
- Thế nào là hệ số cao nhất
- Các châu lục và đại dương trên thế giới
- Công thức tiính động năng
- Trời xanh đây là của chúng ta thể thơ
- Mật thư anh em như thể tay chân
- Phép trừ bù
- Phản ứng thế ankan
- Các châu lục và đại dương trên thế giới