{"id":483,"date":"2015-07-16T08:55:40","date_gmt":"2015-07-16T12:55:40","guid":{"rendered":"http:\/\/sites.berry.edu\/vbissonnette\/?page_id=483"},"modified":"2021-05-08T14:18:13","modified_gmt":"2021-05-08T18:18:13","slug":"t-test-for-dependent-groups","status":"publish","type":"page","link":"https:\/\/sites.berry.edu\/vbissonnette\/index\/stats-homework\/documentation\/t-test-for-dependent-groups\/","title":{"rendered":"T Test for Dependent Groups"},"content":{"rendered":"<h3>Example homework problem:<\/h3>\n<p>Twelve people completed a difficult hand-eye coordination task twice: once in a quiet room, and once in the same room while loud rock-and-roll music was being played. The order in which subjects experienced these conditions was counterbalanced: half performed in the\u00a0 quiet environment first, half performed in the loud environment first.\u00a0The researcher measured the number of errors committed by the participant while performing. Thus, the lower the score, the better the performance. Here are the results:<\/p>\n<table style=\"width: 500px;border: 1px solid black\">\n<tbody>\n<tr>\n<td style=\"border-bottom-style: solid;border-bottom-width: 1px;border-bottom-color: black\">Participant:<\/td>\n<td style=\"border-bottom-style: solid;border-bottom-width: 1px;border-bottom-color: black\">1<\/td>\n<td style=\"border-bottom-style: solid;border-bottom-width: 1px;border-bottom-color: black\">2<\/td>\n<td style=\"border-bottom-style: solid;border-bottom-width: 1px;border-bottom-color: black\">3<\/td>\n<td style=\"border-bottom-style: solid;border-bottom-width: 1px;border-bottom-color: black\">4<\/td>\n<td style=\"border-bottom-style: solid;border-bottom-width: 1px;border-bottom-color: black\">5<\/td>\n<td style=\"border-bottom-style: solid;border-bottom-width: 1px;border-bottom-color: black\">6<\/td>\n<td style=\"border-bottom-style: solid;border-bottom-width: 1px;border-bottom-color: black\">7<\/td>\n<td style=\"border-bottom-style: solid;border-bottom-width: 1px;border-bottom-color: black\">8<\/td>\n<td style=\"border-bottom-style: solid;border-bottom-width: 1px;border-bottom-color: black\">9<\/td>\n<td style=\"border-bottom-style: solid;border-bottom-width: 1px;border-bottom-color: black\">10<\/td>\n<td style=\"border-bottom-style: solid;border-bottom-width: 1px;border-bottom-color: black\">11<\/td>\n<td style=\"border-bottom-style: solid;border-bottom-width: 1px;border-bottom-color: black\">12<\/td>\n<\/tr>\n<tr>\n<td>Quiet Environment:<\/td>\n<td>14<\/td>\n<td>21<\/td>\n<td>24<\/td>\n<td>16<\/td>\n<td>18<\/td>\n<td>20<\/td>\n<td>15<\/td>\n<td>20<\/td>\n<td>17<\/td>\n<td>16<\/td>\n<td>19<\/td>\n<td>12<\/td>\n<\/tr>\n<tr>\n<td>Loud Environment:<\/td>\n<td>21<\/td>\n<td>22<\/td>\n<td>21<\/td>\n<td>19<\/td>\n<td>18<\/td>\n<td>25<\/td>\n<td>17<\/td>\n<td>18<\/td>\n<td>21<\/td>\n<td>24<\/td>\n<td>21<\/td>\n<td>15<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Was there a significant difference in performance between the two treatment conditions\u00a0 (alpha = .05)?<\/p>\n<p>If you would like help with the hand-written solution to this problem, <a href=\"http:\/\/sites.berry.edu\/vbissonnette\/t-test-for-dependent-groups-solution\/\">click here<\/a>.<\/p>\n<hr \/>\n<p>Enter these data into the first two columns of <i>Stats Homework&#8217;s <\/i>data manager and rename the variables. Your screen should look like this:<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest3.png\" rel=\"attachment wp-att-762\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-762 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest3.png\" alt=\"dttest3\" width=\"612\" height=\"463\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest3.png 612w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest3-300x227.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest3-260x197.png 260w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/a><\/p>\n<p>Make sure to double-check and save your data. To conduct your analysis, pull down the <b>Analyze<\/b> menu, choose <b>Tests for One or Two Samples<\/b>, and then choose <b>T Test for Related Samples<\/b>. Here is the user dialog for this procedure:<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest4.png\" rel=\"attachment wp-att-763\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-763 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest4.png\" alt=\"dttest4\" width=\"544\" height=\"411\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest4.png 544w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest4-300x227.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest4-260x196.png 260w\" sizes=\"auto, (max-width: 544px) 100vw, 544px\" \/><\/a><\/p>\n<p>Move the two variables to the two blanks on the right, and then select all your output options.\u00a0 Then,\u00a0click the\u00a0<strong>Compute<\/strong> button.<\/p>\n<p>Here is the basic output:<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2021\/05\/dttest5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1979\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2021\/05\/dttest5.png\" alt=\"\" width=\"466\" height=\"352\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2021\/05\/dttest5.png 466w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2021\/05\/dttest5-300x227.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2021\/05\/dttest5-260x196.png 260w\" sizes=\"auto, (max-width: 466px) 100vw, 466px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><b>Descriptive Statistics<\/b>. Basic summary and descriptive statistics are presented for both variables and for the difference scores. Also, these difference scores have been written to your data. For a guide to these statistics, see the documentation page for the <a href=\"http:\/\/sites.berry.edu\/vbissonnette\/index\/stats-homework\/documentation\/explore-data\/\">explore procedure<\/a>.<\/p>\n<p><b>Inferential Statistics<\/b>. This table lists the results of your <i>t <\/i>test:<\/p>\n<ul>\n<li>Mean Diff (-2.50): this is equal to the mean of the difference scores.<\/li>\n<li>Std. Err. (0.95): this is the Standard Error of the difference scores. This is equal to the standard deviation of the difference scores divided by the square root of n.<\/li>\n<li>t (-2.63): this is the value of the <i>t<\/i> test statistic. <i>t<\/i> is equal to the mean difference score divided by the standard error of the difference scores.<\/li>\n<li>df (11): this is the <i>df<\/i> of the <i>t<\/i> test. <i>df<\/i> is equal to the number of difference scores minus one.<\/li>\n<li>p (2-tail) (.02): this is the chance probability \/ significance level for your <i>t<\/i> test if you are conducting a two-tailed or non-directional hypothesis test.<\/li>\n<\/ul>\n<p>Here is the optional output:<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest7.png\" rel=\"attachment wp-att-766\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-766 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest7.png\" alt=\"dttest7\" width=\"464\" height=\"78\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest7.png 464w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest7-300x50.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest7-260x44.png 260w\" sizes=\"auto, (max-width: 464px) 100vw, 464px\" \/><\/a><\/p>\n<p><b>Confidence Intervals<\/b>. You are given the 95% and 99% confidence intervals for the population mean difference, based on your sample mean difference. The 95%<br \/>\nconfidence interval tells you that, with 95% certainty, you would estimate the population mean difference to be between -4.59 and -0.41.<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest6.png\" rel=\"attachment wp-att-765\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-765 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest6.png\" alt=\"dttest6\" width=\"540\" height=\"172\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest6.png 540w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest6-300x96.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest6-260x83.png 260w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<p><strong>Effect Size Statistics<\/strong><\/p>\n<ul>\n<li>Cohen&#8217;s d (-0.76): Cohen&#8217;s D is an effect-size estimate. It is equal to the mean of the difference scores divided by the standard deviation of the difference scores. It standardizes the mean difference in terms of standard deviation units.<\/li>\n<li>r\u00b2 (.39): r\u00b2 is an effect-size estimate. It represents the proportion of variance in the scores that can be accounted for by the treatment. Note that this is a partial effect size estimate &#8212; it does not take into account the variance due to subjects. Partial r\u00b2 is equal to <i>t<\/i>\u00b2 \/ (<i>t<\/i>\u00b2 + <i>df<\/i>).<\/li>\n<li>Omega\u00b2 (.20). Omega Squared is similar to <i>r<\/i>&amp;sup2, in that it estimates the proportion of variance accounted for. However, it represents an <u>unbiased<\/u> estimate of variance accounted for &#8212; it accounts for sample size. Note that this is also a partial effect size estimate &#8212; it does not take into account the variance due to subjects. Partial Omega\u00b2 is equal to (<i>t<\/i>\u00b2 &#8211; 1.0) \/ (<i>t<\/i>\u00b2 &#8211; 1.0 + 2n)<\/li>\n<\/ul>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest8.png\" rel=\"attachment wp-att-767\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-767 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest8.png\" alt=\"dttest8\" width=\"438\" height=\"137\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest8.png 438w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest8-300x94.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest8-260x81.png 260w\" sizes=\"auto, (max-width: 438px) 100vw, 438px\" \/><\/a><\/p>\n<p><b>Critical Values<\/b>. These are the values from a statistical table of critical values for the <i>t<\/i> test. In our case, we are conducting a two-tailed test with alpha = .05. So, we would compare the absolute value of our obtained <i>t <\/i>(2.63) to 2.201.<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest9.png\" rel=\"attachment wp-att-768\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-768\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest9.png\" alt=\"dttest9\" width=\"561\" height=\"154\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest9.png 561w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest9-300x82.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/dttest9-260x71.png 260w\" sizes=\"auto, (max-width: 561px) 100vw, 561px\" \/><\/a><b>Supplemental Statistics Used in Hand Calculations<\/b>. These are statistics that can be helpful if you would like to double check your hand-written computations.<\/p>\n<hr \/>\n<p><a href=\"http:\/\/sites.berry.edu\/vbissonnette\/t-test-for-dependent-groups-solution\/\">See Hand-Written Work<\/a><br \/>\n<a href=\"http:\/\/sites.berry.edu\/vbissonnette\/index\/stats-homework\/documentation\/\">Return to Table of Contents<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Example homework problem: Twelve people completed a difficult hand-eye coordination task twice: once in a quiet room, and once in the same room while loud rock-and-roll music was being played. [&hellip;]<\/p>\n","protected":false},"author":34,"featured_media":0,"parent":282,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","site-transparent-header":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"class_list":["post-483","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/comments?post=483"}],"version-history":[{"count":12,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/483\/revisions"}],"predecessor-version":[{"id":1980,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/483\/revisions\/1980"}],"up":[{"embeddable":true,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/282"}],"wp:attachment":[{"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/media?parent=483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}