{"id":19097,"date":"2016-12-14T17:59:12","date_gmt":"2016-12-14T17:59:12","guid":{"rendered":"http:\/\/www.oracletutoring.ca\/blog\/?p=19097"},"modified":"2016-12-14T17:59:12","modified_gmt":"2016-12-14T17:59:12","slug":"statistics-the-matched-pairs-t-test","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/statistics-the-matched-pairs-t-test\/","title":{"rendered":"Statistics:  the matched pairs t-test"},"content":{"rendered":"<h1>The tutor shows an example of the matched pairs t-test.<\/h1>\n<p>In my <a href=\"?p=19046\">post from Dec 11<\/a> I began about the matched pairs t-test.  It&#8217;s used to determine if two samples come from the same population.<\/p>\n<p>In my <a href=\"?p=19079\">previous post<\/a> I mentioned generating two lists of random numbers.  The second one, I pointed out, has all its entries increased by 5.<\/p>\n<p>Here are the two lists:<\/p>\n<table style=\"width:40%;margin:auto\">\n<tr>\n<td>random<\/td>\n<td>random + 5<\/td>\n<td>diff<\/tr>\n<tr>\n<td>13<\/td>\n<td>95<\/td>\n<td>-82<\/td>\n<\/tr>\n<tr>\n<td>48<\/td>\n<td>66<\/td>\n<td>-18<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>83<\/td>\n<td>-76<\/td>\n<\/tr>\n<tr>\n<td>99<\/td>\n<td>7<\/td>\n<td>92<\/td>\n<\/tr>\n<tr>\n<td>92<\/td>\n<td>57<\/td>\n<td>35<\/td>\n<\/tr>\n<tr>\n<td>41<\/td>\n<td>64<\/td>\n<td>-23<\/td>\n<\/tr>\n<tr>\n<td>68<\/td>\n<td>62<\/td>\n<td>6<\/td>\n<\/tr>\n<tr>\n<td>35<\/td>\n<td>88<\/td>\n<td>-53<\/td>\n<\/tr>\n<tr>\n<td>21<\/td>\n<td>57<\/td>\n<td>-36<\/td>\n<\/tr>\n<tr>\n<td>64<\/td>\n<td>34<\/td>\n<td>30<\/td>\n<\/tr>\n<tr>\n<td>91<\/td>\n<td>28<\/td>\n<td>63<\/td>\n<\/tr>\n<tr>\n<td>18<\/td>\n<td>96<\/td>\n<td>-78<\/td>\n<\/tr>\n<tr>\n<td>31<\/td>\n<td>7<\/td>\n<td>24<\/td>\n<\/tr>\n<tr>\n<td>97<\/td>\n<td>98<\/td>\n<td>-1<\/td>\n<\/tr>\n<tr>\n<td>73<\/td>\n<td>92<\/td>\n<td>-19<\/td>\n<\/tr>\n<\/table>\n<p style=\"white-space:pre-wrap\"><\/p>\n<p>Testing against a supposition that the samples come from the same distribution, the mean difference should be 0.  The t-statistic is the observed mean difference, minus 0, all divided by the standard deviation of the observed differences:<\/p>\n<p style=\"font-family:monospace;font-size:130%;text-align:center\">t = (<span style=\"text-decoration:overline\">diff<\/span> &#8211; 0)\/(\u03a3(diff)<sup>2<\/sup>\/(n-1))<sup>1\/2<\/sup><\/p>\n<p>It has n-1 degrees of freedom:  14, in this case.<\/p>\n<p>Crunching the numbers (this time, with the <a href=\"?p=2752\">Casio fx-260Solar<\/a>) gives t=-0.174, which is virtually the middle of the distribution.  In this context, the matched pairs t-test cannot distinguish that one list differs from the other. <\/p>\n<p>HTH:)<\/p>\n<p>Source:<\/p>\n<p>Harnett, Donald L. and James L. Murphy.  <u>Statistical Analysis for Business and Economics<\/u>.  Don Mills:  Addison-Wesley, 1993.<\/p>\n<p>Jack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The tutor shows an example of the matched pairs t-test. In my post from Dec 11 I began about the matched pairs t-test. It&#8217;s used to determine if two samples come from the same population. In my previous post I &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/statistics-the-matched-pairs-t-test\/\"> <span class=\"screen-reader-text\">Statistics:  the matched pairs t-test<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[371,90,19],"tags":[2067],"class_list":["post-19097","post","type-post","status-publish","format-standard","hentry","category-business","category-calculator-usage","category-statistics","tag-matched-pairs-t-test"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/19097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=19097"}],"version-history":[{"count":20,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/19097\/revisions"}],"predecessor-version":[{"id":19117,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/19097\/revisions\/19117"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=19097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=19097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=19097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}