{"id":461,"date":"2015-07-16T07:56:14","date_gmt":"2015-07-16T11:56:14","guid":{"rendered":"http:\/\/sites.berry.edu\/vbissonnette\/?page_id=461"},"modified":"2016-06-22T11:38:54","modified_gmt":"2016-06-22T15:38:54","slug":"one-sample-z-test","status":"publish","type":"page","link":"https:\/\/sites.berry.edu\/vbissonnette\/index\/stats-homework\/documentation\/one-sample-z-test\/","title":{"rendered":"One-Sample Z Test"},"content":{"rendered":"<h3>Example homework problem:<\/h3>\n<p>Twenty five high school students complete a preparation program for taking the SAT test. We know that the overall average for SAT scores is 500 with a standard deviation of 100.<\/p>\n<p>Here are the SAT scores from the 25 students who completed the SAT prep program:<\/p>\n<blockquote>\n<pre>434 694 457 534 720 400 484 478 610 641 425 636 454\r\n514 563 370 499 640 501 625 612 471 598 509 531<\/pre>\n<\/blockquote>\n<p>Are these students&#8217; SAT scores significantly greater than a population mean of 500 with a population standard deviation of 100? Note that the manufacturer&#8217;s claim and previous findings from studies like this would lead you to only consider the possibility that the prep program might have a positive effect on SAT scores. So, you will be conducting a <span style=\"text-decoration: underline\">one-tailed test<\/span>. (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-z-test\/one-sample-z-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 look like this:<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z3.png\" rel=\"attachment wp-att-722\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-722 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z3.png\" alt=\"onesamp_z3\" width=\"612\" height=\"463\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z3.png 612w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z3-300x227.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z3-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>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_z4.png\" rel=\"attachment wp-att-806\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-806 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z4.png\" alt=\"onesamp_z4\" width=\"519\" height=\"370\" \/><\/a><\/p>\n<p>Check the variable that contains your data, click &#8220;One Sample Z Test,&#8221; and then enter 500 in the first blank and 100 in the second.\u00a0 Now, click the <strong>Change Hypothesis<\/strong> button.\u00a0 This dialog will appear:<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z5.png\" rel=\"attachment wp-att-830\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-830 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z5.png\" alt=\"onesamp_z5\" width=\"578\" height=\"327\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z5.png 578w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z5-300x170.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z5-260x147.png 260w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/><\/a><\/p>\n<p>Click\u00a0<strong>One-Tailed Test<\/strong>, and then click the top choice &#8212; indicating that you believe the SAT scores will average more than 500 if the null hypothesis is false. \u00a0Click the\u00a0<strong>Done<\/strong> button to return to this dialog:<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z6.png\" rel=\"attachment wp-att-821\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-821 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z6.png\" alt=\"onesamp_z6\" width=\"519\" height=\"370\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z6.png 519w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z6-300x214.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z6-260x185.png 260w\" sizes=\"auto, (max-width: 519px) 100vw, 519px\" \/><\/a><\/p>\n<p>Verify that your null and alternative hypotheses have been specified correctly. \u00a0Finally, check all the\u00a0output options, and click the <strong>Compute<\/strong> button.<\/p>\n<h4>Basic Output<\/h4>\n<p><b><\/b><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z7.png\" rel=\"attachment wp-att-822\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-822 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z7.png\" alt=\"onesamp_z7\" width=\"464\" height=\"364\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z7.png 464w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z7-300x235.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z7-260x204.png 260w\" sizes=\"auto, (max-width: 464px) 100vw, 464px\" \/><\/a><\/p>\n<p><b>Compare Sample To<\/b>. This is the population values that you are comparing your sample to with this Z test. Double-check to make sure that you entered the correct values (mean = 500 and sd = 100).<\/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>Inferential Statistics<\/b>:<\/p>\n<ul>\n<li>Mean Diff (36.00): this is equal to the mean of your sample minus the population value that you entered.<\/li>\n<li>Std. Err. (20.00): this is the Standard Error of your <i>Z<\/i> Test. This will\u00a0 be equal to the standard deviation of your population divided by the square root of the sample size.<\/li>\n<li>Z (+1.80): this is the value of your test statistic. <i>Z<\/i> is equal to the mean difference divided by the standard error.<\/li>\n<li>p (2-tail) (.04): this is the chance probability \/ significance level for your <i>Z<\/i> test if you are conducting a one-tailed or directional\u00a0hypothesis 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_z8.png\" rel=\"attachment wp-att-823\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-823 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z8.png\" alt=\"onesamp_z8\" width=\"205\" height=\"73\" \/><\/a><\/p>\n<p><strong>Cohen&#8217;s D:<\/strong> (.36): Cohen&#8217;s D is an effect-size estimate. It is equal to the mean difference divided by the standard deviation of the population. 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_z9.png\" rel=\"attachment wp-att-824\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-824 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z9.png\" alt=\"onesamp_z9\" width=\"364\" height=\"82\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z9.png 364w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z9-300x68.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z9-260x59.png 260w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/><\/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.<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z10.png\" rel=\"attachment wp-att-825\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-825 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z10.png\" alt=\"onesamp_z10\" width=\"433\" height=\"114\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z10.png 433w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z10-300x79.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z10-260x68.png 260w\" sizes=\"auto, (max-width: 433px) 100vw, 433px\" \/><\/a><\/p>\n<p><b>Critical Values<\/b>. These are the values from a <a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2015\/07\/z.pdf\">statistical table<\/a>\u00a0of critical values for the <i>Z<\/i> test. In our case, we are conducting a one-tailed test with alpha = .05. So, we would compare the value of our obtained <i>Z <\/i>(1.80) to 1.645.<\/p>\n<p><a href=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z11.png\" rel=\"attachment wp-att-826\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-826 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z11.png\" alt=\"onesamp_z11\" width=\"480\" height=\"103\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z11.png 480w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z11-300x64.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z11-260x56.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\/onesamp_z12.png\" rel=\"attachment wp-att-827\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-827 aligncenter\" src=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z12.png\" alt=\"onesamp_z12\" width=\"661\" height=\"256\" srcset=\"https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z12.png 661w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z12-300x116.png 300w, https:\/\/sites.berry.edu\/vbissonnette\/wp-content\/uploads\/sites\/21\/2016\/06\/onesamp_z12-260x101.png 260w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/a><\/p>\n<p><strong>Box Plot<\/strong>.\u00a0 You can modify this plot, copy it to your clipboard, and save it to disk.<\/p>\n<hr \/>\n<p><a href=\"http:\/\/sites.berry.edu\/vbissonnette\/index\/stats-homework\/documentation\/one-sample-z-test\/one-sample-z-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<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Example homework problem: Twenty five high school students complete a preparation program for taking the SAT test. We know that the overall average for SAT scores is 500 with a [&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-461","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/461","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=461"}],"version-history":[{"count":19,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/461\/revisions"}],"predecessor-version":[{"id":870,"href":"https:\/\/sites.berry.edu\/vbissonnette\/wp-json\/wp\/v2\/pages\/461\/revisions\/870"}],"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=461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}