home *** CD-ROM | disk | FTP | other *** search
/ PC Home 11 / PC_HOME_11.ISO / general / maths / gcemath / amc / am1408b1.cha < prev    next >
Encoding:
Text File  |  1994-07-12  |  6.2 KB  |  283 lines

  1. @CHA PROG=AM1408B.CHA
  2. @LAB:SCREEN18
  3. .SCR 0
  4. .SNA(*(.INF 39)0*)
  5. .COL 7,0
  6. .LOC 2,46(*18*)
  7. .COL 0,3
  8. .LOC 5,11(* Summary *)
  9. .PAU(**)#4
  10. .COL 12,0
  11. .LOC 7,15(*NULL HYPOTHESIS:*)
  12. .PAU(**)#4
  13. .COL 10,0
  14. .LOC 7,34(*the categories are independent*)
  15. .PAU(**)#4
  16. .LOC 9,15(*Find the probability for each row and for each column.*)
  17. .PAU(**)#4
  18. .LOC 11,15(*Calculate from them the expected frequency for each cell.*)
  19. .PAU(**)#4
  20. .LOC 13,15(*Combine cells where necessary.*)
  21. .PAU(**)#4
  22. .LOC 15,15(*Calculate the  O - E  and hence find  X²*)
  23. .PAU(**)#4
  24. .LOC 17,15(*Calculate the degrees of freedom using  (r - 1)(c - 1)*)
  25. .PAU(**)#4
  26. .LOC 19,15(*Enter the X² table at the appropriate row and level.*)
  27. .PAU(**)#4
  28. .LOC 21,15(*If X² ≥ table value  then reject the Null Hypothesis.*)
  29. .PAU(**)#4
  30. .COL 0,3
  31. .LOC 24,64(*SPACE >>*)
  32. .PAU(**)
  33. @LAB:SCREEN19
  34. .SCR 2
  35. .SNA(*(.INF 39)2*)
  36. .LOC 2,46(*19*)
  37. .LOC 5,11(*Another example:*)
  38. .PAU(**)#4
  39. .LOC 7,15(*1000 pupils were given a series of tests at two levels*)
  40. .LOC 9,15(*of difficulty. Establish whether the Tests and the Levels*)
  41. .LOC 11,15(*are statistically independent at the 5 % level.*)
  42. .LOC 13,25(*Test A   Test B   Test C   Totals*)
  43. .LOC 15,15(*Level 1*)
  44. .LOC 17,15(*Level 2*)
  45. .LOC 19,15(*Totals*)
  46. .DRA (*C1BM180,96M180,152BM252,96M252,152BM324,96M324,152BM396,96M396,152BM112,108M458,108BM112,140M458,140*)
  47. .LOC 15,26(*250*)
  48. .LOC 15,35(*200*)
  49. .LOC 15,44(*150*)
  50. .LOC 15,54(*600*)
  51. .LOC 17,26(*150*)
  52. .LOC 17,35(*100*)
  53. .LOC 17,44(*150*)
  54. .LOC 17,54(*400*)
  55. .LOC 19,26(*400*)
  56. .LOC 19,35(*300*)
  57. .LOC 19,44(*300*)
  58. .LOC 19,53(*1000*)
  59. .LOC 21,15(*Null Hypothesis:  the Tests and Levels are independent*)
  60. .SPE PLAY (*AM140816.SPE*) WAIT
  61. .PAU(**)#4
  62. .USE PROG=PAUSE.USE
  63. .WIP (4,2)-(23,79) #17
  64. .LOC 2,46(*19a*)
  65. .PAU(**)#2
  66. .LOC 6,15(*Calculate the expected frequencies:*)
  67. .DRA (*C1BM81,65M543,65*)
  68. .DRA (*C1BM81,168M543,168*)
  69. .DRA (*C1BM152,56M152,168*)
  70. .DRA (*C1BM240,56M240,168*)
  71. .LOC 8,13(*Test*)
  72. .LOC 8,23(*Level*)
  73. .LOC 8,41(*Expected frequency*)
  74. .LOC 10,14(*A*)
  75. .PAU(**)#2
  76. .LOC 10,25(*1*)
  77. .PAU(**)#2
  78. .LOC 10,55(*=   240*)
  79. .PUT 328,70 PART=20
  80. .PAU(**)#2
  81. .LOC 12,14(*B*)
  82. .PAU(**)#2
  83. .LOC 12,25(*1*)
  84. .PAU(**)#2
  85. .LOC 12,55(*=   180*)
  86. .PUT 328,86 PART=21
  87. .PAU(**)#2
  88. .LOC 14,14(*C*)
  89. .PAU(**)#2
  90. .LOC 14,25(*1*)
  91. .PAU(**)#2
  92. .LOC 14,55(*=   180*)
  93. .PUT 328,102 PART=21
  94. .PAU(**)#2
  95. .LOC 16,14(*A*)
  96. .PAU(**)#2
  97. .LOC 16,25(*2*)
  98. .PAU(**)#2
  99. .LOC 16,55(*=   160*)
  100. .PUT 328,118 PART=22
  101. .PAU(**)#2
  102. .LOC 18,14(*B*)
  103. .PAU(**)#2
  104. .LOC 18,25(*2*)
  105. .PAU(**)#2
  106. .LOC 18,55(*=   120*)
  107. .PUT 328,134 PART=23
  108. .PAU(**)#2
  109. .LOC 20,14(*C*)
  110. .PAU(**)#2
  111. .LOC 20,25(*2*)
  112. .PAU(**)#2
  113. .LOC 20,55(*=   120*)
  114. .PUT 328,150 PART=23
  115. .PAU(**)#4
  116. .USE PROG=PAUSE.USE
  117. .WIP (4,2)-(23,79)
  118. .DRA (*C1BM171,65M543,65*)
  119. .DRA (*C1BM171,56M171,128*)
  120. .DRA (*C1BM217,65M217,128*)
  121. .DRA (*C1BM263,56M263,128*)
  122. .DRA (*C1BM309,65M309,128*)
  123. .DRA (*C1BM355,56M355,128*)
  124. .DRA (*C1BM401,65M401,128*)
  125. .DRA (*C1BM447,56M447,128*)
  126. .DRA (*C1BM493,65M493,128*)
  127. .DRA (*C1BM173,56M173,128*)
  128. .DRA (*C1BM265,56M265,128*)
  129. .DRA (*C1BM357,56M357,128*)
  130. .DRA (*C1BM449,56M449,128*)
  131. .DRA (*C1BM81,83M543,83*)
  132. .DRA (*C1BM81,116M543,116*)
  133. .LOC 8,25(*Test A*)
  134. .PAU(**)#2
  135. .LOC 10,25(*O*)
  136. .PAU(**)#2
  137. .LOC 12,12(*Level 1*)
  138. .LOC 12,24(*250*)
  139. .PAU(**)#2
  140. .LOC 14,12(*Level 2*)
  141. .LOC 14,24(*150*)
  142. .PAU(**)#2
  143. .LOC 16,12(*Totals*)
  144. .LOC 16,24(*400*)
  145. .PAU(**)#2
  146. .LOC 10,30(*E*)
  147. .PAU(**)#2
  148. .LOC 12,29(*240*)
  149. .PAU(**)#2
  150. .LOC 14,29(*160*)
  151. .PAU(**)#2
  152. .LOC 16,29(*400*)
  153. .PAU(**)#2
  154. .LOC 8,37(*Test B*)
  155. .PAU(**)#2
  156. .LOC 10,37(*O*)
  157. .PAU(**)#2
  158. .LOC 12,36(*200*)
  159. .PAU(**)#2
  160. .LOC 14,36(*100*)
  161. .PAU(**)#2
  162. .LOC 16,36(*300*)
  163. .PAU(**)#2
  164. .LOC 10,42(*E*)
  165. .PAU(**)#2
  166. .LOC 12,41(*180*)
  167. .PAU(**)#2
  168. .LOC 14,41(*120*)
  169. .PAU(**)#2
  170. .LOC 16,41(*300*)
  171. .PAU(**)#2
  172. .LOC 8,48(*Test C*)
  173. .PAU(**)#2
  174. .LOC 10,48(*O*)
  175. .PAU(**)#2
  176. .LOC 12,47(*150*)
  177. .PAU(**)#2
  178. .LOC 14,47(*150*)
  179. .PAU(**)#2
  180. .LOC 16,47(*300*)
  181. .PAU(**)#2
  182. .LOC 10,53(*E*)
  183. .PAU(**)#2
  184. .LOC 12,52(*180*)
  185. .PAU(**)#2
  186. .LOC 14,52(*120*)
  187. .PAU(**)#2
  188. .LOC 16,52(*300*)
  189. .PAU(**)#2
  190. .LOC 8,60(*Totals*)
  191. .PAU(**)#2
  192. .LOC 10,60(*O*)
  193. .PAU(**)#2
  194. .LOC 12,59(*600*)
  195. .PAU(**)#2
  196. .LOC 14,59(*400*)
  197. .PAU(**)#2
  198. .LOC 16,58(*1000*)
  199. .PAU(**)#2
  200. .LOC 10,65(*E*)
  201. .PAU(**)#2
  202. .LOC 12,64(*600*)
  203. .PAU(**)#2
  204. .LOC 14,64(*400*)
  205. .PAU(**)#2
  206. .LOC 16,64(*1000*)
  207. .PAU(**)#2
  208. .PAU(**)#4
  209. .USE PROG=PAUSE.USE
  210. .LOC 18,11(*Calculate*)
  211. .PUT 168,133 PART=6
  212. .LOC 18,27(*=   19.10*)
  213. .PAU(**)#4
  214. .USE PROG=PAUSE.USE
  215. .WIP (4,2)-(23,79) #4
  216. .LOC 2,46(*19b*)
  217. .PAU(**)#2
  218. .LOC 16,11(*There are 2 rows and 3 columns giving*)
  219. .PUT 392,119 PART=7
  220. .LOC 16,53(*=  1 x 2  =  2*)
  221. .PAU(**)#4
  222. .LOC 18,11(*Enter the*)
  223. .PUT 168,133 PART=6
  224. .LOC 18,25(*table with*)
  225. .PUT 288,135 PART=7
  226. .LOC 18,39(*= 2 and level 5 %*)
  227. .PAU(**)#4
  228. .LOC 18,60(*»   5.99*)
  229. .PAU(**)#4
  230. .LOC 20,11(*19.10  ≥  5.99  so we reject the Null Hypothesis.*)
  231. .PAU(**)#4
  232. .LOC 22,11(*Conclusion:   the Tests and the Levels are not independent*)
  233. .DRA (*C1BM81,177M543,177*)
  234. .PUT 500,187 PART=2 PSET
  235. @SIN(*"C"=L:SCREEN20,"R"=L:-SCREEN19,"c"=L:SCREEN20,"r"=L:-SCREEN19*)
  236. @LAB:SCREEN20
  237. .COL 0,0
  238. .SCR 1
  239. .SNA(*(.INF 39)1*)
  240. .COL 8
  241. .PAL 1
  242. .LOC 2,23(*20*)
  243. .LOC 7,5(*At this point in the full version*)
  244. .LOC 9,9(*of the program the user is*)
  245. .LOC 11,5(*requested to complete a worksheet*)
  246. .LOC 13,6(*for this section, entering the*)
  247. .LOC 15,7(*results via the keyboard onto*)
  248. .LOC 17,9(*the computer for checking.*)
  249. .PAU(**)#4
  250. .LOC 20,6(*Type C <enter> to continue.*)
  251. .SET #10(*SCREEN21*)
  252. .USE PROG=PRESSC.USE
  253. @LAB:SCREEN21
  254. .COL 0,0
  255. .SCR 1
  256. .SNA(*(.INF 39)1*)
  257. .COL 8
  258. .PAL 1
  259. .LOC 2,23(*21*)
  260. .LOC 6,4(*However, in this demonstration the*)
  261. .LOC 8,7(*results checking facility is*)
  262. .LOC 10,4(*unavailable, so you will continue to*)
  263. .LOC 12,6(*the next phase of the tutorial.*)
  264. .PAU(**)#4
  265. .LOC 18,6(*Type C <enter> to continue.*)
  266. .SET #10(*SCREEN22Z*)
  267. .USE PROG=PRESSC.USE
  268. @LAB:SCREEN22Z
  269. .WIP (20,2)-(23,39)
  270. .PAU(**) #4
  271. .COL 1,
  272. .LOC 14,8(*Do you wish to:*)
  273. .COL 2,
  274. .LOC 16,4(*(C) continue to the next Part*)
  275. .LOC 18,4(*(R) return to the Contents page*)
  276. .COL 1,
  277. .LOC 20,8(*Please type C or R >*)
  278. .COL 3,
  279. @SIN (*"C"=C:AM1408C.CHA,"c"=C:AM1408C.CHA,"R"=L:BACKB,"r"=L:BACKB*)
  280. @LAB:BACKB
  281. @GOB:SCREEN09 PROG=AM1408
  282.  
  283.