{"id":447,"date":"2015-07-15T17:27:44","date_gmt":"2015-07-15T21:27:44","guid":{"rendered":"http:\/\/sites.berry.edu\/vbissonnette\/?page_id=447"},"modified":"2016-06-21T14:41:04","modified_gmt":"2016-06-21T18:41:04","slug":"one-sample-t-test","status":"publish","type":"page","link":"https:\/\/sites.berry.edu\/vbissonnette\/index\/stats-homework\/documentation\/one-sample-t-test\/","title":{"rendered":"One-Sample T Test"},"content":{"rendered":"<h3>Example homework problem:<\/h3>\n<p>A car company claims that their <i>Super Spiffy Sedan<\/i> averages 31 mpg. You randomly select 8 Super Spiffies from local car dealerships and test their gas mileage under similar conditions.<\/p>\n<p>You get the following Miles Per Gallon (MPG) scores:<\/p>\n<table style=\"width: 400px\">\n<tbody>\n<tr>\n<td>MPG:<\/td>\n<td>30<\/td>\n<td>28<\/td>\n<td>32<\/td>\n<td>26<\/td>\n<td>33<\/td>\n<td>25<\/td>\n<td>28<\/td>\n<td>30<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Does the actual gas mileage for these cars deviate significantly from 31 (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\/index\/stats-homework\/documentation\/one-sample-t-test\/one-sample-t-test-solution\/\">click here<\/a>.<\/p>\n<hr \/>\n<p>Enter these data into the first column of <i>Stats Homework&#8217;s<\/i> data manager and rename this variable. Your screen should\u00a0look like this:<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t3.png\" rel=\"attachment wp-att-709\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-709 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t3.png\" alt=\"onesamp_t3\" width=\"917\" height=\"693\" \/><\/a>Make sure to double-check and save your data. To conduct your analysis, pull down the <b>Analyze<\/b> menu, choose <b>One and Two Sample Tests<\/b>, and then choose <b>Z or T Test for One Sample<\/b>.<\/p>\n<p>You will be presented with a dialog window:<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t4.png\" rel=\"attachment wp-att-710\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-710 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t4.png\" alt=\"onesamp_t4\" width=\"778\" height=\"553\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t4.png 778w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t4-300x213.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t4-768x546.png 768w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t4-260x185.png 260w\" sizes=\"auto, (max-width: 778px) 100vw, 778px\" \/><\/a><\/p>\n<p>Enter 31 in the blank, and then check the variable that contains your data.\u00a0\u00a0Select all the optional output, and click the <strong>Compute<\/strong> button.<\/p>\n<h4>Basic Output<\/h4>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t5.png\" rel=\"attachment wp-att-786\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-786 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t5.png\" alt=\"onesamp_t5\" width=\"446\" height=\"359\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t5.png 446w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t5-300x241.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t5-260x209.png 260w\" sizes=\"auto, (max-width: 446px) 100vw, 446px\" \/><\/a><\/p>\n<p><b>Compare Sample To<\/b>. This is the population value that you are comparing the mean of your sample to with this T test. Double-check to make sure that you entered the correct value (31).<\/p>\n<p><b>Descriptive Statistics<\/b>. These basic statistics are described on the 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>:<\/p>\n<ul>\n<li>Mean Diff (-2.00): this is equal to the mean of your sample minus the population value that you entered.<\/li>\n<li>Std. Err. (0.98): this is the Standard Error of your <i>t<\/i> Test. This will be equal to the standard deviation of your sample divided by the square root of the sample size.<\/li>\n<li>t (-2.04): this is the value of your test statistic. <i>t<\/i> is equal to the mean difference divided by the standard error.<\/li>\n<li>df (7): this is the <i>df<\/i> for your <i>t<\/i> test. <i>df<\/i> is equal to n &#8211; 1.<\/li>\n<li>p (2-tail) (.08): 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<h4>Optional Outputs<\/h4>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t6.png\" rel=\"attachment wp-att-775\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-775 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t6.png\" alt=\"onesamp_t6\" width=\"249\" height=\"66\" \/><\/a><\/p>\n<p><strong>Effect Size Statistics<\/strong>.\u00a0 Cohen&#8217;s D: (.72).\u00a0\u00a0D is equal to the mean difference divided by the standard deviation of the sample. It standardizes the mean difference in terms of standard deviation units.<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t7.png\" rel=\"attachment wp-att-776\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-776 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t7.png\" alt=\"onesamp_t7\" width=\"361\" height=\"80\" \/><\/a><\/p>\n<p><b>Confidence Intervals<\/b>. You are given the 95% and 99% confidence intervals for the population mean, based on your sample mean. The 95% confidence interval tells you that, with 95% certainty, you would estimate the population mean to be between 28.68 and 33.32.<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t8.png\" rel=\"attachment wp-att-777\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-777 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t8.png\" alt=\"onesamp_t8\" width=\"428\" height=\"137\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t8.png 428w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t8-300x96.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t8-260x83.png 260w\" sizes=\"auto, (max-width: 428px) 100vw, 428px\" \/><\/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.04) to 2.365.<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t9.png\" rel=\"attachment wp-att-778\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-778 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t9.png\" alt=\"onesamp_t9\" width=\"473\" height=\"103\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t9.png 473w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t9-300x65.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t9-260x57.png 260w\" sizes=\"auto, (max-width: 473px) 100vw, 473px\" \/><\/a><\/p>\n<p><b>Supplemental Statistics Used in Hand Calculations<\/b>. These are statistics that can be helpful if you would\u00a0like to double check your hand-written computations.<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t10.png\" rel=\"attachment wp-att-779\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-779 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t10.png\" alt=\"onesamp_t10\" width=\"661\" height=\"256\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t10.png 661w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t10-300x116.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_t10-260x101.png 260w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/a><\/p>\n<p><strong>Box Plot<\/strong>.\u00a0 Make sure to explore the options for this plot. You can change the scale, the title and labels, and the size of plot. You can also save this plot to disk or copy it to your clipboard.<\/p>\n<hr \/>\n<p><a href=\"http:\/\/sites.berry.edu\/vbissonnette\/index\/stats-homework\/documentation\/one-sample-t-test\/one-sample-t-test-solution\/\">See the 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","protected":false},"excerpt":{"rendered":"<p>Example homework problem: A car company claims that their Super Spiffy Sedan averages 31 mpg. You randomly select 8 Super Spiffies from local car dealerships and test their gas mileage [&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-447","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/447","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=447"}],"version-history":[{"count":15,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/447\/revisions"}],"predecessor-version":[{"id":790,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/447\/revisions\/790"}],"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=447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}