{"id":468,"date":"2015-07-16T08:06:54","date_gmt":"2015-07-16T12:06:54","guid":{"rendered":"http:\/\/sites.berry.edu\/vbissonnette\/?page_id=468"},"modified":"2016-06-22T11:40:24","modified_gmt":"2016-06-22T15:40:24","slug":"t-test-for-independent-groups","status":"publish","type":"page","link":"https:\/\/sites.berry.edu\/vbissonnette\/index\/stats-homework\/documentation\/t-test-for-independent-groups\/","title":{"rendered":"T Test for Independent Samples"},"content":{"rendered":"<h3>Example homework problem:<\/h3>\n<p>Twenty participants were given a list of 20 words to process. The 20 participants were randomly assigned to one of two treatment conditions. Half were instructed to count the number of vowels in each word (shallow processing). Half were instructed to judge whether the object\u00a0 described by each word would be useful if one were stranded on a desert island (deep processing). After a brief distractor task, all subjects were given a surprise free recall task. The number of words correctly recalled was recorded for each subject. Here are the data:<\/p>\n<table style=\"width: 500px\">\n<tbody>\n<tr>\n<td>Shallow Processing:<\/td>\n<td>13<\/td>\n<td>12<\/td>\n<td>11<\/td>\n<td>9<\/td>\n<td>11<\/td>\n<td>13<\/td>\n<td>14<\/td>\n<td>14<\/td>\n<td>14<\/td>\n<td>15<\/td>\n<\/tr>\n<tr>\n<td>Deep Processing:<\/td>\n<td>12<\/td>\n<td>15<\/td>\n<td>14<\/td>\n<td>14<\/td>\n<td>13<\/td>\n<td>12<\/td>\n<td>15<\/td>\n<td>14<\/td>\n<td>16<\/td>\n<td>17<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Did the instructions given to the participants significantly affect their level of recall (alpha = .05)?<\/p>\n<p>If you would like help with the hand-written solution for this problem, then <a href=\"http:\/\/sites.berry.edu\/vbissonnette\/t-test-for-independent-samples-solution\/\">click here<\/a>.<\/p>\n<hr \/>\n<h4>Separate Variables Approach<\/h4>\n<p>Enter these data as two variables\u00a0in <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\/ittest9.png\" rel=\"attachment wp-att-738\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-738 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest9.png\" alt=\"ittest9\" width=\"612\" height=\"463\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest9.png 612w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest9-300x227.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest9-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\u00a0 Samples<\/b>, and then choose <b>T Test for Independent Samples<\/b>. Here is the user dialog you will work with:<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest10.png\" rel=\"attachment wp-att-739\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-739 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest10.png\" alt=\"ittest10\" width=\"526\" height=\"370\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest10.png 526w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest10-300x211.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest10-260x183.png 260w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/><\/a><\/p>\n<p>Move both of your variables to the &#8220;Test Variables&#8221; window, check all the output options, and click <strong>Compute<\/strong>.<\/p>\n<h4>Indicator Variable Approach<\/h4>\n<p>Enter the scores as one variable with 20 observations, and then create an indicator variable with two values to indicate which scores are from which sample.\u00a0 You can use a numeric or non-numeric indicator variable.\u00a0 Your screen should look something like this:<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest11.png\" rel=\"attachment wp-att-740\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-740 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest11.png\" alt=\"ittest11\" width=\"612\" height=\"463\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest11.png 612w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest11-300x227.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest11-260x197.png 260w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/a><\/p>\n<p>In this case, your user dialog will look like this:<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest12.png\" rel=\"attachment wp-att-741\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-741 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest12.png\" alt=\"ittest12\" width=\"526\" height=\"370\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest12.png 526w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest12-300x211.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest12-260x183.png 260w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/><\/a><\/p>\n<p>Move your indicator variable to the &#8220;Grouping Variable&#8221; box, and the variable containing your data to the &#8220;Test Variable&#8221; box.\u00a0 Click all the options and then click <strong>Compute<\/strong>.<\/p>\n<h4>Basic Output<\/h4>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest13.png\" rel=\"attachment wp-att-742\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-742 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest13.png\" alt=\"ittest13\" width=\"504\" height=\"426\" \/><\/a><\/p>\n<p><b>Descriptive Statistics<\/b>. These basic statistics are described on the page for the <a href=\"https:\/\/sites.berry.edu\/vbissonnette\/index\/stats-homework\/documentation\/explore-data\/\">explore procedure<\/a>.<\/p>\n<p><b>Levene&#8217;s Test for Inequality of Variance<\/b>. This is a test of the equal-variance assumption of the <i>t<\/i> test. If this test reveals a significant difference in variance between your treatment groups (i.e., p &lt; .05), then you would be advised to use the statistical result that assumes unequal variance.<\/p>\n<p><b>Assume Equal Variance<\/b>. This table lists the results of your <i>t <\/i>test if you assume that the groups have equal variance (i.e., Levene&#8217;s test is not significant).<\/p>\n<ul>\n<li>Mean Diff (-1.60): this is equal to the first mean minus the second mean.<\/li>\n<li>Pooled Var (3.00): this is equal to the Pooled Variance &#8212; a weighted average of the two sample variance (see hand-written<br \/>\nsolution).<\/li>\n<li>Std. Err. (0.77): this is the Standard Error of the mean difference (i.e., the denominator of the <i>t<\/i> statistic).<\/li>\n<li>t (-2.07): this is the value of the <i>t<\/i> test statistic. <i>t<\/i> is equal to the mean difference divided by the standard error of the difference.<\/li>\n<li>df (18): this is the <i>df<\/i> of the <i>t<\/i> test. <i>df<\/i> is equal to the total of the sample sizes minus 2.<\/li>\n<li>p (2-tail) (.05): this is the chance probability \/ significance level for your <i>t<\/i> test if you are conducting a two-tailed or non-directional<br \/>\nhypothesis test.<\/li>\n<\/ul>\n<p><b>Do Not Assume Equal Variance<\/b>. This table lists the results of your <i>t<\/i> test if you assume that the groups do not have equal variance (i.e., Levene&#8217;s test is significant). In this case, the <i>df<\/i> for the <i>t<\/i> test are estimated with Welch &amp; Satterthwaite&#8217;s correction (17.72), which will change the resulting <i>p<\/i> value for this test.<\/p>\n<h4>Optional Outputs<\/h4>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest14.png\" rel=\"attachment wp-att-860\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-860\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest14.png\" alt=\"ittest14\" width=\"364\" height=\"99\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest14.png 364w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest14-300x82.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest14-260x71.png 260w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/><\/a><\/p>\n<p><strong>Effect Size Estimates<\/strong>.<\/p>\n<ul>\n<li>Cohen&#8217;s d (-0.92): Cohen&#8217;s D is an effect-size estimate. It is equal to the mean difference divided by the square root of the pooled variance. It standardizes the mean difference in terms of standard deviation units.<\/li>\n<li>r\u00b2 (.19): r\u00b2 is an effect-size estimate. It represents the proportion of variance in the dependent variable that is accounted for by the manipulation of the independent variable. It is equal to <i>t<\/i>\u00b2 \/ (<i>t<\/i>\u00b2 + <i>df<\/i>).<\/li>\n<li>Omega\u00b2 (.14). Omega Squared is similar to <i>r\u00b2<\/i>, 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.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest15.png\" rel=\"attachment wp-att-861\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-861\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest15.png\" alt=\"ittest15\" width=\"474\" height=\"89\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest15.png 474w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest15-300x56.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest15-260x49.png 260w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/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\u00a0difference. The 95% confidence interval tells you that, with 95% certainty, you would estimate the population mean difference to be between -3.23 and 0.03.<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest16.png\" rel=\"attachment wp-att-862\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-862\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest16.png\" alt=\"ittest16\" width=\"431\" height=\"149\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest16.png 431w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest16-300x104.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest16-260x90.png 260w\" sizes=\"auto, (max-width: 431px) 100vw, 431px\" \/><\/a><\/p>\n<p><b>Critical Values<\/b>. These are the values from a <a href=\"http:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2015\/07\/t.pdf\">statistical table<\/a> 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.07) to 2.101.<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest17.png\" rel=\"attachment wp-att-863\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-863\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest17.png\" alt=\"ittest17\" width=\"480\" height=\"126\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest17.png 480w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest17-300x79.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest17-260x68.png 260w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/a><\/p>\n<p><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<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest18.png\" rel=\"attachment wp-att-864\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-864\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest18.png\" alt=\"ittest18\" width=\"661\" height=\"381\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest18.png 661w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest18-300x173.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/ittest18-260x150.png 260w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/a><\/p>\n<p><strong>Box Plots<\/strong>. \u00a0You can change these to graphical confidence intervals, change the scale, change the title and labels, save to disk, or copy to clipboard.<\/p>\n<hr \/>\n<p><a href=\"http:\/\/sites.berry.edu\/vbissonnette\/t-test-for-independent-samples-solution\/\">See Hand-Written Work<\/a><\/p>\n<p><a href=\"http:\/\/sites.berry.edu\/vbissonnette\/index\/stats-homework\/documentation\/\">Return to Table of Contents<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Example homework problem: Twenty participants were given a list of 20 words to process. The 20 participants were randomly assigned to one of two treatment conditions. Half were instructed to [&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-468","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/468","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=468"}],"version-history":[{"count":17,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/468\/revisions"}],"predecessor-version":[{"id":871,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/468\/revisions\/871"}],"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=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}