
{"id":258,"date":"2021-12-15T22:07:30","date_gmt":"2021-12-15T22:07:30","guid":{"rendered":"https:\/\/pressbooks.palomar.edu\/introtostats\/chapter\/chapter-8\/"},"modified":"2025-08-28T23:56:15","modified_gmt":"2025-08-28T23:56:15","slug":"chapter-8","status":"publish","type":"chapter","link":"https:\/\/pressbooks.palomar.edu\/introtostats\/chapter\/chapter-8\/","title":{"raw":"Chapter 8: Introduction to t Tests and Confidence Intervals","rendered":"Chapter 8: Introduction to t Tests and Confidence Intervals"},"content":{"raw":"<div class=\"textbox textbox--sidebar textbox--learning-objectives\"><header class=\"textbox__header\">\r\n<h3 class=\"Chapter-element-head\">Key Terms<\/h3>\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n<p class=\"Key-terms\"><a href=\"#_idTextAnchor192\"><span class=\"Hyperlink-underscore\">\r\nconfidence interval<\/span><\/a><\/p>\r\n<p class=\"Key-terms\"><a href=\"#_idTextAnchor193\"><span class=\"Hyperlink-underscore\">margin of error<\/span><\/a><\/p>\r\n<p class=\"Key-terms\"><a href=\"#_idTextAnchor191\"><span class=\"Hyperlink-underscore\">point estimate<\/span><\/a><\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n<p class=\"Text-1st\">In <a href=\"https:\/\/pressbooks.palomar.edu\/introtostats\/chapter\/chapter-7\/\"><span class=\"Hyperlink-underscore\">Chapter 7<\/span><\/a>, we made a big leap from basic descriptive statistics into full hypothesis testing and inferential statistics. For the rest of the unit, we will be learning new tests, each of which is just a small adjustment on the test before it. In this chapter, we will learn about the first of three <span class=\"italic\">t<\/span>\u00a0tests, and we will learn a new method of testing the null hypothesis: confidence intervals.<\/p>\r\n<strong data-start=\"204\" data-end=\"237\">Social Justice and the t Test<\/strong><br data-start=\"237\" data-end=\"240\" \/>In the real world, we rarely know the exact parameters of a population \u2014 we only have samples. That is especially true in social justice research, where communities are often underrepresented in data collection. The t test gives us a way to use limited information from a sample to make inferences about larger populations. Combined with confidence intervals, it allows us to estimate not just a single number, but a plausible range of values. These tools give us more reliable ways to test whether differences we observe \u2014 such as disparities in wages, housing access, or health outcomes \u2014 are random or evidence of systemic inequality.\r\n<h3 class=\"H1\">The <span class=\"bold-italic CharOverride-4\">t<\/span> Statistic<\/h3>\r\n<p class=\"Text-1st\">In <a href=\"https:\/\/pressbooks.palomar.edu\/introtostats\/chapter\/chapter-7\/\"><span class=\"Hyperlink-underscore\">Chapter 7<\/span><\/a>, we were introduced to hypothesis testing using the <span class=\"italic\">z<\/span>\u00a0statistic for sample means that we learned in <a href=\"https:\/\/pressbooks.palomar.edu\/introtostats\/part\/unit-1-fundamentals-of-statistics\/\"><span class=\"Hyperlink-underscore\">Unit 1<\/span><\/a>. This was a useful way to link the material and ease us into the new way to looking at data, but it isn\u2019t a very common test because it relies on knowing the population\u2019s standard deviation, <span class=\"Symbol\">s<\/span>, which is rarely going to be the case. Instead, we will estimate that parameter <span class=\"Symbol\">s<\/span> using the sample statistic <span class=\"italic\">s<\/span> in the same way that we estimate <img class=\"_idGenObjectAttribute-31\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/> using <img class=\"_idGenObjectAttribute-32\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn3.2-upperM-5.png\" alt=\"Upper M\" \/> (<img class=\"_idGenObjectAttribute-31\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/> will still appear in our formulas because we suspect something about its value and that is what we are testing). Our new statistic is called <span class=\"italic\">t<\/span>, and for testing one population mean using a single sample (called a one-sample <span class=\"italic\">t<\/span>\u00a0test) it takes the form:<\/p>\r\n<p class=\"Equation\"><img class=\"_idGenObjectAttribute-104\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn8.1-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Text\">Notice that <span class=\"italic\">t <\/span>looks almost identical to <span class=\"italic\">z<\/span>; this is because they test the exact same thing: the value of a sample mean compared to what we expect of the population. The only difference is that the standard error is now denoted <img class=\"_idGenObjectAttribute-6\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.1a-2.png\" alt=\"\" \/> to indicate that we use the sample statistic for standard deviation, <span class=\"italic\">s<\/span>, instead of the population parameter <span class=\"Symbol\">s<\/span>. The process of using and interpreting the standard error and the full test statistic remain exactly the same.<\/p>\r\n<p class=\"Text\">In <a href=\"https:\/\/pressbooks.palomar.edu\/introtostats\/chapter\/chapter-3\/\"><span class=\"Hyperlink-underscore\">Chapter 3<\/span><\/a> we learned that the formulas for sample standard deviation and population standard deviation differ by one key factor: the denominator for the parameter is <img class=\"_idGenObjectAttribute-36\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn3.2-upperN-3.png\" alt=\"Upper N\" \/> but the denominator for the statistic is <span class=\"italic\">N <\/span>\u2212 1, also known as degrees of freedom, <span class=\"italic\">d<\/span><span class=\"italic\">f<\/span>. Because we are using a new measure of spread, we can no longer use the standard normal distribution and the <span class=\"italic\">z<\/span>\u00a0table to find our critical values. For <span class=\"italic\">t<\/span>\u00a0tests, we will use the <span class=\"italic\">t<\/span>\u00a0distribution and <span class=\"italic\">t<\/span>\u00a0table to find these values.<\/p>\r\n<p class=\"Text\">The <span class=\"italic\">t<\/span>\u00a0distribution, like the standard normal distribution, is symmetric and normally distributed with a mean of 0 and standard error (as the measure of standard deviation for sampling distributions) of 1. However, because the calculation of standard error uses degrees of freedom, there will be a different <span class=\"italic\">t<\/span>\u00a0distribution for every degree of freedom. Luckily, they all work exactly the same, so in practice this difference is minor.<\/p>\r\n<p class=\"Text\"><a href=\"#_idTextAnchor186\"><span class=\"Fig-table-number-underscore\">Figure 8.1<\/span><\/a> shows four curves: a normal distribution curve labeled <span class=\"italic\">z<\/span>, and three <span class=\"italic\">t<\/span>\u00a0distribution curves for 2, 10, and 30 degrees of freedom. Two things should stand out: First, for lower degrees of freedom (e.g., 2), the tails of the distribution are much fatter, meaning the a larger proportion of the area under the curve falls in the tail. This means that we will have to go farther out into the tail to cut off the portion corresponding to 5% or <span class=\"Symbol\">a<\/span> = .05, which will in turn lead to higher critical values. Second, as the degrees of freedom increase, we get closer and closer to the <span class=\"italic\">z <\/span>curve. Even the distribution with <span class=\"italic\">d<\/span><span class=\"italic\">f<\/span> = 30, corresponding to a sample size of just 31 people, is nearly indistinguishable from <span class=\"italic\">z<\/span>. In fact, a <span class=\"italic\">t<\/span>\u00a0distribution with infinite degrees of freedom (theoretically, of course) is exactly the standard normal distribution. Because of this, the bottom row of the <span class=\"italic\">t<\/span>\u00a0table also includes the critical values for <span class=\"italic\">z<\/span>\u00a0tests at the specific significance levels. Even though these curves are very close, it is still important to use the correct table and critical values, because small differences can add up quickly.<\/p>\r\n\r\n<div class=\"_idGenObjectLayout-2\">\r\n<div id=\"_idContainer338\" class=\"Legend-below\">\r\n<p class=\"Fig-legend\"><span class=\"Fig-table-number\"><a id=\"_idTextAnchor186\"><\/a>Figure 8.1.<\/span> Distributions comparing effects of degrees of freedom. (\u201c<a href=\"https:\/\/irl.umsl.edu\/oer-img\/72\"><span class=\"Hyperlink-underscore\">Distributions Comparing Effects of Degrees of Freedom<\/span><\/a>\u201d by Judy Schmitt is licensed under <a href=\"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\"><span class=\"Hyperlink-underscore\">CC BY-NC-SA 4.0<\/span><\/a>.)<\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"_idGenObjectLayout-1\">\r\n<div id=\"_idContainer339\" class=\"_idGenObjectStyleOverride-1\"><img class=\"_idGenObjectAttribute-19\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/MicrosoftTeams-image-19.jpg\" alt=\"\" \/><\/div>\r\n<\/div>\r\n<p class=\"Text\">The <span class=\"italic\">t<\/span>\u00a0distribution table lists critical values for one- and two-tailed tests at several levels of significance, arranged into columns. The rows of the <span class=\"italic\">t<\/span>\u00a0table list degrees of freedom up to <span class=\"italic\">d<\/span><span class=\"italic\">f <\/span>= 100 in order to use the appropriate distribution curve. It does not, however, list all possible degrees of freedom in this range, because that would take too many rows. Above <span class=\"italic\">d<\/span><span class=\"italic\">f <\/span>=\u00a040, the rows jump in increments of 10. If a problem requires you to find critical values and the exact degrees of freedom is not listed, you always round down to the next smallest number. For example, if you have 48 people in your sample, the degrees of freedom are <span class=\"italic\">N <\/span>\u2212 1 = 48 \u2212 1 = 47; however, 47 doesn\u2019t appear on our table, so we round down and use the critical values for <span class=\"italic\">d<\/span><span class=\"italic\">f <\/span>= 40, even though 50 is closer. We do this because it avoids inflating Type I error (false positives, see <a href=\"https:\/\/pressbooks.palomar.edu\/introtostats\/chapter\/chapter-7\/\"><span class=\"Hyperlink-underscore\">Chapter 7<\/span><\/a>) by using criteria that are too\u00a0lax.<\/p>\r\n<strong data-start=\"981\" data-end=\"993\">Example:<\/strong><br data-start=\"993\" data-end=\"996\" \/>Suppose we\u2019re studying high school graduation rates among Indigenous students in a small district. With only a few students in the sample, our degrees of freedom are low. The t distribution accounts for this extra uncertainty by using \u201cfatter tails.\u201d This means we need stronger evidence to reject the null when our sample is small. In practice, it keeps us cautious about making sweeping claims from limited data, while still giving us a method to test hypotheses.\r\n<h3 class=\"H1\">Hypothesis Testing with <span class=\"bold-italic CharOverride-4\">t<\/span><\/h3>\r\n<p class=\"Text-1st\">Hypothesis testing with the <span class=\"italic\">t<\/span>\u00a0statistic works exactly the same way as <span class=\"italic\">z<\/span>\u00a0tests did, following the four-step process of (1) stating the hypotheses, (2) finding the critical values, (3) computing the test statistic and effect size, and (4) making the decision.<\/p>\r\n<p class=\"Example-New\"><span class=\"Example--\">Example <\/span> Oil Change Speed<\/p>\r\n<p class=\"Text-1st\">We will work though an example: Let\u2019s say that the welfare office changed application systems.\u00a0 The old system approved benefits in about 30 days and you suspect that the new system takes much longer. After four people applied for welfare benefits, you think you have enough evidence to demonstrate this.<\/p>\r\n\r\n<h5 class=\"H3-step\"><span class=\"Step--\">Step 1:<\/span> State the Hypotheses<\/h5>\r\n<p class=\"Text-1st\">Our hypotheses for one-sample <span class=\"italic\">t<\/span>\u00a0tests are identical to those we used for <span class=\"italic\">z<\/span>\u00a0tests. We still state the null and alternative hypotheses mathematically in terms of the population parameter and written out in readable English. For our example:<\/p>\r\n<strong>H<sub>o <\/sub>:There is no difference in the average process time for welfare application between the new and old system.<\/strong>\r\n\r\n<strong>H<sub>o\u00a0<\/sub>: \u03bc = 30 days<\/strong>\r\n\r\n<strong>H<sub>a<\/sub><sub>\u00a0<\/sub>:The average process time for welfare application takes longer with the new system.\u00a0<\/strong>\r\n\r\n<strong>H<sub>a<\/sub><sub>\u00a0<\/sub>: \u03bc &gt; 30 days<\/strong>\r\n<h5 class=\"H3-step\"><span class=\"Step--\">Step 2:<\/span> Find the Critical Values<\/h5>\r\n<p class=\"Text-1st\">As noted above, our critical values still delineate the area in the tails under the curve corresponding to our chosen level of significance. Because we have no reason to change significance levels, we will use <span class=\"Symbol\">a<\/span> = .05, and because we suspect a direction of effect, we have a one-tailed test. To find our critical values for <span class=\"italic\">t<\/span>, we need to add one more piece of information: the degrees of freedom. For this example:<\/p>\r\n<p class=\"Equation\"><img class=\"_idGenObjectAttribute-107\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.4-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Text\">Going to our <span class=\"italic\">t<\/span>\u00a0table, a portion of which is found in <a href=\"#_idTextAnchor187\"><span class=\"Fig-table-number-underscore\">Table 8.1<\/span><\/a>, we locate the column corresponding to our one-tailed significance level of .05 and find where it intersects with the row for 3 degrees of freedom. As we can see in <a href=\"#_idTextAnchor187\"><span class=\"Fig-table-number-underscore\">Table 8.1<\/span><\/a>, our critical value is <span class=\"italic\">t<\/span>* = 2.353. (The complete <span class=\"italic\">t<\/span> table can be found in <a href=\"https:\/\/pressbooks.palomar.edu\/introtostats\/back-matter\/appendix-b\/\"><span class=\"Hyperlink-underscore\">Appendix B<\/span><\/a>.)<\/p>\r\n\r\n<div class=\"_idGenObjectLayout-1\">\r\n<div id=\"_idContainer344\" class=\"_idGenObjectStyleOverride-1\">\r\n<p class=\"Table-title\"><span class=\"Fig-table-number\"><a id=\"_idTextAnchor187\"><\/a>Table 8.1.<\/span> <span class=\"italic\">t<\/span> distribution table (<span class=\"italic\">t<\/span> table).<\/p>\r\n<p class=\"Table-footnote\">Adapted from \u201c<a href=\"https:\/\/commons.wikimedia.org\/wiki\/File:Tabla_t.png\"><span class=\"Hyperlink-underscore\">Tabla t<\/span><\/a>\u201d by Jsmura\/Wikimedia Commons, <a href=\"https:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\"><span class=\"Hyperlink-underscore\">CC BY-SA 4.0<\/span><\/a>.<\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n<p class=\"Text\">We can then shade this region on our <span class=\"italic\">t<\/span>\u00a0distribution to visualize our rejection region (<a href=\"#_idTextAnchor188\"><span class=\"Fig-table-number-underscore\">Figure 8.2<\/span><\/a>).<\/p>\r\n\r\n<div class=\"_idGenObjectLayout-2\">\r\n<div id=\"_idContainer345\" class=\"Side-legend\">\r\n<p class=\"Fig-legend\"><span class=\"Fig-table-number\"><a id=\"_idTextAnchor188\"><\/a>Figure 8.2.<\/span> Rejection region. (\u201c<a href=\"https:\/\/irl.umsl.edu\/oer-img\/73\"><span class=\"Hyperlink-underscore\">Rejection Region t2.353<\/span><\/a>\u201d by Judy Schmitt is licensed under <a href=\"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\"><span class=\"Hyperlink-underscore\">CC BY-NC-SA 4.0<\/span><\/a>.)<\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n<div class=\"_idGenObjectLayout-1\">\r\n<div id=\"_idContainer346\" class=\"_idGenObjectStyleOverride-1\"><img class=\"_idGenObjectAttribute-19\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Rejection_Region_t2.353-2.png\" alt=\"\" \/><\/div>\r\n<\/div>\r\n<h5 class=\"H3-step\"><span class=\"Step--\">Step 3:<\/span> Calculate the Test Statistic and Effect Size<\/h5>\r\n<p class=\"Text-1st\">The four processing times recipients experienced were 46 days, 58 days, 40 days, and 71 days. We will use these to calculate <img class=\"_idGenObjectAttribute-32\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn3.2-upperM-5.png\" alt=\"Upper M\" \/> and <span class=\"italic\">s<\/span> by first filling in the sum of squares in <a href=\"#_idTextAnchor189\"><span class=\"Fig-table-number-underscore\">Table 8.2<\/span><\/a>.<\/p>\r\n\r\n<div class=\"_idGenObjectLayout-1\">\r\n<div id=\"_idContainer348\" class=\"_idGenObjectStyleOverride-1\">\r\n<p class=\"Table-title\"><span class=\"Fig-table-number\"><a id=\"_idTextAnchor189\"><\/a>Table 8.2.<\/span> Sum of squares.<\/p>\r\n\r\n<table id=\"table031\" class=\"Foster-table\" style=\"height: 102px\"><colgroup> <col class=\"_idGenTableRowColumn-65\" \/> <col class=\"_idGenTableRowColumn-31\" \/> <col class=\"_idGenTableRowColumn-18\" \/> <\/colgroup>\r\n<thead>\r\n<tr class=\"Foster-table _idGenTableRowColumn-5\" style=\"height: 17px\">\r\n<td class=\"Foster-table Table-col-hd Table-col-hd CellOverride-8\" style=\"height: 17px;width: 121.383px\">\r\n<p class=\"Table-col-hd ParaOverride-4\"><span class=\"bold-italic\">X<\/span><\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-col-hd Table-col-hd CellOverride-8\" style=\"height: 17px;width: 109.273px\">\r\n<p class=\"Table-col-hd ParaOverride-4\"><span class=\"bold-italic\">X<\/span> \u2212 <span class=\"bold-italic\">M<\/span><\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-col-hd Table-col-hd\" style=\"height: 17px;width: 164.844px\">\r\n<p class=\"Table-col-hd ParaOverride-4\">(<span class=\"bold-italic\">X<\/span> \u2212 <span class=\"bold-italic\">M<\/span>)<span class=\"superscript _idGenCharOverride-1\">2<\/span><\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\" style=\"height: 17px\">\r\n<td class=\"Foster-table Table-body CellOverride-25 _idGenCellOverride-1\" style=\"height: 17px;width: 121.383px\">\r\n<p class=\"Table-body ParaOverride-4\">46<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-25 _idGenCellOverride-1\" style=\"height: 17px;width: 109.273px\">\r\n<p class=\"Table-body\">\u22127.75<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-26 _idGenCellOverride-1\" style=\"height: 17px;width: 164.844px\">\r\n<p class=\"Table-body\">60.06<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\" style=\"height: 17px\">\r\n<td class=\"Foster-table Table-body CellOverride-8 _idGenCellOverride-2\" style=\"height: 17px;width: 121.383px\">\r\n<p class=\"Table-body ParaOverride-4\">58<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-8 _idGenCellOverride-2\" style=\"height: 17px;width: 109.273px\">\r\n<p class=\"Table-body\">4.25<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body _idGenCellOverride-2\" style=\"height: 17px;width: 164.844px\">\r\n<p class=\"Table-body\">18.06<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\" style=\"height: 17px\">\r\n<td class=\"Foster-table Table-body CellOverride-8 _idGenCellOverride-2\" style=\"height: 17px;width: 121.383px\">\r\n<p class=\"Table-body ParaOverride-4\">40<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-8 _idGenCellOverride-2\" style=\"height: 17px;width: 109.273px\">\r\n<p class=\"Table-body\">\u221213.75<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body _idGenCellOverride-2\" style=\"height: 17px;width: 164.844px\">\r\n<p class=\"Table-body\">189.06<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\" style=\"height: 17px\">\r\n<td class=\"Foster-table Table-body CellOverride-8 _idGenCellOverride-2\" style=\"height: 17px;width: 121.383px\">\r\n<p class=\"Table-body ParaOverride-4\">71<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-8 _idGenCellOverride-2\" style=\"height: 17px;width: 109.273px\">\r\n<p class=\"Table-body\">17.25<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body _idGenCellOverride-2\" style=\"height: 17px;width: 164.844px\">\r\n<p class=\"Table-body\">297.56<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-64\" style=\"height: 17px\">\r\n<td class=\"Foster-table Table-body-last Table-body CellOverride-8\" style=\"height: 17px;width: 121.383px\">\r\n<p class=\"Table-body ParaOverride-4\"><span class=\"Symbol-sigma-Table CharOverride-10\">\u03a3<\/span> = 215<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body-last Table-body CellOverride-8\" style=\"height: 17px;width: 109.273px\">\r\n<p class=\"Table-body ParaOverride-4\"><span class=\"Symbol-sigma-Table CharOverride-10\">\u03a3<\/span> = 0<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body-last Table-body\" style=\"height: 17px;width: 164.844px\">\r\n<p class=\"Table-body ParaOverride-4\"><span class=\"Symbol-sigma-Table CharOverride-10\">\u03a3<\/span> = 564.74<\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\n<\/div>\r\n<p class=\"Text\">After filling in the first row to get <span class=\"Symbol-sigma CharOverride-10\">\u03a3<\/span><span class=\"italic\">X<\/span> = 215, we find that the mean is <span class=\"italic\">M<\/span> = 53.75 (215 divided by sample size 4), which allows us to fill in the rest of the table to get our sum of squares <span class=\"italic\">SS<\/span> = 564.74, which we then plug in to the formula for standard deviation from <a href=\"https:\/\/pressbooks.palomar.edu\/introtostats\/chapter\/chapter-3\/\"><span class=\"Hyperlink-underscore\">Chapter 3<\/span><\/a>:<\/p>\r\n<p class=\"Equation\"><img class=\"_idGenObjectAttribute-108\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.5-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Text\">Next, we take this value and plug it in to the formula for standard error:<\/p>\r\n<p class=\"Equation\"><img class=\"_idGenObjectAttribute-109\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.6-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Text\">And, finally, we put the standard error, sample mean, and null hypothesis value into the formula for our test statistic <span class=\"italic\">t<\/span>:<\/p>\r\n<p class=\"Equation\"><img class=\"_idGenObjectAttribute-110\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.7-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Text\">This may seem like a lot of steps, but it is really just taking our raw data to calculate one value at a time and carrying that value forward into the next equation: data <span class=\"CharOverride-10\">\u2192<\/span> sample size\/degrees of freedom <span class=\"CharOverride-10\">\u2192<\/span> mean <span class=\"CharOverride-10\">\u2192<\/span> sum of squares <span class=\"CharOverride-10\">\u2192<\/span> standard deviation <span class=\"CharOverride-10\">\u2192<\/span> standard error <span class=\"CharOverride-10\">\u2192<\/span> test statistic. At each step, we simply match the symbols of what we just calculated to where they appear in the next formula to make sure we are plugging everything in correctly.<\/p>\r\n\r\n<h5 class=\"H3-step\"><span class=\"Step--\">Step 4:<\/span> Make the Decision<\/h5>\r\n<p class=\"Text-1st\">Now that we have our critical value and test statistic, we can make our decision using the same criteria we used for a <span class=\"italic\">z<\/span>\u00a0test. Our obtained <span class=\"italic\">t<\/span>\u00a0statistic was <span class=\"italic\">t <\/span>= 3.46 and our critical value was <span class=\"italic\">t<\/span>*\u00a0=\u00a02.353: <span class=\"italic\">t <\/span>&gt; <span class=\"italic\">t<\/span>*, so we reject the null hypothesis and conclude:<\/p>\r\n<p class=\"Text-indented-2p\">Based on our four applicants, the new processing time to receive welfare benefits takes longer on average (<span class=\"italic\">M<\/span> = 53.75, <span class=\"italic\">SD<\/span> = 13.72) than the old processing system, <span class=\"italic\">t<\/span>(3) = 3.46, <span class=\"italic\">p<\/span>\u00a0&lt;\u00a0.05, <span class=\"italic\">d<\/span> = 1.74.<\/p>\r\n<p class=\"Text\">Notice that we also include the degrees of freedom in parentheses next to <span class=\"italic\">t<\/span>. <a href=\"#_idTextAnchor190\"><span class=\"Fig-table-number-underscore\">Figure 8.3<\/span><\/a> shows the output from JASP.<\/p>\r\n\r\n<div class=\"textbox textbox--sidebar\">\r\n<h5><a href=\"#_idTextAnchor190\"><span class=\"Fig-table-number\"><span class=\"Fig-table-number-underscore\">FIGURE 8.3<\/span><\/span><\/a><span class=\"Fig-table-number\">.<\/span>\u00a0Output from JASP for the one-sample\u00a0<span class=\"italic\">t<\/span>\u00a0test described in this example. The output provides the\u00a0<span class=\"italic\">t<\/span>\u00a0value (3.462), degrees of freedom (3), and the exact\u00a0<span class=\"italic\">p<\/span> value (.020, which is less than .05). Note that the mean (53.750) and standard deviation for the sample are also provided (13.720). Based on our four applicants processing time, the new system takes longer on average (<span class=\"italic\">M<\/span>\u00a0= 53.75,\u00a0<span class=\"italic\">SD<\/span> = 13.72) than the\u00a0 old system to receive benefits, <span class=\"italic\">t<\/span>(3)\u00a0=\u00a03.46,\u00a0<span class=\"italic\">p<\/span> =\u00a0.02. \u00a0(\u201c<a href=\"https:\/\/irl.umsl.edu\/oer-img\/74\"><span class=\"Hyperlink-underscore\">JASP 1-sample t test<\/span><\/a>\u201d by Rupa G. Gordon\/Judy Schmitt is licensed under\u00a0<a href=\"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\"><span class=\"Hyperlink-underscore\">CC BY-NC-SA 4.0<\/span><\/a>.)<\/h5>\r\n<\/div>\r\n<div class=\"_idGenObjectLayout-1\">\r\n<div id=\"_idContainer354\" class=\"_idGenObjectStyleOverride-2\"><img class=\"_idGenObjectAttribute-19\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/JASP_1-sample_t_test-2.jpg\" alt=\"\" \/><\/div>\r\n<\/div>\r\n<h3><\/h3>\r\n<strong data-start=\"1600\" data-end=\"1612\">Example:<\/strong><br data-start=\"1612\" data-end=\"1615\" \/>Imagine a city rolls out a new public housing policy. The old average wait time for housing assistance was 12 months. A researcher collects a sample of 20 applicants under the new system and finds an average wait of 14 months. A one-sample t test allows us to ask: is this longer wait likely due to chance, or does it suggest the new policy increases delays? This mirrors the way we use welfare processing times in the current example \u2014 testing whether new systems help or harm marginalized communities.\r\n<h3 class=\"H1\">Confidence Intervals<\/h3>\r\n<p class=\"Text-1st\">Up to this point, we have learned how to estimate the population parameter for the mean using sample data and a sample statistic. From one point of view, this makes sense: we have one value for our parameter so we use a single value (called a [pb_glossary id=\"678\"]<a id=\"_idTextAnchor191\"><\/a>[\/pb_glossary]<span class=\"key-term\">point estimate<\/span>) to estimate it. However, we have seen that all statistics have sampling error and that the value we find for the sample mean will bounce around based on the people in our sample, simply due to random chance. Thinking about estimation from this perspective, it would make more sense to take that error into account rather than relying just on our point estimate. To do this, we calculate what is known as a confidence interval.<\/p>\r\n<p class=\"Text\">A [pb_glossary id=\"676\"]<a id=\"_idTextAnchor192\"><\/a>[\/pb_glossary]<span class=\"key-term\">confidence interval<\/span> starts with our point estimate and then creates a range of scores considered plausible based on our standard deviation, our sample size, and the level of confidence with which we would like to estimate the parameter. This range, which extends equally in both directions away from the point estimate, is called the [pb_glossary id=\"677\"]<a id=\"_idTextAnchor193\"><\/a>[\/pb_glossary]<span class=\"key-term\">margin of error<\/span>. We calculate the margin of error by multiplying our two-tailed critical value by our standard error:<\/p>\r\n<p class=\"Equation\"><img class=\"_idGenObjectAttribute-112\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.10-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Text\">One important consideration when calculating the margin of error is that it can only be calculated using the critical value for a two-tailed test. This is because the margin of error moves away from the point estimate in both directions, so a one-tailed value does not make sense.<\/p>\r\n<p class=\"Text\">The critical value we use will be based on a chosen level of confidence, which is equal to 1 \u2212 <span class=\"Symbol\">a<\/span>. Thus, a 95% level of confidence corresponds to <span class=\"Symbol\">a<\/span> = .05. Thus, at the .05 level of significance, we create a 95% confidence interval. How to interpret that is discussed further on.<\/p>\r\n<p class=\"Text\">Once we have our margin of error calculated, we add it to our point estimate for the mean to get an upper bound to the confidence interval and subtract it from the point estimate for the mean to get a lower bound for the confidence interval:<\/p>\r\n<p class=\"Equation\"><img class=\"_idGenObjectAttribute-113\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.11-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Text\">or simply:<\/p>\r\n<p class=\"Equation\"><img class=\"_idGenObjectAttribute-114\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.12-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Text\">To write out a confidence interval, we always use round brackets (i.e., parentheses) and put the lower bound, a comma, and the upper bound:<\/p>\r\n<p class=\"Equation\"><img class=\"_idGenObjectAttribute-115\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.13-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Text\">Let\u2019s see what this looks like with some actual numbers by taking our welfare application data and using it to create a 95% confidence interval estimating the average length of time it takes to receive benefits. We already found that our average was <span class=\"italic\">M<\/span> = 53.75 days and our standard error was <img class=\"_idGenObjectAttribute-6\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.1a-2.png\" alt=\"\" \/> = 6.86. We also found a critical value to test our hypothesis, but remember that we were testing a one-tailed hypothesis, so that critical value won\u2019t work. To see why that is, look at the column headers on the <span class=\"italic\">t<\/span>\u00a0table. The column for one-tailed <span class=\"Symbol\">a<\/span> = .05 is the same as a two-tailed <span class=\"Symbol\">a<\/span> = .10. If we used the old critical value, we\u2019d actually be creating a 90% confidence interval (1.00 \u2212 0.10 = 0.90, or 90%). To find the correct value, we use the column for two-tailed <span class=\"Symbol\">a<\/span> = .05 and, again, the row for 3 degrees of freedom, to find <span class=\"italic\">t<\/span>* = 3.182.<\/p>\r\n<p class=\"Text\">Now we have all the pieces we need to construct our confidence interval:<\/p>\r\n<img class=\"_idGenObjectAttribute-114\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.12-2.png\" alt=\"\" \/>\r\n<p class=\"Equation ParaOverride-23\"><img class=\"_idGenObjectAttribute-116\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.14-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Equation\"><img class=\"_idGenObjectAttribute-117\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.15-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Equation\"><img class=\"_idGenObjectAttribute-118\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.16-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Equation ParaOverride-24\"><img class=\"_idGenObjectAttribute-119\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.17-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Text\">So we find that our 95% confidence interval runs from 31.92 days to 75.58 days, but what does that actually mean? The range (31.92, 75.58) represents values of the mean that we consider reasonable or plausible based on our observed data. It includes our point estimate of the mean, <span class=\"italic\">M<\/span>\u00a0= 53.75, in the center, but it also has a range of values that could also have been the case based on what we know about how much these scores vary (i.e., our standard error).<\/p>\r\n<p class=\"Text\">It is very tempting to also interpret this interval by saying that we are 95% confident that the true population mean falls within the range (31.92, 75.58), but this is not true. The reason it is not true is that phrasing our interpretation this way suggests that we have firmly established an interval and the population mean does or does not fall into it, suggesting that our interval is firm and the population mean will move around. However, the population mean is an absolute that does not change; it is our interval that will vary from data collection to data collection, even taking into account our standard error. The correct interpretation, then, is that we are 95% confident that the range (31.92, 75.58) brackets the true population mean. This is a very subtle difference, but it is an important one.<\/p>\r\nConsider studying wage gaps for women of color compared to national averages. Instead of estimating the population wage with a single sample mean, we construct a confidence interval. If our 95% CI for the average wage is ($37,000, $42,000), we can say this range of values is plausible based on the data. If the national mean is $45,000, and that value falls outside our confidence interval, we reject the null hypothesis and conclude there is a real gap. Confidence intervals thus help quantify inequity while accounting for uncertainty in our sample.\r\n<h4 class=\"H2\">Hypothesis Testing with Confidence Intervals<\/h4>\r\n<p class=\"Text-1st\">As a function of how they are constructed, we can also use confidence intervals to test hypotheses. However, we are limited to testing two-tailed hypotheses only, because of how the intervals work, as discussed above.<\/p>\r\n<p class=\"Text\">Once a confidence interval has been constructed, using it to test a hypothesis is simple. If the range of the confidence interval brackets (or contains, or is around) the null hypothesis value, we fail to reject the null hypothesis. If it does not bracket the null hypothesis value (i.e., if the entire range is above the null hypothesis value or below it), we reject the null hypothesis. The reason for this is clear if we think about what a confidence interval represents. Remember: a confidence interval is a range of values that we consider reasonable or plausible based on our data. Thus, if the null hypothesis value is in that range, then it is a value that is plausible based on our observations. If the null hypothesis is plausible, then we have no reason to reject it. Thus, if our confidence interval brackets the null hypothesis value, thereby making it a reasonable or plausible value based on our observed data, then we have no evidence against the null hypothesis and fail to reject it. However, if we build a confidence interval of reasonable values based on our observations and it does not contain the null hypothesis value, then we have no empirical (observed) reason to believe the null hypothesis value and therefore reject the null hypothesis.<\/p>\r\n<p class=\"Example-New\"><span class=\"Example--\">Example <\/span> Friendliness<\/p>\r\n<p class=\"Text-1st\">You hear that the national average on a measure of friendliness is 38 points. You want to know if people in your community are more or less friendly than people nationwide, so you collect data from 30 random people in town to look for a difference. We\u2019ll follow the same four-step hypothesis-testing procedure as before.<\/p>\r\n\r\n<h5 class=\"H3-step\"><span class=\"Step--\">Step 1:<\/span> State the Hypotheses<\/h5>\r\n<p class=\"Text-1st\">We will start by laying out our null and alternative hypotheses:<\/p>\r\n<p class=\"Equation\"><img class=\"_idGenObjectAttribute-120\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.18-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Equation\"><img class=\"_idGenObjectAttribute-121\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.19-2.png\" alt=\"\" \/><\/p>\r\n\r\n<h5 class=\"H3-step\"><span class=\"Step--\">Step 2:<\/span> Find the Critical Values<\/h5>\r\n<p class=\"Text-1st\">We need our critical values in order to determine the width of our margin of error. We will assume a significance level of <span class=\"Symbol\">a<\/span> = .05 (which will give us a 95% CI). From the <span class=\"italic\">t<\/span>\u00a0table, a two-tailed critical value at <span class=\"Symbol\">a<\/span> = .05 with 29 degrees of freedom (<span class=\"italic\">N <\/span>\u2212 1 = 30 \u2212 1 = 29) is <span class=\"italic\">t<\/span>* = 2.045.<\/p>\r\n\r\n<h5 class=\"H3-step\"><span class=\"Step--\">Step 3:<\/span> Calculate the Confidence Interval<\/h5>\r\n<p class=\"Text-1st\">Now we can construct our confidence interval. After we collect our data, we find that the average person in our community scored 39.85, or <span class=\"italic\">M<\/span> = 39.85, and our standard deviation was <span class=\"italic\">s<\/span> = 5.61. First, we need to use this standard deviation, plus our sample size of <span class=\"italic\">N <\/span>= 30, to calculate our standard error:<\/p>\r\n<p class=\"Equation\"><img class=\"_idGenObjectAttribute-122\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.20-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Text\">Now we can put that value, our point estimate for the sample mean, and our critical value from Step\u00a02 into the formula for a confidence interval:<\/p>\r\n<img class=\"_idGenObjectAttribute-114\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.12-2.png\" alt=\"\" \/>\r\n<p class=\"Equation ParaOverride-23\"><img class=\"_idGenObjectAttribute-123\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.21-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Equation\"><img class=\"_idGenObjectAttribute-118\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.22-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Equation ParaOverride-25\"><img class=\"_idGenObjectAttribute-124\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.23-2.png\" alt=\"\" \/><\/p>\r\n<p class=\"Equation ParaOverride-26\"><img class=\"_idGenObjectAttribute-125\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.24-2.png\" alt=\"\" \/><\/p>\r\n\r\n<h5 class=\"H3-step\"><span class=\"Step--\">Step 4:<\/span> Make the Decision<\/h5>\r\n<p class=\"Text-1st\">Finally, we can compare our confidence interval to our null hypothesis value. The null value of 38 is higher than our lower bound of 37.76 and lower than our upper bound of 41.94. Thus, the confidence interval brackets our null hypothesis value, and we fail to reject the null hypothesis:<\/p>\r\n<p class=\"Text-indented-2p\">Fail to reject <span class=\"italic\">H<\/span><span class=\"subscript _idGenCharOverride-1\">0<\/span>. Based on our sample of 30 people, our community is not different in average friendliness (<span class=\"italic\">M<\/span> = 39.85, <span class=\"italic\">SD<\/span> = 5.61) than the nation as a whole, 95% CI = (37.76, 41.94).<\/p>\r\n<p class=\"Text\">Note that we don\u2019t report a test statistic or <span class=\"italic\">p<\/span> value because that is not how we tested the hypothesis, but we do report the value we found for our confidence interval.<\/p>\r\n<p class=\"Text\">An important characteristic of hypothesis testing is that both methods will always give you the same result. That is because both are based on the standard error and critical values in their calculations. To check this, we can calculate a <span class=\"italic\">t<\/span>\u00a0statistic for the example above and find it to be <span class=\"italic\">t <\/span>= 1.81, which is smaller than our critical value of 2.045 and fails to reject the null hypothesis.<\/p>\r\n<strong data-start=\"2949\" data-end=\"2961\">Example:<\/strong><br data-start=\"2961\" data-end=\"2964\" \/>Suppose researchers examine whether LGBTQ+ youth report different levels of school safety than the national average. They collect survey data from 40 youth and construct a 95% CI for the mean safety score: (2.8, 3.4). If the national mean is 3.7, it lies outside the interval, suggesting these youth experience significantly lower safety. This approach uses the same logic as a t test but communicates the result as a plausible range \u2014 often more intuitive for policymakers and advocates.\r\n\r\n<strong data-start=\"3634\" data-end=\"3680\">T Tests, Confidence Intervals, and Justice<\/strong><br data-start=\"3680\" data-end=\"3683\" \/>T tests and confidence intervals give us ways to work with incomplete information, which is nearly always the case in real-world research. They allow us to test whether observed disparities are likely due to chance and to estimate the plausible size of those disparities. For social justice work, these methods are invaluable: they give voice to underrepresented groups by showing that even small samples can provide meaningful evidence, and they help ensure that findings are presented not as absolutes but as ranges that reflect uncertainty and complexity.\r\n<h3 class=\"H1\">Exercises<\/h3>\r\n<ol>\r\n \t<li class=\"Numbered-list-Exercises-1st\">What is the difference between a <span class=\"italic\">z<\/span>\u00a0test and a one-sample <span class=\"italic\">t<\/span>\u00a0test?<\/li>\r\n \t<li class=\"Numbered-list-Exercises\">What does a confidence interval represent?<\/li>\r\n \t<li class=\"Numbered-list-Exercises\">What is the relationship between a chosen level of confidence for a confidence interval and how wide that interval is? For instance, if you move from a 95% CI to a 90% CI, what happens? Hint: look at the <span class=\"italic\">t<\/span>\u00a0table to see how critical values change when you change levels of significance.<\/li>\r\n \t<li class=\"Numbered-list-Exercises\">Construct a confidence interval around the sample mean <span class=\"italic\">M<\/span> = 25 for the following conditions:\r\n<ol>\r\n \t<li class=\"Numbered-list-Exercises-sub _idGenParaOverride-1\"><span class=\"italic\">N <\/span>= 25, <span class=\"italic\">s<\/span> = 15, 95% confidence level<\/li>\r\n \t<li class=\"Numbered-list-Exercises-sub _idGenParaOverride-1\"><span class=\"italic\">N <\/span>= 25, <span class=\"italic\">s<\/span> = 15, 90% confidence level<\/li>\r\n \t<li class=\"Numbered-list-Exercises-sub _idGenParaOverride-1\"><img class=\"_idGenObjectAttribute-6\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.1a-2.png\" alt=\"\" \/> = 4.5, <span class=\"Symbol\">a<\/span> = .05, <span class=\"italic\">d<\/span><span class=\"italic\">f<\/span> = 20<\/li>\r\n \t<li class=\"Numbered-list-Exercises-sub _idGenParaOverride-1\"><span class=\"italic\">s<\/span> = 12, <span class=\"italic\">d<\/span><span class=\"italic\">f<\/span> = 16 (yes, that is all the information you need)<\/li>\r\n<\/ol>\r\n<\/li>\r\n \t<li class=\"Numbered-list-Exercises\">True or false: A confidence interval represents the most likely location of the true population mean.<\/li>\r\n \t<li class=\"Numbered-list-Exercises\">You hear that college campuses may differ from the general population in terms of political affiliation, and you want to use hypothesis testing to see if this is true and, if so, how big the difference is. You know that the average political affiliation in the nation is <img class=\"_idGenObjectAttribute-31\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/> = 4.00 on a scale of 1.00 to 7.00, so you gather data from 150 college students across the nation to see if there is a difference. You find that the average score is 3.76 with a standard deviation of 1.52. Use a one-sample <span class=\"italic\">t<\/span>\u00a0test to see if there is a difference at the <span class=\"Symbol\">a<\/span> = .05 level.<\/li>\r\n \t<li class=\"Numbered-list-Exercises\">You hear a lot of talk about increasing global temperature, so you decide to see for yourself if there has been an actual change in recent years. You know that the average land temperature from 1951-1980 was 8.79 degrees Celsius. You find annual average temperature data from 1981\u20132017 and decide to construct a 99% confidence interval (because you want to be as sure as possible and look for differences in both directions, not just one) using this data to test for a difference from the previous average.\r\n<table id=\"table032\" class=\"Foster-table\"><colgroup> <col class=\"_idGenTableRowColumn-66\" \/> <col class=\"_idGenTableRowColumn-67\" \/><\/colgroup>\r\n<thead>\r\n<tr class=\"Foster-table _idGenTableRowColumn-5\">\r\n<td class=\"Foster-table Table-col-hd CellOverride-27\">\r\n<p class=\"Table-col-hd ParaOverride-4\">Year<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-col-hd CellOverride-28\">\r\n<p class=\"Table-col-hd ParaOverride-4\">Temp<\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-1\">\r\n<p class=\"Table-body\">1981<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-1\">\r\n<p class=\"Table-body ParaOverride-5\">9.301<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">1982<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">8.788<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">1983<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.173<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">1984<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">8.824<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">1985<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">8.799<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">1986<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">8.985<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">1987<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.141<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">1988<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.345<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">1989<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.076<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-8\">\r\n<td class=\"Foster-table Table-body-last Table-body CellOverride-27\">\r\n<p class=\"Table-body\">1990<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body-last Table-body CellOverride-28\">\r\n<p class=\"Table-body ParaOverride-5\">9.378<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-68\">\r\n<td class=\"Foster-table Table-body CellOverride-29 _idGenCellOverride-6\">\r\n<p class=\"Table-body\">1991<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-30 _idGenCellOverride-6\">\r\n<p class=\"Table-body ParaOverride-5\">9.336<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">1992<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">8.974<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">1993<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.008<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">1994<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.175<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">1995<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.484<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">1996<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.168<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">1997<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.326<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">1998<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.660<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">1999<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.406<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-8\">\r\n<td class=\"Foster-table Table-body-last Table-body CellOverride-27\">\r\n<p class=\"Table-body\">2000<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body-last Table-body CellOverride-28\">\r\n<p class=\"Table-body ParaOverride-5\">9.332<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-68\">\r\n<td class=\"Foster-table Table-body CellOverride-29 _idGenCellOverride-6\">\r\n<p class=\"Table-body\">2001<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-30 _idGenCellOverride-6\">\r\n<p class=\"Table-body ParaOverride-5\">9.542<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">2002<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.695<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">2003<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.649<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">2004<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.451<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">2005<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.829<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">2006<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.662<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">2007<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.876<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">2008<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.581<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">2009<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.657<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-8\">\r\n<td class=\"Foster-table Table-body-last Table-body CellOverride-27\">\r\n<p class=\"Table-body\">2010<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body-last Table-body CellOverride-28\">\r\n<p class=\"Table-body ParaOverride-5\">9.828<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-68\">\r\n<td class=\"Foster-table Table-body CellOverride-29 _idGenCellOverride-6\">\r\n<p class=\"Table-body\">2011<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-30 _idGenCellOverride-6\">\r\n<p class=\"Table-body ParaOverride-5\">9.650<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">2012<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.635<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">2013<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.753<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">2014<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.714<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">2015<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">9.962<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">2016<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">10.160<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\r\n<p class=\"Table-body\">2017<\/p>\r\n<\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\r\n<p class=\"Table-body ParaOverride-5\">10.049<\/p>\r\n<\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\"><\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\"><\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\r\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\"><\/td>\r\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\"><\/td>\r\n<\/tr>\r\n<tr class=\"Foster-table _idGenTableRowColumn-8\">\r\n<td class=\"Foster-table Table-body-last Table-body CellOverride-27\"><\/td>\r\n<td class=\"Foster-table Table-body-last Table-body CellOverride-28\"><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/li>\r\n \t<li class=\"Numbered-list-Exercises\">Determine whether you would reject or fail to reject the null hypothesis in the following situations:\r\n<ol>\r\n \t<li class=\"Numbered-list-Exercises-sub _idGenParaOverride-1\"><span class=\"italic\">t<\/span> = 2.58, <span class=\"italic\">N <\/span>= 21, two-tailed test at <span class=\"Symbol\">a<\/span> = .05<\/li>\r\n \t<li class=\"Numbered-list-Exercises-sub _idGenParaOverride-1\"><span class=\"italic\">t<\/span> = 1.99, <span class=\"italic\">N <\/span>= 49, one-tailed test at <span class=\"Symbol\">a<\/span> = .01<\/li>\r\n \t<li class=\"Numbered-list-Exercises-sub _idGenParaOverride-1\"><img class=\"_idGenObjectAttribute-31\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/> = 47.82, 99% CI = (48.71, 49.28)<\/li>\r\n \t<li class=\"Numbered-list-Exercises-sub _idGenParaOverride-1\"><img class=\"_idGenObjectAttribute-31\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/> = 0, 95% CI = (\u22120.15, 0.20)<\/li>\r\n<\/ol>\r\n<\/li>\r\n \t<li class=\"Numbered-list-Exercises\">You are curious about how people feel about craft beer, so you gather data from 55 people in the city on whether or not they like it. You code your data so that 0 is neutral, positive scores indicate liking craft beer, and negative scores indicate disliking craft beer. You find that the average opinion was <span class=\"italic\">M<\/span> = 1.10 and the spread was <span class=\"italic\">s<\/span> = 0.40, and you test for a difference from 0 at the <span class=\"Symbol\">a<\/span> = .05 level.<\/li>\r\n \t<li class=\"Numbered-list-Exercises\">You want to know if college students have more stress in their daily lives than the general population (<img class=\"_idGenObjectAttribute-31\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/> = 12), so you gather data from 25 people to test your hypothesis. Your sample has an average stress score of <span class=\"italic\">M<\/span> = 13.11 and a standard deviation of <span class=\"italic\">s<\/span> = 3.89. Use a one-sample <span class=\"italic\">t<\/span>\u00a0test to see if there is a difference.<\/li>\r\n<\/ol>\r\n<div class=\"textbox textbox--learning-objectives\"><header class=\"textbox__header\">\r\n<h3 class=\"H1\">Answers to Odd-Numbered Exercises<\/h3>\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\n1)\r\nA <span class=\"italic\">z<\/span>\u00a0test uses population standard deviation for calculating standard error and gets critical values based on the standard normal distribution. A <span class=\"italic\">t<\/span>\u00a0test uses sample standard deviation as an estimate when calculating standard error and gets critical values from the <span class=\"italic\">t<\/span>\u00a0distribution based on degrees of freedom.\r\n\r\n3)\r\n<span style=\"font-size: 0.8em;font-weight: lighter\">As the level of confidence gets higher, the interval gets wider. In order to speak with more confidence about having found the population mean, you need to cast a wider net. This happens because critical values for higher confidence levels are larger, which creates a wider margin of error.<\/span>\r\n\r\n5)\r\n<span style=\"font-size: 0.8em;font-weight: lighter\">False. A confidence interval is a range of plausible scores that may or may not bracket the true population mean.<\/span>\r\n\r\n7)\r\n<span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">M<\/span><span style=\"font-size: 0.8em;font-weight: lighter\"> = 9.44, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">s<\/span><span style=\"font-size: 0.8em;font-weight: lighter\"> = 0.35, <\/span><img class=\"_idGenObjectAttribute-6\" style=\"font-size: 0.8em;font-weight: lighter\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.1a-2.png\" alt=\"\" \/><span style=\"font-size: 0.8em;font-weight: lighter\"> = 0.06, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">d<\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">f <\/span><span style=\"font-size: 0.8em;font-weight: lighter\">= 36, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">t<\/span><span style=\"font-size: 0.8em;font-weight: lighter\">* = 2.719, 99% CI = (9.28, 9.60); CI does not bracket <\/span><img class=\"_idGenObjectAttribute-31\" style=\"font-size: 0.8em;font-weight: lighter\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/><span style=\"font-size: 0.8em;font-weight: lighter\">, reject null hypothesis; <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">d <\/span><span style=\"font-size: 0.8em;font-weight: lighter\">= 1.83<\/span>\r\n\r\n&nbsp;\r\n\r\n9)\r\n\r\n<span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">Step 1:<\/span> <span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">H<\/span><span class=\"subscript _idGenCharOverride-1\" style=\"font-size: 0.8em;font-weight: lighter\">0<\/span><span style=\"font-size: 0.8em;font-weight: lighter\">: <\/span><img class=\"_idGenObjectAttribute-31\" style=\"font-size: 0.8em;font-weight: lighter\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/><span style=\"font-size: 0.8em;font-weight: lighter\"> = 0 \u201cThe average person has a neutral opinion toward craft beer,\u201d <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">H<\/span><span class=\"subscript _idGenCharOverride-1\" style=\"font-size: 0.8em;font-weight: lighter\">A<\/span><span style=\"font-size: 0.8em;font-weight: lighter\">: <\/span><img class=\"_idGenObjectAttribute-31\" style=\"font-size: 0.8em;font-weight: lighter\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/><span style=\"font-size: 0.8em;font-weight: lighter\"> \u2260 0 \u201cOverall, people will have an opinion about craft beer, either good or bad.\u201d<\/span>\r\n\r\n<span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">Step 2:<\/span><span style=\"font-size: 0.8em;font-weight: lighter\"> Two-tailed test, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">d<\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">f<\/span><span style=\"font-size: 0.8em;font-weight: lighter\"> = 54, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">t<\/span><span style=\"font-size: 0.8em;font-weight: lighter\">* = 2.009<\/span>\r\n\r\n<span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">Step 3:<\/span> <span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">M<\/span><span style=\"font-size: 0.8em;font-weight: lighter\"> = 1.10, <\/span><img class=\"_idGenObjectAttribute-6\" style=\"font-size: 0.8em;font-weight: lighter\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.1a-2.png\" alt=\"\" \/><span style=\"font-size: 0.8em;font-weight: lighter\"> = 0.05, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">t <\/span><span style=\"font-size: 0.8em;font-weight: lighter\">= 22.00<\/span>\r\n\r\n<span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">Ste<\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">p 4:<\/span> <span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">t <\/span><span style=\"font-size: 0.8em;font-weight: lighter\">&gt; <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">t<\/span><span style=\"font-size: 0.8em;font-weight: lighter\">*, reject <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">H<\/span><span class=\"subscript CharOverride-17\" style=\"font-size: 0.8em;font-weight: lighter\">0<\/span><span style=\"font-size: 0.8em;font-weight: lighter\">. Based on opinions from 55 people, we can conclude that the average opinion of craft beer (<\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">M<\/span><span style=\"font-size: 0.8em;font-weight: lighter\"> = 1.10) is positive, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">t<\/span><span style=\"font-size: 0.8em;font-weight: lighter\">(54) = 22.00, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">p<\/span><span style=\"font-size: 0.8em;font-weight: lighter\"> &lt; .05, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">d<\/span><span style=\"font-size: 0.8em;font-weight: lighter\"> = 2.75.<\/span>\r\n<p class=\"Text ParaOverride-21\"><\/p>\r\n\r\n<\/div>\r\n<\/div>\r\n&nbsp;\r\n<h3 class=\"H1\"><img class=\"_idGenObjectAttribute-30\" style=\"text-align: initial;font-family: 'Crimson Text', 'Times New Roman', serif;font-size: 14pt\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/1-5.png\" alt=\"\" \/><\/h3>\r\n\"<a href=\"https:\/\/xkcd.com\/1478\">P-Values<\/a>\" by Randall Munroe\/xkcd.com is licensed under <a href=\"https:\/\/creativecommons.org\/licenses\/by-nc\/2.5\/\">CC BY-NC 2.5<\/a>.)\r\n\r\n<a href=\"https:\/\/xkcd.com\/1478\/\"><img src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/p_values_2x.png\" alt=\"\" \/><\/a>","rendered":"<div class=\"textbox textbox--sidebar textbox--learning-objectives\">\n<header class=\"textbox__header\">\n<h3 class=\"Chapter-element-head\">Key Terms<\/h3>\n<\/header>\n<div class=\"textbox__content\">\n<p class=\"Key-terms\"><a href=\"#_idTextAnchor192\"><span class=\"Hyperlink-underscore\"><br \/>\nconfidence interval<\/span><\/a><\/p>\n<p class=\"Key-terms\"><a href=\"#_idTextAnchor193\"><span class=\"Hyperlink-underscore\">margin of error<\/span><\/a><\/p>\n<p class=\"Key-terms\"><a href=\"#_idTextAnchor191\"><span class=\"Hyperlink-underscore\">point estimate<\/span><\/a><\/p>\n<\/div>\n<\/div>\n<p class=\"Text-1st\">In <a href=\"https:\/\/pressbooks.palomar.edu\/introtostats\/chapter\/chapter-7\/\"><span class=\"Hyperlink-underscore\">Chapter 7<\/span><\/a>, we made a big leap from basic descriptive statistics into full hypothesis testing and inferential statistics. For the rest of the unit, we will be learning new tests, each of which is just a small adjustment on the test before it. In this chapter, we will learn about the first of three <span class=\"italic\">t<\/span>\u00a0tests, and we will learn a new method of testing the null hypothesis: confidence intervals.<\/p>\n<p><strong data-start=\"204\" data-end=\"237\">Social Justice and the t Test<\/strong><br data-start=\"237\" data-end=\"240\" \/>In the real world, we rarely know the exact parameters of a population \u2014 we only have samples. That is especially true in social justice research, where communities are often underrepresented in data collection. The t test gives us a way to use limited information from a sample to make inferences about larger populations. Combined with confidence intervals, it allows us to estimate not just a single number, but a plausible range of values. These tools give us more reliable ways to test whether differences we observe \u2014 such as disparities in wages, housing access, or health outcomes \u2014 are random or evidence of systemic inequality.<\/p>\n<h3 class=\"H1\">The <span class=\"bold-italic CharOverride-4\">t<\/span> Statistic<\/h3>\n<p class=\"Text-1st\">In <a href=\"https:\/\/pressbooks.palomar.edu\/introtostats\/chapter\/chapter-7\/\"><span class=\"Hyperlink-underscore\">Chapter 7<\/span><\/a>, we were introduced to hypothesis testing using the <span class=\"italic\">z<\/span>\u00a0statistic for sample means that we learned in <a href=\"https:\/\/pressbooks.palomar.edu\/introtostats\/part\/unit-1-fundamentals-of-statistics\/\"><span class=\"Hyperlink-underscore\">Unit 1<\/span><\/a>. This was a useful way to link the material and ease us into the new way to looking at data, but it isn\u2019t a very common test because it relies on knowing the population\u2019s standard deviation, <span class=\"Symbol\">s<\/span>, which is rarely going to be the case. Instead, we will estimate that parameter <span class=\"Symbol\">s<\/span> using the sample statistic <span class=\"italic\">s<\/span> in the same way that we estimate <img decoding=\"async\" class=\"_idGenObjectAttribute-31\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/> using <img decoding=\"async\" class=\"_idGenObjectAttribute-32\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn3.2-upperM-5.png\" alt=\"Upper M\" \/> (<img decoding=\"async\" class=\"_idGenObjectAttribute-31\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/> will still appear in our formulas because we suspect something about its value and that is what we are testing). Our new statistic is called <span class=\"italic\">t<\/span>, and for testing one population mean using a single sample (called a one-sample <span class=\"italic\">t<\/span>\u00a0test) it takes the form:<\/p>\n<p class=\"Equation\"><img decoding=\"async\" class=\"_idGenObjectAttribute-104\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn8.1-2.png\" alt=\"\" \/><\/p>\n<p class=\"Text\">Notice that <span class=\"italic\">t <\/span>looks almost identical to <span class=\"italic\">z<\/span>; this is because they test the exact same thing: the value of a sample mean compared to what we expect of the population. The only difference is that the standard error is now denoted <img decoding=\"async\" class=\"_idGenObjectAttribute-6\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.1a-2.png\" alt=\"\" \/> to indicate that we use the sample statistic for standard deviation, <span class=\"italic\">s<\/span>, instead of the population parameter <span class=\"Symbol\">s<\/span>. The process of using and interpreting the standard error and the full test statistic remain exactly the same.<\/p>\n<p class=\"Text\">In <a href=\"https:\/\/pressbooks.palomar.edu\/introtostats\/chapter\/chapter-3\/\"><span class=\"Hyperlink-underscore\">Chapter 3<\/span><\/a> we learned that the formulas for sample standard deviation and population standard deviation differ by one key factor: the denominator for the parameter is <img decoding=\"async\" class=\"_idGenObjectAttribute-36\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn3.2-upperN-3.png\" alt=\"Upper N\" \/> but the denominator for the statistic is <span class=\"italic\">N <\/span>\u2212 1, also known as degrees of freedom, <span class=\"italic\">d<\/span><span class=\"italic\">f<\/span>. Because we are using a new measure of spread, we can no longer use the standard normal distribution and the <span class=\"italic\">z<\/span>\u00a0table to find our critical values. For <span class=\"italic\">t<\/span>\u00a0tests, we will use the <span class=\"italic\">t<\/span>\u00a0distribution and <span class=\"italic\">t<\/span>\u00a0table to find these values.<\/p>\n<p class=\"Text\">The <span class=\"italic\">t<\/span>\u00a0distribution, like the standard normal distribution, is symmetric and normally distributed with a mean of 0 and standard error (as the measure of standard deviation for sampling distributions) of 1. However, because the calculation of standard error uses degrees of freedom, there will be a different <span class=\"italic\">t<\/span>\u00a0distribution for every degree of freedom. Luckily, they all work exactly the same, so in practice this difference is minor.<\/p>\n<p class=\"Text\"><a href=\"#_idTextAnchor186\"><span class=\"Fig-table-number-underscore\">Figure 8.1<\/span><\/a> shows four curves: a normal distribution curve labeled <span class=\"italic\">z<\/span>, and three <span class=\"italic\">t<\/span>\u00a0distribution curves for 2, 10, and 30 degrees of freedom. Two things should stand out: First, for lower degrees of freedom (e.g., 2), the tails of the distribution are much fatter, meaning the a larger proportion of the area under the curve falls in the tail. This means that we will have to go farther out into the tail to cut off the portion corresponding to 5% or <span class=\"Symbol\">a<\/span> = .05, which will in turn lead to higher critical values. Second, as the degrees of freedom increase, we get closer and closer to the <span class=\"italic\">z <\/span>curve. Even the distribution with <span class=\"italic\">d<\/span><span class=\"italic\">f<\/span> = 30, corresponding to a sample size of just 31 people, is nearly indistinguishable from <span class=\"italic\">z<\/span>. In fact, a <span class=\"italic\">t<\/span>\u00a0distribution with infinite degrees of freedom (theoretically, of course) is exactly the standard normal distribution. Because of this, the bottom row of the <span class=\"italic\">t<\/span>\u00a0table also includes the critical values for <span class=\"italic\">z<\/span>\u00a0tests at the specific significance levels. Even though these curves are very close, it is still important to use the correct table and critical values, because small differences can add up quickly.<\/p>\n<div class=\"_idGenObjectLayout-2\">\n<div id=\"_idContainer338\" class=\"Legend-below\">\n<p class=\"Fig-legend\"><span class=\"Fig-table-number\"><a id=\"_idTextAnchor186\"><\/a>Figure 8.1.<\/span> Distributions comparing effects of degrees of freedom. (\u201c<a href=\"https:\/\/irl.umsl.edu\/oer-img\/72\"><span class=\"Hyperlink-underscore\">Distributions Comparing Effects of Degrees of Freedom<\/span><\/a>\u201d by Judy Schmitt is licensed under <a href=\"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\"><span class=\"Hyperlink-underscore\">CC BY-NC-SA 4.0<\/span><\/a>.)<\/p>\n<\/div>\n<\/div>\n<div class=\"_idGenObjectLayout-1\">\n<div id=\"_idContainer339\" class=\"_idGenObjectStyleOverride-1\"><img decoding=\"async\" class=\"_idGenObjectAttribute-19\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/MicrosoftTeams-image-19.jpg\" alt=\"\" \/><\/div>\n<\/div>\n<p class=\"Text\">The <span class=\"italic\">t<\/span>\u00a0distribution table lists critical values for one- and two-tailed tests at several levels of significance, arranged into columns. The rows of the <span class=\"italic\">t<\/span>\u00a0table list degrees of freedom up to <span class=\"italic\">d<\/span><span class=\"italic\">f <\/span>= 100 in order to use the appropriate distribution curve. It does not, however, list all possible degrees of freedom in this range, because that would take too many rows. Above <span class=\"italic\">d<\/span><span class=\"italic\">f <\/span>=\u00a040, the rows jump in increments of 10. If a problem requires you to find critical values and the exact degrees of freedom is not listed, you always round down to the next smallest number. For example, if you have 48 people in your sample, the degrees of freedom are <span class=\"italic\">N <\/span>\u2212 1 = 48 \u2212 1 = 47; however, 47 doesn\u2019t appear on our table, so we round down and use the critical values for <span class=\"italic\">d<\/span><span class=\"italic\">f <\/span>= 40, even though 50 is closer. We do this because it avoids inflating Type I error (false positives, see <a href=\"https:\/\/pressbooks.palomar.edu\/introtostats\/chapter\/chapter-7\/\"><span class=\"Hyperlink-underscore\">Chapter 7<\/span><\/a>) by using criteria that are too\u00a0lax.<\/p>\n<p><strong data-start=\"981\" data-end=\"993\">Example:<\/strong><br data-start=\"993\" data-end=\"996\" \/>Suppose we\u2019re studying high school graduation rates among Indigenous students in a small district. With only a few students in the sample, our degrees of freedom are low. The t distribution accounts for this extra uncertainty by using \u201cfatter tails.\u201d This means we need stronger evidence to reject the null when our sample is small. In practice, it keeps us cautious about making sweeping claims from limited data, while still giving us a method to test hypotheses.<\/p>\n<h3 class=\"H1\">Hypothesis Testing with <span class=\"bold-italic CharOverride-4\">t<\/span><\/h3>\n<p class=\"Text-1st\">Hypothesis testing with the <span class=\"italic\">t<\/span>\u00a0statistic works exactly the same way as <span class=\"italic\">z<\/span>\u00a0tests did, following the four-step process of (1) stating the hypotheses, (2) finding the critical values, (3) computing the test statistic and effect size, and (4) making the decision.<\/p>\n<p class=\"Example-New\"><span class=\"Example--\">Example <\/span> Oil Change Speed<\/p>\n<p class=\"Text-1st\">We will work though an example: Let\u2019s say that the welfare office changed application systems.\u00a0 The old system approved benefits in about 30 days and you suspect that the new system takes much longer. After four people applied for welfare benefits, you think you have enough evidence to demonstrate this.<\/p>\n<h5 class=\"H3-step\"><span class=\"Step--\">Step 1:<\/span> State the Hypotheses<\/h5>\n<p class=\"Text-1st\">Our hypotheses for one-sample <span class=\"italic\">t<\/span>\u00a0tests are identical to those we used for <span class=\"italic\">z<\/span>\u00a0tests. We still state the null and alternative hypotheses mathematically in terms of the population parameter and written out in readable English. For our example:<\/p>\n<p><strong>H<sub>o <\/sub>:There is no difference in the average process time for welfare application between the new and old system.<\/strong><\/p>\n<p><strong>H<sub>o\u00a0<\/sub>: \u03bc = 30 days<\/strong><\/p>\n<p><strong>H<sub>a<\/sub><sub>\u00a0<\/sub>:The average process time for welfare application takes longer with the new system.\u00a0<\/strong><\/p>\n<p><strong>H<sub>a<\/sub><sub>\u00a0<\/sub>: \u03bc &gt; 30 days<\/strong><\/p>\n<h5 class=\"H3-step\"><span class=\"Step--\">Step 2:<\/span> Find the Critical Values<\/h5>\n<p class=\"Text-1st\">As noted above, our critical values still delineate the area in the tails under the curve corresponding to our chosen level of significance. Because we have no reason to change significance levels, we will use <span class=\"Symbol\">a<\/span> = .05, and because we suspect a direction of effect, we have a one-tailed test. To find our critical values for <span class=\"italic\">t<\/span>, we need to add one more piece of information: the degrees of freedom. For this example:<\/p>\n<p class=\"Equation\"><img decoding=\"async\" class=\"_idGenObjectAttribute-107\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.4-2.png\" alt=\"\" \/><\/p>\n<p class=\"Text\">Going to our <span class=\"italic\">t<\/span>\u00a0table, a portion of which is found in <a href=\"#_idTextAnchor187\"><span class=\"Fig-table-number-underscore\">Table 8.1<\/span><\/a>, we locate the column corresponding to our one-tailed significance level of .05 and find where it intersects with the row for 3 degrees of freedom. As we can see in <a href=\"#_idTextAnchor187\"><span class=\"Fig-table-number-underscore\">Table 8.1<\/span><\/a>, our critical value is <span class=\"italic\">t<\/span>* = 2.353. (The complete <span class=\"italic\">t<\/span> table can be found in <a href=\"https:\/\/pressbooks.palomar.edu\/introtostats\/back-matter\/appendix-b\/\"><span class=\"Hyperlink-underscore\">Appendix B<\/span><\/a>.)<\/p>\n<div class=\"_idGenObjectLayout-1\">\n<div id=\"_idContainer344\" class=\"_idGenObjectStyleOverride-1\">\n<p class=\"Table-title\"><span class=\"Fig-table-number\"><a id=\"_idTextAnchor187\"><\/a>Table 8.1.<\/span> <span class=\"italic\">t<\/span> distribution table (<span class=\"italic\">t<\/span> table).<\/p>\n<p class=\"Table-footnote\">Adapted from \u201c<a href=\"https:\/\/commons.wikimedia.org\/wiki\/File:Tabla_t.png\"><span class=\"Hyperlink-underscore\">Tabla t<\/span><\/a>\u201d by Jsmura\/Wikimedia Commons, <a href=\"https:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/\"><span class=\"Hyperlink-underscore\">CC BY-SA 4.0<\/span><\/a>.<\/p>\n<\/div>\n<\/div>\n<p class=\"Text\">We can then shade this region on our <span class=\"italic\">t<\/span>\u00a0distribution to visualize our rejection region (<a href=\"#_idTextAnchor188\"><span class=\"Fig-table-number-underscore\">Figure 8.2<\/span><\/a>).<\/p>\n<div class=\"_idGenObjectLayout-2\">\n<div id=\"_idContainer345\" class=\"Side-legend\">\n<p class=\"Fig-legend\"><span class=\"Fig-table-number\"><a id=\"_idTextAnchor188\"><\/a>Figure 8.2.<\/span> Rejection region. (\u201c<a href=\"https:\/\/irl.umsl.edu\/oer-img\/73\"><span class=\"Hyperlink-underscore\">Rejection Region t2.353<\/span><\/a>\u201d by Judy Schmitt is licensed under <a href=\"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\"><span class=\"Hyperlink-underscore\">CC BY-NC-SA 4.0<\/span><\/a>.)<\/p>\n<\/div>\n<\/div>\n<div class=\"_idGenObjectLayout-1\">\n<div id=\"_idContainer346\" class=\"_idGenObjectStyleOverride-1\"><img decoding=\"async\" class=\"_idGenObjectAttribute-19\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Rejection_Region_t2.353-2.png\" alt=\"\" \/><\/div>\n<\/div>\n<h5 class=\"H3-step\"><span class=\"Step--\">Step 3:<\/span> Calculate the Test Statistic and Effect Size<\/h5>\n<p class=\"Text-1st\">The four processing times recipients experienced were 46 days, 58 days, 40 days, and 71 days. We will use these to calculate <img decoding=\"async\" class=\"_idGenObjectAttribute-32\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn3.2-upperM-5.png\" alt=\"Upper M\" \/> and <span class=\"italic\">s<\/span> by first filling in the sum of squares in <a href=\"#_idTextAnchor189\"><span class=\"Fig-table-number-underscore\">Table 8.2<\/span><\/a>.<\/p>\n<div class=\"_idGenObjectLayout-1\">\n<div id=\"_idContainer348\" class=\"_idGenObjectStyleOverride-1\">\n<p class=\"Table-title\"><span class=\"Fig-table-number\"><a id=\"_idTextAnchor189\"><\/a>Table 8.2.<\/span> Sum of squares.<\/p>\n<table id=\"table031\" class=\"Foster-table\" style=\"height: 102px\">\n<colgroup>\n<col class=\"_idGenTableRowColumn-65\" \/>\n<col class=\"_idGenTableRowColumn-31\" \/>\n<col class=\"_idGenTableRowColumn-18\" \/> <\/colgroup>\n<thead>\n<tr class=\"Foster-table _idGenTableRowColumn-5\" style=\"height: 17px\">\n<td class=\"Foster-table Table-col-hd Table-col-hd CellOverride-8\" style=\"height: 17px;width: 121.383px\">\n<p class=\"Table-col-hd ParaOverride-4\"><span class=\"bold-italic\">X<\/span><\/p>\n<\/td>\n<td class=\"Foster-table Table-col-hd Table-col-hd CellOverride-8\" style=\"height: 17px;width: 109.273px\">\n<p class=\"Table-col-hd ParaOverride-4\"><span class=\"bold-italic\">X<\/span> \u2212 <span class=\"bold-italic\">M<\/span><\/p>\n<\/td>\n<td class=\"Foster-table Table-col-hd Table-col-hd\" style=\"height: 17px;width: 164.844px\">\n<p class=\"Table-col-hd ParaOverride-4\">(<span class=\"bold-italic\">X<\/span> \u2212 <span class=\"bold-italic\">M<\/span>)<span class=\"superscript _idGenCharOverride-1\">2<\/span><\/p>\n<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"Foster-table _idGenTableRowColumn-6\" style=\"height: 17px\">\n<td class=\"Foster-table Table-body CellOverride-25 _idGenCellOverride-1\" style=\"height: 17px;width: 121.383px\">\n<p class=\"Table-body ParaOverride-4\">46<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-25 _idGenCellOverride-1\" style=\"height: 17px;width: 109.273px\">\n<p class=\"Table-body\">\u22127.75<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-26 _idGenCellOverride-1\" style=\"height: 17px;width: 164.844px\">\n<p class=\"Table-body\">60.06<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\" style=\"height: 17px\">\n<td class=\"Foster-table Table-body CellOverride-8 _idGenCellOverride-2\" style=\"height: 17px;width: 121.383px\">\n<p class=\"Table-body ParaOverride-4\">58<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-8 _idGenCellOverride-2\" style=\"height: 17px;width: 109.273px\">\n<p class=\"Table-body\">4.25<\/p>\n<\/td>\n<td class=\"Foster-table Table-body _idGenCellOverride-2\" style=\"height: 17px;width: 164.844px\">\n<p class=\"Table-body\">18.06<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-6\" style=\"height: 17px\">\n<td class=\"Foster-table Table-body CellOverride-8 _idGenCellOverride-2\" style=\"height: 17px;width: 121.383px\">\n<p class=\"Table-body ParaOverride-4\">40<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-8 _idGenCellOverride-2\" style=\"height: 17px;width: 109.273px\">\n<p class=\"Table-body\">\u221213.75<\/p>\n<\/td>\n<td class=\"Foster-table Table-body _idGenCellOverride-2\" style=\"height: 17px;width: 164.844px\">\n<p class=\"Table-body\">189.06<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\" style=\"height: 17px\">\n<td class=\"Foster-table Table-body CellOverride-8 _idGenCellOverride-2\" style=\"height: 17px;width: 121.383px\">\n<p class=\"Table-body ParaOverride-4\">71<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-8 _idGenCellOverride-2\" style=\"height: 17px;width: 109.273px\">\n<p class=\"Table-body\">17.25<\/p>\n<\/td>\n<td class=\"Foster-table Table-body _idGenCellOverride-2\" style=\"height: 17px;width: 164.844px\">\n<p class=\"Table-body\">297.56<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-64\" style=\"height: 17px\">\n<td class=\"Foster-table Table-body-last Table-body CellOverride-8\" style=\"height: 17px;width: 121.383px\">\n<p class=\"Table-body ParaOverride-4\"><span class=\"Symbol-sigma-Table CharOverride-10\">\u03a3<\/span> = 215<\/p>\n<\/td>\n<td class=\"Foster-table Table-body-last Table-body CellOverride-8\" style=\"height: 17px;width: 109.273px\">\n<p class=\"Table-body ParaOverride-4\"><span class=\"Symbol-sigma-Table CharOverride-10\">\u03a3<\/span> = 0<\/p>\n<\/td>\n<td class=\"Foster-table Table-body-last Table-body\" style=\"height: 17px;width: 164.844px\">\n<p class=\"Table-body ParaOverride-4\"><span class=\"Symbol-sigma-Table CharOverride-10\">\u03a3<\/span> = 564.74<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p class=\"Text\">After filling in the first row to get <span class=\"Symbol-sigma CharOverride-10\">\u03a3<\/span><span class=\"italic\">X<\/span> = 215, we find that the mean is <span class=\"italic\">M<\/span> = 53.75 (215 divided by sample size 4), which allows us to fill in the rest of the table to get our sum of squares <span class=\"italic\">SS<\/span> = 564.74, which we then plug in to the formula for standard deviation from <a href=\"https:\/\/pressbooks.palomar.edu\/introtostats\/chapter\/chapter-3\/\"><span class=\"Hyperlink-underscore\">Chapter 3<\/span><\/a>:<\/p>\n<p class=\"Equation\"><img decoding=\"async\" class=\"_idGenObjectAttribute-108\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.5-2.png\" alt=\"\" \/><\/p>\n<p class=\"Text\">Next, we take this value and plug it in to the formula for standard error:<\/p>\n<p class=\"Equation\"><img decoding=\"async\" class=\"_idGenObjectAttribute-109\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.6-2.png\" alt=\"\" \/><\/p>\n<p class=\"Text\">And, finally, we put the standard error, sample mean, and null hypothesis value into the formula for our test statistic <span class=\"italic\">t<\/span>:<\/p>\n<p class=\"Equation\"><img decoding=\"async\" class=\"_idGenObjectAttribute-110\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.7-2.png\" alt=\"\" \/><\/p>\n<p class=\"Text\">This may seem like a lot of steps, but it is really just taking our raw data to calculate one value at a time and carrying that value forward into the next equation: data <span class=\"CharOverride-10\">\u2192<\/span> sample size\/degrees of freedom <span class=\"CharOverride-10\">\u2192<\/span> mean <span class=\"CharOverride-10\">\u2192<\/span> sum of squares <span class=\"CharOverride-10\">\u2192<\/span> standard deviation <span class=\"CharOverride-10\">\u2192<\/span> standard error <span class=\"CharOverride-10\">\u2192<\/span> test statistic. At each step, we simply match the symbols of what we just calculated to where they appear in the next formula to make sure we are plugging everything in correctly.<\/p>\n<h5 class=\"H3-step\"><span class=\"Step--\">Step 4:<\/span> Make the Decision<\/h5>\n<p class=\"Text-1st\">Now that we have our critical value and test statistic, we can make our decision using the same criteria we used for a <span class=\"italic\">z<\/span>\u00a0test. Our obtained <span class=\"italic\">t<\/span>\u00a0statistic was <span class=\"italic\">t <\/span>= 3.46 and our critical value was <span class=\"italic\">t<\/span>*\u00a0=\u00a02.353: <span class=\"italic\">t <\/span>&gt; <span class=\"italic\">t<\/span>*, so we reject the null hypothesis and conclude:<\/p>\n<p class=\"Text-indented-2p\">Based on our four applicants, the new processing time to receive welfare benefits takes longer on average (<span class=\"italic\">M<\/span> = 53.75, <span class=\"italic\">SD<\/span> = 13.72) than the old processing system, <span class=\"italic\">t<\/span>(3) = 3.46, <span class=\"italic\">p<\/span>\u00a0&lt;\u00a0.05, <span class=\"italic\">d<\/span> = 1.74.<\/p>\n<p class=\"Text\">Notice that we also include the degrees of freedom in parentheses next to <span class=\"italic\">t<\/span>. <a href=\"#_idTextAnchor190\"><span class=\"Fig-table-number-underscore\">Figure 8.3<\/span><\/a> shows the output from JASP.<\/p>\n<div class=\"textbox textbox--sidebar\">\n<h5><a href=\"#_idTextAnchor190\"><span class=\"Fig-table-number\"><span class=\"Fig-table-number-underscore\">FIGURE 8.3<\/span><\/span><\/a><span class=\"Fig-table-number\">.<\/span>\u00a0Output from JASP for the one-sample\u00a0<span class=\"italic\">t<\/span>\u00a0test described in this example. The output provides the\u00a0<span class=\"italic\">t<\/span>\u00a0value (3.462), degrees of freedom (3), and the exact\u00a0<span class=\"italic\">p<\/span> value (.020, which is less than .05). Note that the mean (53.750) and standard deviation for the sample are also provided (13.720). Based on our four applicants processing time, the new system takes longer on average (<span class=\"italic\">M<\/span>\u00a0= 53.75,\u00a0<span class=\"italic\">SD<\/span> = 13.72) than the\u00a0 old system to receive benefits, <span class=\"italic\">t<\/span>(3)\u00a0=\u00a03.46,\u00a0<span class=\"italic\">p<\/span> =\u00a0.02. \u00a0(\u201c<a href=\"https:\/\/irl.umsl.edu\/oer-img\/74\"><span class=\"Hyperlink-underscore\">JASP 1-sample t test<\/span><\/a>\u201d by Rupa G. Gordon\/Judy Schmitt is licensed under\u00a0<a href=\"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\"><span class=\"Hyperlink-underscore\">CC BY-NC-SA 4.0<\/span><\/a>.)<\/h5>\n<\/div>\n<div class=\"_idGenObjectLayout-1\">\n<div id=\"_idContainer354\" class=\"_idGenObjectStyleOverride-2\"><img decoding=\"async\" class=\"_idGenObjectAttribute-19\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/JASP_1-sample_t_test-2.jpg\" alt=\"\" \/><\/div>\n<\/div>\n<h3><\/h3>\n<p><strong data-start=\"1600\" data-end=\"1612\">Example:<\/strong><br data-start=\"1612\" data-end=\"1615\" \/>Imagine a city rolls out a new public housing policy. The old average wait time for housing assistance was 12 months. A researcher collects a sample of 20 applicants under the new system and finds an average wait of 14 months. A one-sample t test allows us to ask: is this longer wait likely due to chance, or does it suggest the new policy increases delays? This mirrors the way we use welfare processing times in the current example \u2014 testing whether new systems help or harm marginalized communities.<\/p>\n<h3 class=\"H1\">Confidence Intervals<\/h3>\n<p class=\"Text-1st\">Up to this point, we have learned how to estimate the population parameter for the mean using sample data and a sample statistic. From one point of view, this makes sense: we have one value for our parameter so we use a single value (called a <a class=\"glossary-term\" aria-haspopup=\"dialog\" aria-describedby=\"definition\" href=\"#term_258_678\"><a id=\"_idTextAnchor191\"><\/a><\/a><span class=\"key-term\">point estimate<\/span>) to estimate it. However, we have seen that all statistics have sampling error and that the value we find for the sample mean will bounce around based on the people in our sample, simply due to random chance. Thinking about estimation from this perspective, it would make more sense to take that error into account rather than relying just on our point estimate. To do this, we calculate what is known as a confidence interval.<\/p>\n<p class=\"Text\">A <a class=\"glossary-term\" aria-haspopup=\"dialog\" aria-describedby=\"definition\" href=\"#term_258_676\"><a id=\"_idTextAnchor192\"><\/a><\/a><span class=\"key-term\">confidence interval<\/span> starts with our point estimate and then creates a range of scores considered plausible based on our standard deviation, our sample size, and the level of confidence with which we would like to estimate the parameter. This range, which extends equally in both directions away from the point estimate, is called the <a class=\"glossary-term\" aria-haspopup=\"dialog\" aria-describedby=\"definition\" href=\"#term_258_677\"><a id=\"_idTextAnchor193\"><\/a><\/a><span class=\"key-term\">margin of error<\/span>. We calculate the margin of error by multiplying our two-tailed critical value by our standard error:<\/p>\n<p class=\"Equation\"><img decoding=\"async\" class=\"_idGenObjectAttribute-112\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.10-2.png\" alt=\"\" \/><\/p>\n<p class=\"Text\">One important consideration when calculating the margin of error is that it can only be calculated using the critical value for a two-tailed test. This is because the margin of error moves away from the point estimate in both directions, so a one-tailed value does not make sense.<\/p>\n<p class=\"Text\">The critical value we use will be based on a chosen level of confidence, which is equal to 1 \u2212 <span class=\"Symbol\">a<\/span>. Thus, a 95% level of confidence corresponds to <span class=\"Symbol\">a<\/span> = .05. Thus, at the .05 level of significance, we create a 95% confidence interval. How to interpret that is discussed further on.<\/p>\n<p class=\"Text\">Once we have our margin of error calculated, we add it to our point estimate for the mean to get an upper bound to the confidence interval and subtract it from the point estimate for the mean to get a lower bound for the confidence interval:<\/p>\n<p class=\"Equation\"><img decoding=\"async\" class=\"_idGenObjectAttribute-113\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.11-2.png\" alt=\"\" \/><\/p>\n<p class=\"Text\">or simply:<\/p>\n<p class=\"Equation\"><img decoding=\"async\" class=\"_idGenObjectAttribute-114\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.12-2.png\" alt=\"\" \/><\/p>\n<p class=\"Text\">To write out a confidence interval, we always use round brackets (i.e., parentheses) and put the lower bound, a comma, and the upper bound:<\/p>\n<p class=\"Equation\"><img decoding=\"async\" class=\"_idGenObjectAttribute-115\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.13-2.png\" alt=\"\" \/><\/p>\n<p class=\"Text\">Let\u2019s see what this looks like with some actual numbers by taking our welfare application data and using it to create a 95% confidence interval estimating the average length of time it takes to receive benefits. We already found that our average was <span class=\"italic\">M<\/span> = 53.75 days and our standard error was <img decoding=\"async\" class=\"_idGenObjectAttribute-6\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.1a-2.png\" alt=\"\" \/> = 6.86. We also found a critical value to test our hypothesis, but remember that we were testing a one-tailed hypothesis, so that critical value won\u2019t work. To see why that is, look at the column headers on the <span class=\"italic\">t<\/span>\u00a0table. The column for one-tailed <span class=\"Symbol\">a<\/span> = .05 is the same as a two-tailed <span class=\"Symbol\">a<\/span> = .10. If we used the old critical value, we\u2019d actually be creating a 90% confidence interval (1.00 \u2212 0.10 = 0.90, or 90%). To find the correct value, we use the column for two-tailed <span class=\"Symbol\">a<\/span> = .05 and, again, the row for 3 degrees of freedom, to find <span class=\"italic\">t<\/span>* = 3.182.<\/p>\n<p class=\"Text\">Now we have all the pieces we need to construct our confidence interval:<\/p>\n<p><img decoding=\"async\" class=\"_idGenObjectAttribute-114\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.12-2.png\" alt=\"\" \/><\/p>\n<p class=\"Equation ParaOverride-23\"><img decoding=\"async\" class=\"_idGenObjectAttribute-116\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.14-2.png\" alt=\"\" \/><\/p>\n<p class=\"Equation\"><img decoding=\"async\" class=\"_idGenObjectAttribute-117\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.15-2.png\" alt=\"\" \/><\/p>\n<p class=\"Equation\"><img decoding=\"async\" class=\"_idGenObjectAttribute-118\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.16-2.png\" alt=\"\" \/><\/p>\n<p class=\"Equation ParaOverride-24\"><img decoding=\"async\" class=\"_idGenObjectAttribute-119\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.17-2.png\" alt=\"\" \/><\/p>\n<p class=\"Text\">So we find that our 95% confidence interval runs from 31.92 days to 75.58 days, but what does that actually mean? The range (31.92, 75.58) represents values of the mean that we consider reasonable or plausible based on our observed data. It includes our point estimate of the mean, <span class=\"italic\">M<\/span>\u00a0= 53.75, in the center, but it also has a range of values that could also have been the case based on what we know about how much these scores vary (i.e., our standard error).<\/p>\n<p class=\"Text\">It is very tempting to also interpret this interval by saying that we are 95% confident that the true population mean falls within the range (31.92, 75.58), but this is not true. The reason it is not true is that phrasing our interpretation this way suggests that we have firmly established an interval and the population mean does or does not fall into it, suggesting that our interval is firm and the population mean will move around. However, the population mean is an absolute that does not change; it is our interval that will vary from data collection to data collection, even taking into account our standard error. The correct interpretation, then, is that we are 95% confident that the range (31.92, 75.58) brackets the true population mean. This is a very subtle difference, but it is an important one.<\/p>\n<p>Consider studying wage gaps for women of color compared to national averages. Instead of estimating the population wage with a single sample mean, we construct a confidence interval. If our 95% CI for the average wage is ($37,000, $42,000), we can say this range of values is plausible based on the data. If the national mean is $45,000, and that value falls outside our confidence interval, we reject the null hypothesis and conclude there is a real gap. Confidence intervals thus help quantify inequity while accounting for uncertainty in our sample.<\/p>\n<h4 class=\"H2\">Hypothesis Testing with Confidence Intervals<\/h4>\n<p class=\"Text-1st\">As a function of how they are constructed, we can also use confidence intervals to test hypotheses. However, we are limited to testing two-tailed hypotheses only, because of how the intervals work, as discussed above.<\/p>\n<p class=\"Text\">Once a confidence interval has been constructed, using it to test a hypothesis is simple. If the range of the confidence interval brackets (or contains, or is around) the null hypothesis value, we fail to reject the null hypothesis. If it does not bracket the null hypothesis value (i.e., if the entire range is above the null hypothesis value or below it), we reject the null hypothesis. The reason for this is clear if we think about what a confidence interval represents. Remember: a confidence interval is a range of values that we consider reasonable or plausible based on our data. Thus, if the null hypothesis value is in that range, then it is a value that is plausible based on our observations. If the null hypothesis is plausible, then we have no reason to reject it. Thus, if our confidence interval brackets the null hypothesis value, thereby making it a reasonable or plausible value based on our observed data, then we have no evidence against the null hypothesis and fail to reject it. However, if we build a confidence interval of reasonable values based on our observations and it does not contain the null hypothesis value, then we have no empirical (observed) reason to believe the null hypothesis value and therefore reject the null hypothesis.<\/p>\n<p class=\"Example-New\"><span class=\"Example--\">Example <\/span> Friendliness<\/p>\n<p class=\"Text-1st\">You hear that the national average on a measure of friendliness is 38 points. You want to know if people in your community are more or less friendly than people nationwide, so you collect data from 30 random people in town to look for a difference. We\u2019ll follow the same four-step hypothesis-testing procedure as before.<\/p>\n<h5 class=\"H3-step\"><span class=\"Step--\">Step 1:<\/span> State the Hypotheses<\/h5>\n<p class=\"Text-1st\">We will start by laying out our null and alternative hypotheses:<\/p>\n<p class=\"Equation\"><img decoding=\"async\" class=\"_idGenObjectAttribute-120\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.18-2.png\" alt=\"\" \/><\/p>\n<p class=\"Equation\"><img decoding=\"async\" class=\"_idGenObjectAttribute-121\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.19-2.png\" alt=\"\" \/><\/p>\n<h5 class=\"H3-step\"><span class=\"Step--\">Step 2:<\/span> Find the Critical Values<\/h5>\n<p class=\"Text-1st\">We need our critical values in order to determine the width of our margin of error. We will assume a significance level of <span class=\"Symbol\">a<\/span> = .05 (which will give us a 95% CI). From the <span class=\"italic\">t<\/span>\u00a0table, a two-tailed critical value at <span class=\"Symbol\">a<\/span> = .05 with 29 degrees of freedom (<span class=\"italic\">N <\/span>\u2212 1 = 30 \u2212 1 = 29) is <span class=\"italic\">t<\/span>* = 2.045.<\/p>\n<h5 class=\"H3-step\"><span class=\"Step--\">Step 3:<\/span> Calculate the Confidence Interval<\/h5>\n<p class=\"Text-1st\">Now we can construct our confidence interval. After we collect our data, we find that the average person in our community scored 39.85, or <span class=\"italic\">M<\/span> = 39.85, and our standard deviation was <span class=\"italic\">s<\/span> = 5.61. First, we need to use this standard deviation, plus our sample size of <span class=\"italic\">N <\/span>= 30, to calculate our standard error:<\/p>\n<p class=\"Equation\"><img decoding=\"async\" class=\"_idGenObjectAttribute-122\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.20-2.png\" alt=\"\" \/><\/p>\n<p class=\"Text\">Now we can put that value, our point estimate for the sample mean, and our critical value from Step\u00a02 into the formula for a confidence interval:<\/p>\n<p><img decoding=\"async\" class=\"_idGenObjectAttribute-114\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.12-2.png\" alt=\"\" \/><\/p>\n<p class=\"Equation ParaOverride-23\"><img decoding=\"async\" class=\"_idGenObjectAttribute-123\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.21-2.png\" alt=\"\" \/><\/p>\n<p class=\"Equation\"><img decoding=\"async\" class=\"_idGenObjectAttribute-118\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.22-2.png\" alt=\"\" \/><\/p>\n<p class=\"Equation ParaOverride-25\"><img decoding=\"async\" class=\"_idGenObjectAttribute-124\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.23-2.png\" alt=\"\" \/><\/p>\n<p class=\"Equation ParaOverride-26\"><img decoding=\"async\" class=\"_idGenObjectAttribute-125\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.24-2.png\" alt=\"\" \/><\/p>\n<h5 class=\"H3-step\"><span class=\"Step--\">Step 4:<\/span> Make the Decision<\/h5>\n<p class=\"Text-1st\">Finally, we can compare our confidence interval to our null hypothesis value. The null value of 38 is higher than our lower bound of 37.76 and lower than our upper bound of 41.94. Thus, the confidence interval brackets our null hypothesis value, and we fail to reject the null hypothesis:<\/p>\n<p class=\"Text-indented-2p\">Fail to reject <span class=\"italic\">H<\/span><span class=\"subscript _idGenCharOverride-1\">0<\/span>. Based on our sample of 30 people, our community is not different in average friendliness (<span class=\"italic\">M<\/span> = 39.85, <span class=\"italic\">SD<\/span> = 5.61) than the nation as a whole, 95% CI = (37.76, 41.94).<\/p>\n<p class=\"Text\">Note that we don\u2019t report a test statistic or <span class=\"italic\">p<\/span> value because that is not how we tested the hypothesis, but we do report the value we found for our confidence interval.<\/p>\n<p class=\"Text\">An important characteristic of hypothesis testing is that both methods will always give you the same result. That is because both are based on the standard error and critical values in their calculations. To check this, we can calculate a <span class=\"italic\">t<\/span>\u00a0statistic for the example above and find it to be <span class=\"italic\">t <\/span>= 1.81, which is smaller than our critical value of 2.045 and fails to reject the null hypothesis.<\/p>\n<p><strong data-start=\"2949\" data-end=\"2961\">Example:<\/strong><br data-start=\"2961\" data-end=\"2964\" \/>Suppose researchers examine whether LGBTQ+ youth report different levels of school safety than the national average. They collect survey data from 40 youth and construct a 95% CI for the mean safety score: (2.8, 3.4). If the national mean is 3.7, it lies outside the interval, suggesting these youth experience significantly lower safety. This approach uses the same logic as a t test but communicates the result as a plausible range \u2014 often more intuitive for policymakers and advocates.<\/p>\n<p><strong data-start=\"3634\" data-end=\"3680\">T Tests, Confidence Intervals, and Justice<\/strong><br data-start=\"3680\" data-end=\"3683\" \/>T tests and confidence intervals give us ways to work with incomplete information, which is nearly always the case in real-world research. They allow us to test whether observed disparities are likely due to chance and to estimate the plausible size of those disparities. For social justice work, these methods are invaluable: they give voice to underrepresented groups by showing that even small samples can provide meaningful evidence, and they help ensure that findings are presented not as absolutes but as ranges that reflect uncertainty and complexity.<\/p>\n<h3 class=\"H1\">Exercises<\/h3>\n<ol>\n<li class=\"Numbered-list-Exercises-1st\">What is the difference between a <span class=\"italic\">z<\/span>\u00a0test and a one-sample <span class=\"italic\">t<\/span>\u00a0test?<\/li>\n<li class=\"Numbered-list-Exercises\">What does a confidence interval represent?<\/li>\n<li class=\"Numbered-list-Exercises\">What is the relationship between a chosen level of confidence for a confidence interval and how wide that interval is? For instance, if you move from a 95% CI to a 90% CI, what happens? Hint: look at the <span class=\"italic\">t<\/span>\u00a0table to see how critical values change when you change levels of significance.<\/li>\n<li class=\"Numbered-list-Exercises\">Construct a confidence interval around the sample mean <span class=\"italic\">M<\/span> = 25 for the following conditions:\n<ol>\n<li class=\"Numbered-list-Exercises-sub _idGenParaOverride-1\"><span class=\"italic\">N <\/span>= 25, <span class=\"italic\">s<\/span> = 15, 95% confidence level<\/li>\n<li class=\"Numbered-list-Exercises-sub _idGenParaOverride-1\"><span class=\"italic\">N <\/span>= 25, <span class=\"italic\">s<\/span> = 15, 90% confidence level<\/li>\n<li class=\"Numbered-list-Exercises-sub _idGenParaOverride-1\"><img decoding=\"async\" class=\"_idGenObjectAttribute-6\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.1a-2.png\" alt=\"\" \/> = 4.5, <span class=\"Symbol\">a<\/span> = .05, <span class=\"italic\">d<\/span><span class=\"italic\">f<\/span> = 20<\/li>\n<li class=\"Numbered-list-Exercises-sub _idGenParaOverride-1\"><span class=\"italic\">s<\/span> = 12, <span class=\"italic\">d<\/span><span class=\"italic\">f<\/span> = 16 (yes, that is all the information you need)<\/li>\n<\/ol>\n<\/li>\n<li class=\"Numbered-list-Exercises\">True or false: A confidence interval represents the most likely location of the true population mean.<\/li>\n<li class=\"Numbered-list-Exercises\">You hear that college campuses may differ from the general population in terms of political affiliation, and you want to use hypothesis testing to see if this is true and, if so, how big the difference is. You know that the average political affiliation in the nation is <img decoding=\"async\" class=\"_idGenObjectAttribute-31\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/> = 4.00 on a scale of 1.00 to 7.00, so you gather data from 150 college students across the nation to see if there is a difference. You find that the average score is 3.76 with a standard deviation of 1.52. Use a one-sample <span class=\"italic\">t<\/span>\u00a0test to see if there is a difference at the <span class=\"Symbol\">a<\/span> = .05 level.<\/li>\n<li class=\"Numbered-list-Exercises\">You hear a lot of talk about increasing global temperature, so you decide to see for yourself if there has been an actual change in recent years. You know that the average land temperature from 1951-1980 was 8.79 degrees Celsius. You find annual average temperature data from 1981\u20132017 and decide to construct a 99% confidence interval (because you want to be as sure as possible and look for differences in both directions, not just one) using this data to test for a difference from the previous average.<br \/>\n<table id=\"table032\" class=\"Foster-table\">\n<colgroup>\n<col class=\"_idGenTableRowColumn-66\" \/>\n<col class=\"_idGenTableRowColumn-67\" \/><\/colgroup>\n<thead>\n<tr class=\"Foster-table _idGenTableRowColumn-5\">\n<td class=\"Foster-table Table-col-hd CellOverride-27\">\n<p class=\"Table-col-hd ParaOverride-4\">Year<\/p>\n<\/td>\n<td class=\"Foster-table Table-col-hd CellOverride-28\">\n<p class=\"Table-col-hd ParaOverride-4\">Temp<\/p>\n<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-1\">\n<p class=\"Table-body\">1981<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-1\">\n<p class=\"Table-body ParaOverride-5\">9.301<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">1982<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">8.788<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">1983<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.173<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">1984<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">8.824<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">1985<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">8.799<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">1986<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">8.985<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">1987<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.141<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">1988<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.345<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">1989<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.076<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-8\">\n<td class=\"Foster-table Table-body-last Table-body CellOverride-27\">\n<p class=\"Table-body\">1990<\/p>\n<\/td>\n<td class=\"Foster-table Table-body-last Table-body CellOverride-28\">\n<p class=\"Table-body ParaOverride-5\">9.378<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-68\">\n<td class=\"Foster-table Table-body CellOverride-29 _idGenCellOverride-6\">\n<p class=\"Table-body\">1991<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-30 _idGenCellOverride-6\">\n<p class=\"Table-body ParaOverride-5\">9.336<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">1992<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">8.974<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">1993<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.008<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">1994<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.175<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">1995<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.484<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">1996<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.168<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">1997<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.326<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">1998<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.660<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">1999<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.406<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-8\">\n<td class=\"Foster-table Table-body-last Table-body CellOverride-27\">\n<p class=\"Table-body\">2000<\/p>\n<\/td>\n<td class=\"Foster-table Table-body-last Table-body CellOverride-28\">\n<p class=\"Table-body ParaOverride-5\">9.332<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-68\">\n<td class=\"Foster-table Table-body CellOverride-29 _idGenCellOverride-6\">\n<p class=\"Table-body\">2001<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-30 _idGenCellOverride-6\">\n<p class=\"Table-body ParaOverride-5\">9.542<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">2002<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.695<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">2003<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.649<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">2004<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.451<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">2005<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.829<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">2006<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.662<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">2007<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.876<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">2008<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.581<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">2009<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.657<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-8\">\n<td class=\"Foster-table Table-body-last Table-body CellOverride-27\">\n<p class=\"Table-body\">2010<\/p>\n<\/td>\n<td class=\"Foster-table Table-body-last Table-body CellOverride-28\">\n<p class=\"Table-body ParaOverride-5\">9.828<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-68\">\n<td class=\"Foster-table Table-body CellOverride-29 _idGenCellOverride-6\">\n<p class=\"Table-body\">2011<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-30 _idGenCellOverride-6\">\n<p class=\"Table-body ParaOverride-5\">9.650<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">2012<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.635<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">2013<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.753<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">2014<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.714<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">2015<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">9.962<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">2016<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">10.160<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\">\n<p class=\"Table-body\">2017<\/p>\n<\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\">\n<p class=\"Table-body ParaOverride-5\">10.049<\/p>\n<\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-7\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\"><\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\"><\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-6\">\n<td class=\"Foster-table Table-body CellOverride-27 _idGenCellOverride-2\"><\/td>\n<td class=\"Foster-table Table-body CellOverride-28 _idGenCellOverride-2\"><\/td>\n<\/tr>\n<tr class=\"Foster-table _idGenTableRowColumn-8\">\n<td class=\"Foster-table Table-body-last Table-body CellOverride-27\"><\/td>\n<td class=\"Foster-table Table-body-last Table-body CellOverride-28\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li class=\"Numbered-list-Exercises\">Determine whether you would reject or fail to reject the null hypothesis in the following situations:\n<ol>\n<li class=\"Numbered-list-Exercises-sub _idGenParaOverride-1\"><span class=\"italic\">t<\/span> = 2.58, <span class=\"italic\">N <\/span>= 21, two-tailed test at <span class=\"Symbol\">a<\/span> = .05<\/li>\n<li class=\"Numbered-list-Exercises-sub _idGenParaOverride-1\"><span class=\"italic\">t<\/span> = 1.99, <span class=\"italic\">N <\/span>= 49, one-tailed test at <span class=\"Symbol\">a<\/span> = .01<\/li>\n<li class=\"Numbered-list-Exercises-sub _idGenParaOverride-1\"><img decoding=\"async\" class=\"_idGenObjectAttribute-31\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/> = 47.82, 99% CI = (48.71, 49.28)<\/li>\n<li class=\"Numbered-list-Exercises-sub _idGenParaOverride-1\"><img decoding=\"async\" class=\"_idGenObjectAttribute-31\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/> = 0, 95% CI = (\u22120.15, 0.20)<\/li>\n<\/ol>\n<\/li>\n<li class=\"Numbered-list-Exercises\">You are curious about how people feel about craft beer, so you gather data from 55 people in the city on whether or not they like it. You code your data so that 0 is neutral, positive scores indicate liking craft beer, and negative scores indicate disliking craft beer. You find that the average opinion was <span class=\"italic\">M<\/span> = 1.10 and the spread was <span class=\"italic\">s<\/span> = 0.40, and you test for a difference from 0 at the <span class=\"Symbol\">a<\/span> = .05 level.<\/li>\n<li class=\"Numbered-list-Exercises\">You want to know if college students have more stress in their daily lives than the general population (<img decoding=\"async\" class=\"_idGenObjectAttribute-31\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/> = 12), so you gather data from 25 people to test your hypothesis. Your sample has an average stress score of <span class=\"italic\">M<\/span> = 13.11 and a standard deviation of <span class=\"italic\">s<\/span> = 3.89. Use a one-sample <span class=\"italic\">t<\/span>\u00a0test to see if there is a difference.<\/li>\n<\/ol>\n<div class=\"textbox textbox--learning-objectives\">\n<header class=\"textbox__header\">\n<h3 class=\"H1\">Answers to Odd-Numbered Exercises<\/h3>\n<\/header>\n<div class=\"textbox__content\">\n<p>1)<br \/>\nA <span class=\"italic\">z<\/span>\u00a0test uses population standard deviation for calculating standard error and gets critical values based on the standard normal distribution. A <span class=\"italic\">t<\/span>\u00a0test uses sample standard deviation as an estimate when calculating standard error and gets critical values from the <span class=\"italic\">t<\/span>\u00a0distribution based on degrees of freedom.<\/p>\n<p>3)<br \/>\n<span style=\"font-size: 0.8em;font-weight: lighter\">As the level of confidence gets higher, the interval gets wider. In order to speak with more confidence about having found the population mean, you need to cast a wider net. This happens because critical values for higher confidence levels are larger, which creates a wider margin of error.<\/span><\/p>\n<p>5)<br \/>\n<span style=\"font-size: 0.8em;font-weight: lighter\">False. A confidence interval is a range of plausible scores that may or may not bracket the true population mean.<\/span><\/p>\n<p>7)<br \/>\n<span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">M<\/span><span style=\"font-size: 0.8em;font-weight: lighter\"> = 9.44, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">s<\/span><span style=\"font-size: 0.8em;font-weight: lighter\"> = 0.35, <\/span><img decoding=\"async\" class=\"_idGenObjectAttribute-6\" style=\"font-size: 0.8em;font-weight: lighter\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.1a-2.png\" alt=\"\" \/><span style=\"font-size: 0.8em;font-weight: lighter\"> = 0.06, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">d<\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">f <\/span><span style=\"font-size: 0.8em;font-weight: lighter\">= 36, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">t<\/span><span style=\"font-size: 0.8em;font-weight: lighter\">* = 2.719, 99% CI = (9.28, 9.60); CI does not bracket <\/span><img decoding=\"async\" class=\"_idGenObjectAttribute-31\" style=\"font-size: 0.8em;font-weight: lighter\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/><span style=\"font-size: 0.8em;font-weight: lighter\">, reject null hypothesis; <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">d <\/span><span style=\"font-size: 0.8em;font-weight: lighter\">= 1.83<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>9)<\/p>\n<p><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">Step 1:<\/span> <span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">H<\/span><span class=\"subscript _idGenCharOverride-1\" style=\"font-size: 0.8em;font-weight: lighter\">0<\/span><span style=\"font-size: 0.8em;font-weight: lighter\">: <\/span><img decoding=\"async\" class=\"_idGenObjectAttribute-31\" style=\"font-size: 0.8em;font-weight: lighter\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/><span style=\"font-size: 0.8em;font-weight: lighter\"> = 0 \u201cThe average person has a neutral opinion toward craft beer,\u201d <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">H<\/span><span class=\"subscript _idGenCharOverride-1\" style=\"font-size: 0.8em;font-weight: lighter\">A<\/span><span style=\"font-size: 0.8em;font-weight: lighter\">: <\/span><img decoding=\"async\" class=\"_idGenObjectAttribute-31\" style=\"font-size: 0.8em;font-weight: lighter\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2021\/12\/Eqn2.14-mu-6.png\" alt=\"mu\" \/><span style=\"font-size: 0.8em;font-weight: lighter\"> \u2260 0 \u201cOverall, people will have an opinion about craft beer, either good or bad.\u201d<\/span><\/p>\n<p><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">Step 2:<\/span><span style=\"font-size: 0.8em;font-weight: lighter\"> Two-tailed test, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">d<\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">f<\/span><span style=\"font-size: 0.8em;font-weight: lighter\"> = 54, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">t<\/span><span style=\"font-size: 0.8em;font-weight: lighter\">* = 2.009<\/span><\/p>\n<p><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">Step 3:<\/span> <span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">M<\/span><span style=\"font-size: 0.8em;font-weight: lighter\"> = 1.10, <\/span><img decoding=\"async\" class=\"_idGenObjectAttribute-6\" style=\"font-size: 0.8em;font-weight: lighter\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/Eqn8.1a-2.png\" alt=\"\" \/><span style=\"font-size: 0.8em;font-weight: lighter\"> = 0.05, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">t <\/span><span style=\"font-size: 0.8em;font-weight: lighter\">= 22.00<\/span><\/p>\n<p><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">Ste<\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">p 4:<\/span> <span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">t <\/span><span style=\"font-size: 0.8em;font-weight: lighter\">&gt; <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">t<\/span><span style=\"font-size: 0.8em;font-weight: lighter\">*, reject <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">H<\/span><span class=\"subscript CharOverride-17\" style=\"font-size: 0.8em;font-weight: lighter\">0<\/span><span style=\"font-size: 0.8em;font-weight: lighter\">. Based on opinions from 55 people, we can conclude that the average opinion of craft beer (<\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">M<\/span><span style=\"font-size: 0.8em;font-weight: lighter\"> = 1.10) is positive, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">t<\/span><span style=\"font-size: 0.8em;font-weight: lighter\">(54) = 22.00, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">p<\/span><span style=\"font-size: 0.8em;font-weight: lighter\"> &lt; .05, <\/span><span class=\"italic\" style=\"font-size: 0.8em;font-weight: lighter\">d<\/span><span style=\"font-size: 0.8em;font-weight: lighter\"> = 2.75.<\/span><\/p>\n<p class=\"Text ParaOverride-21\">\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<h3 class=\"H1\"><img decoding=\"async\" class=\"_idGenObjectAttribute-30\" style=\"text-align: initial;font-family: 'Crimson Text', 'Times New Roman', serif;font-size: 14pt\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/1-5.png\" alt=\"\" \/><\/h3>\n<p>&#8220;<a href=\"https:\/\/xkcd.com\/1478\">P-Values<\/a>&#8221; by Randall Munroe\/xkcd.com is licensed under <a href=\"https:\/\/creativecommons.org\/licenses\/by-nc\/2.5\/\">CC BY-NC 2.5<\/a>.)<\/p>\n<p><a href=\"https:\/\/xkcd.com\/1478\/\"><img decoding=\"async\" src=\"https:\/\/pressbooks.palomar.edu\/wp-content\/uploads\/sites\/8\/2024\/10\/p_values_2x.png\" alt=\"\" \/><\/a><\/p>\n<div class=\"glossary\"><span class=\"screen-reader-text\" id=\"definition\">definition<\/span><template id=\"term_258_678\"><div class=\"glossary__definition\" role=\"dialog\" data-id=\"term_258_678\"><div tabindex=\"-1\"><\/div><button><span aria-hidden=\"true\">&times;<\/span><span class=\"screen-reader-text\">Close definition<\/span><\/button><\/div><\/template><template id=\"term_258_676\"><div class=\"glossary__definition\" role=\"dialog\" data-id=\"term_258_676\"><div tabindex=\"-1\"><\/div><button><span aria-hidden=\"true\">&times;<\/span><span class=\"screen-reader-text\">Close definition<\/span><\/button><\/div><\/template><template id=\"term_258_677\"><div class=\"glossary__definition\" role=\"dialog\" data-id=\"term_258_677\"><div tabindex=\"-1\"><\/div><button><span aria-hidden=\"true\">&times;<\/span><span class=\"screen-reader-text\">Close definition<\/span><\/button><\/div><\/template><\/div>","protected":false},"author":7,"menu_order":2,"template":"","meta":{"pb_show_title":"","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-258","chapter","type-chapter","status-publish","hentry"],"part":187,"_links":{"self":[{"href":"https:\/\/pressbooks.palomar.edu\/introtostats\/wp-json\/pressbooks\/v2\/chapters\/258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.palomar.edu\/introtostats\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.palomar.edu\/introtostats\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.palomar.edu\/introtostats\/wp-json\/wp\/v2\/users\/7"}],"version-history":[{"count":9,"href":"https:\/\/pressbooks.palomar.edu\/introtostats\/wp-json\/pressbooks\/v2\/chapters\/258\/revisions"}],"predecessor-version":[{"id":974,"href":"https:\/\/pressbooks.palomar.edu\/introtostats\/wp-json\/pressbooks\/v2\/chapters\/258\/revisions\/974"}],"part":[{"href":"https:\/\/pressbooks.palomar.edu\/introtostats\/wp-json\/pressbooks\/v2\/parts\/187"}],"metadata":[{"href":"https:\/\/pressbooks.palomar.edu\/introtostats\/wp-json\/pressbooks\/v2\/chapters\/258\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.palomar.edu\/introtostats\/wp-json\/wp\/v2\/media?parent=258"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.palomar.edu\/introtostats\/wp-json\/pressbooks\/v2\/chapter-type?post=258"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.palomar.edu\/introtostats\/wp-json\/wp\/v2\/contributor?post=258"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.palomar.edu\/introtostats\/wp-json\/wp\/v2\/license?post=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}