Advertisement
Guest User

Untitled

a guest
May 25th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.53 KB | None | 0 0
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "code",
  5. "execution_count": 9,
  6. "metadata": {
  7. "collapsed": false
  8. },
  9. "outputs": [],
  10. "source": [
  11. "data_1 <- read.csv('results/fractionSolved_cliqueChain/network/up_to_5_19.csv', sep='\\t')"
  12. ]
  13. },
  14. {
  15. "cell_type": "code",
  16. "execution_count": 3,
  17. "metadata": {
  18. "collapsed": false
  19. },
  20. "outputs": [
  21. {
  22. "name": "stdout",
  23. "output_type": "stream",
  24. "text": [
  25. "[1] \"one-sided t test of fraction solved (lowq < highq)\"\n"
  26. ]
  27. }
  28. ],
  29. "source": [
  30. "print('one-sided t test of fraction solved (lowq < highq)')"
  31. ]
  32. },
  33. {
  34. "cell_type": "code",
  35. "execution_count": 10,
  36. "metadata": {
  37. "collapsed": false
  38. },
  39. "outputs": [
  40. {
  41. "data": {
  42. "text/plain": [
  43. "\n",
  44. "\tWelch Two Sample t-test\n",
  45. "\n",
  46. "data: data_1$lowq and data_1$highq\n",
  47. "t = -1.0595, df = 241.67, p-value = 0.1452\n",
  48. "alternative hypothesis: true difference in means is less than 0\n",
  49. "95 percent confidence interval:\n",
  50. " -Inf 0.03661528\n",
  51. "sample estimates:\n",
  52. "mean of x mean of y \n",
  53. "0.3360656 0.4016393 \n"
  54. ]
  55. },
  56. "execution_count": 10,
  57. "metadata": {},
  58. "output_type": "execute_result"
  59. }
  60. ],
  61. "source": [
  62. "t.test(data_1$lowq, data_1$highq, alternative='less')"
  63. ]
  64. },
  65. {
  66. "cell_type": "code",
  67. "execution_count": 7,
  68. "metadata": {
  69. "collapsed": false
  70. },
  71. "outputs": [
  72. {
  73. "name": "stdout",
  74. "output_type": "stream",
  75. "text": [
  76. "[1] \"--------------------------------------------------------------------------------------------------------------\"\n"
  77. ]
  78. }
  79. ],
  80. "source": [
  81. "print('--------------------------------------------------------------------------------------------------------------')"
  82. ]
  83. },
  84. {
  85. "cell_type": "code",
  86. "execution_count": 13,
  87. "metadata": {
  88. "collapsed": false
  89. },
  90. "outputs": [],
  91. "source": [
  92. "data_2 <- read.csv('results/fractionSolved_cliqueChain/network/up_to_5_19_solved.csv', sep='\\t')"
  93. ]
  94. },
  95. {
  96. "cell_type": "code",
  97. "execution_count": 12,
  98. "metadata": {
  99. "collapsed": false
  100. },
  101. "outputs": [
  102. {
  103. "name": "stdout",
  104. "output_type": "stream",
  105. "text": [
  106. "[1] \"one-sided t test of #(solved to Red)/#(solved) (lowq < highq)\"\n"
  107. ]
  108. }
  109. ],
  110. "source": [
  111. "print('one-sided t test of #(solved to Red)/#(solved) (lowq < highq)')"
  112. ]
  113. },
  114. {
  115. "cell_type": "code",
  116. "execution_count": 14,
  117. "metadata": {
  118. "collapsed": false
  119. },
  120. "outputs": [
  121. {
  122. "data": {
  123. "text/plain": [
  124. "\n",
  125. "\tWelch Two Sample t-test\n",
  126. "\n",
  127. "data: data_2$lowq and data_2$highq\n",
  128. "t = -1.7262, df = 90.992, p-value = 0.04385\n",
  129. "alternative hypothesis: true difference in means is less than 0\n",
  130. "95 percent confidence interval:\n",
  131. " -Inf -0.006352627\n",
  132. "sample estimates:\n",
  133. "mean of x mean of y \n",
  134. "0.5531915 0.7234043 \n"
  135. ]
  136. },
  137. "execution_count": 14,
  138. "metadata": {},
  139. "output_type": "execute_result"
  140. }
  141. ],
  142. "source": [
  143. "t.test(data_2$lowq, data_2$highq, alternative='less')"
  144. ]
  145. },
  146. {
  147. "cell_type": "code",
  148. "execution_count": 15,
  149. "metadata": {
  150. "collapsed": false
  151. },
  152. "outputs": [
  153. {
  154. "name": "stdout",
  155. "output_type": "stream",
  156. "text": [
  157. "[1] \"--------------------------------------------------------------------------------------------------------------\"\n"
  158. ]
  159. }
  160. ],
  161. "source": [
  162. "print('--------------------------------------------------------------------------------------------------------------')"
  163. ]
  164. },
  165. {
  166. "cell_type": "code",
  167. "execution_count": 16,
  168. "metadata": {
  169. "collapsed": true
  170. },
  171. "outputs": [],
  172. "source": [
  173. "data_3 <- read.csv('results/fractionSolved_cliqueChain/network/up_to_5_19_all.csv', sep='\\t')"
  174. ]
  175. },
  176. {
  177. "cell_type": "code",
  178. "execution_count": 17,
  179. "metadata": {
  180. "collapsed": false
  181. },
  182. "outputs": [
  183. {
  184. "name": "stdout",
  185. "output_type": "stream",
  186. "text": [
  187. "[1] \"one-sided t test of #(solved to Red)/#(all) (lowq < highq)\"\n"
  188. ]
  189. }
  190. ],
  191. "source": [
  192. "print('one-sided t test of #(solved to Red)/#(all) (lowq < highq)')"
  193. ]
  194. },
  195. {
  196. "cell_type": "code",
  197. "execution_count": 18,
  198. "metadata": {
  199. "collapsed": false
  200. },
  201. "outputs": [
  202. {
  203. "data": {
  204. "text/plain": [
  205. "\n",
  206. "\tWelch Two Sample t-test\n",
  207. "\n",
  208. "data: data_3$lowq and data_3$highq\n",
  209. "t = -1.6471, df = 238.07, p-value = 0.05043\n",
  210. "alternative hypothesis: true difference in means is less than 0\n",
  211. "95 percent confidence interval:\n",
  212. " -Inf 0.0002310195\n",
  213. "sample estimates:\n",
  214. "mean of x mean of y \n",
  215. "0.1967213 0.2868852 \n"
  216. ]
  217. },
  218. "execution_count": 18,
  219. "metadata": {},
  220. "output_type": "execute_result"
  221. }
  222. ],
  223. "source": [
  224. "t.test(data_3$lowq, data_3$highq, alternative='less')"
  225. ]
  226. },
  227. {
  228. "cell_type": "code",
  229. "execution_count": null,
  230. "metadata": {
  231. "collapsed": true
  232. },
  233. "outputs": [],
  234. "source": []
  235. }
  236. ],
  237. "metadata": {
  238. "kernelspec": {
  239. "display_name": "R",
  240. "language": "R",
  241. "name": "ir"
  242. },
  243. "language_info": {
  244. "codemirror_mode": "r",
  245. "file_extension": ".r",
  246. "mimetype": "text/x-r-source",
  247. "name": "R",
  248. "pygments_lexer": "r",
  249. "version": "3.2.2"
  250. }
  251. },
  252. "nbformat": 4,
  253. "nbformat_minor": 0
  254. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement