{"id":101,"date":"2018-10-31T17:43:55","date_gmt":"2018-10-31T21:43:55","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/simplestats\/?post_type=chapter&#038;p=101"},"modified":"2019-10-18T18:55:17","modified_gmt":"2019-10-18T22:55:17","slug":"6-7-confidence-intervals","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/6-7-confidence-intervals\/","title":{"raw":"6.7 Confidence Intervals","rendered":"6.7 Confidence Intervals"},"content":{"raw":"[latexpage]\r\n<p style=\"text-indent: 18.6667px\">In our discussion on statistical inference so far, I have used not one type of estimators but <em>two<\/em>, without bringing your attention to it. Probability theory and the Central Limit Theorem describing the sampling distribution of statistics provide us with two types of estimators, called <em>point estimators<\/em> and <em>interval estimators<\/em>.<\/p>\r\n&nbsp;\r\n\r\n<strong>A single sample statistic which estimates a population parameter<\/strong> -- and which offers a \"best guess\" for that parameter -- <strong>is a\u00a0<em>point<\/em> estimator.\u00a0<\/strong>We have worked with several point estimates by now: the sample mean $\\overline{x}$ is a point estimate of the population mean <em>\u03bc <\/em>while\u00a0the sample standard deviation <em>s<\/em> is a point estimate (which we can note as $\\hat{\\sigma}$) of the population standard deviation\u00a0<em>\u03c3<\/em>.\r\n\r\n&nbsp;\r\n\r\nSimilarly, I'll add another useful point estimate, of the sample <em>proportion<\/em>. Imagine we are interested in studying unemployment. We take a random sample which reveals that, say, 10 percent of the sample respondents report being unemployed. Thus, we have the sample proportion <em>p<\/em>\u00a0as 0.1 and we can use that proportion as a point estimate of the proportion of the population which is unemployed. We denote population proportions by the small-case Greek letter for\u00a0<em>p\u00a0<\/em>which is\u00a0<em>\u03c0<\/em>[footnote]Pronounced PAI, as you probably already know from the mathematical constant <em>\u03c0<\/em>=3.14. While we use the letter <em>\u03c0<\/em> for both population proportions and the mathematical constant, context provides enough clues to differentiate them.[\/footnote]. In other words, the sample proportion <em>p<\/em> serves as a point estimate of the population proportion\u00a0<em>\u03c0<\/em>.\r\n\r\n&nbsp;\r\n\r\nYou'll be happy to know that you are also already familiar with the other, <em>interval<\/em>, type of statistical estimators. As their name suggests, <strong>interval estimators, called <em>confidence intervals<\/em>, provide not just one number as a best guess but a whole set of plausible values for the population parameter.<\/strong>\r\n\r\n&nbsp;\r\n\r\nIf you recall Examples 6.3 and 6.4 from the previous section, you'll recognize that we already calculated confidence intervals. In Example 6.4 on the average annual salary, we found\u00a0a range of values within which the average annual salary of the city population was estimated to fall. Specifically, the average annual salary of the random sample was \\$50,000 and we were able to estimate\u00a0<span style=\"text-indent: 18.6667px;font-size: 14pt\">with 95% certainty\u00a0<\/span><span style=\"text-indent: 1em;font-size: 14pt\">that the average annual salary of the city population would fall between \\$49,400 and \\$50,600. This range of values between \\$49,400 and \\$50,600 is in effect a confidence interval (a 95% confidence interval, to be precise). The actual numbers \"bracketing\" the interval are called <em>error bounds<\/em>; the interval itself is between, and including, the\u00a0<em>lower error bound<\/em> and the\u00a0<em>upper error bound.\u00a0<\/em><\/span>\r\n\r\n&nbsp;\r\n\r\nUp until now, we calculated the confidence interval in a fast and easy way as I wanted to get the point of the logic underlying statistical inference across. At this time, however, we need to get more technical and precise about it.\r\n\r\n&nbsp;\r\n\r\nFirst, let's revisit how we did it in the previous section to refresh your memory; then I'll show you the <em>more<\/em> correct way to do it. (Before you panic, know that what we did before was not incorrect; we just used rounded numbers to make calculations easier\/faster.)\r\n\r\n&nbsp;\r\n\r\nThis is the information about the sample mean and standard deviation we had from Example 6.4\u00a0<em>Average Annual Income\u00a0<\/em>(without the dollar signs for clarity of presentation):\r\n\r\n&nbsp;\r\n\r\n$\\overline{x}=50000$\r\n\r\n$s=12000$\r\n\r\n$N=1600$\r\n\r\n&nbsp;\r\n\r\nOur starting point is the sample mean (which, according to the CLT approximates the population mean, with large <em>N<\/em>). In order to calculate a confidence interval around the sample mean $\\overline{x}$, we first need to get the standard error $\\sigma_\\overline{x}$, given by the CLT-based formula:\r\n\r\n&nbsp;\r\n\r\n$\\sigma_\\overline{x}$ $=\\frac{\\sigma}{\\sqrt{N}}$\r\n\r\n&nbsp;\r\n\r\nWe don't know the population standard deviation $\\sigma$ but we estimate it with its point estimator <em>s<\/em>, so we get:\r\n\r\n&nbsp;\r\n\r\n$\\hat\\sigma_\\overline{x}$ $=s_\\overline{x}$ $=\\frac{s}{\\sqrt{N}}$\r\n\r\n&nbsp;\r\n\r\nSubstituting <em>s<\/em> and <em>N<\/em> in the formula gives us the following:\r\n\r\n&nbsp;\r\n\r\n$s_\\overline{x}$ $=\\frac{12000}{\\sqrt{1600}}=\\frac{12000}{40}=300$\r\n\r\n&nbsp;\r\n\r\nNow, by the CLT, we have everything we need for the sampling distribution: its mean (as estimated by the sample mean $\\overline{x}$, its standard deviation (i.e., the standard error $\\sigma_\\overline{x}$), and its shape as a normal curve. From Section 5.2.4 (<a href=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/5-2-4-the-real-normal-distribution\/\">https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/5-2-4-the-real-normal-distribution\/<\/a>), we know the probabilities under the normal curve, and that 68 percent of cases[footnote]Here you can imagine the cases as the hypothetical means over infinite sampling.[\/footnote] fall within 1 standard deviation from the mean while 95 percent of cases fall within about 2 standard deviations from the mean.\r\n\r\n&nbsp;\r\n\r\nThe resulting graph was presented in Fig. 6.2 in the previous section. Here it is again, this time with the 68 percent demarcations included.\r\n\r\n&nbsp;\r\n\r\n<em>Figure 6.3\u00a0Average Annual Income (in thousands of dollars), Revisited\u00a0<\/em>\r\n\r\n<img src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/09\/income-mean-price-50-with-probabilities-CIs.png\" alt=\"\" width=\"898\" height=\"454\" class=\"alignleft wp-image-1957 size-full\" \/>\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\n&nbsp;\r\n\r\nHowever, to calculate a confidence interval we don't need to draw the sampling distribution every time; we just need to keep in mind what it represents in terms of probabilities.\r\n\r\n&nbsp;\r\n\r\nFrom our discussion of Example 6.4 in the previous section and now, we can easily deduce the basic formula for calculating a confidence interval:\r\n<ul>\r\n \t<li>for a 68% confidence interval around the mean, we would have\r\n<ul>\r\n \t<li>$\\overline{x}\\pm1\\times\\hat\\sigma_\\overline{x}$<\/li>\r\n<\/ul>\r\n<\/li>\r\n \t<li>for a 95% confidence interval around the mean, we would have\r\n<ul>\r\n \t<li>$\\overline{x}\\pm2\\times\\hat\\sigma_\\overline{x}$<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ul>\r\n&nbsp;\r\n\r\nWe could even add the 99% confidence interval, encompassing values within about 3 standard deviations away from the mean:\r\n<ul>\r\n \t<li>for a 99% confidence interval, we would have\r\n<ul>\r\n \t<li>$\\overline{x}\\pm3\\times\\hat\\sigma_\\overline{x}$<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ul>\r\n&nbsp;\r\n\r\nUsing the data from Example 6.4 for illustration, we then have the following confidence intervals (CI):\r\n<ul>\r\n \t<li>68% CI:\u00a0$\\overline{x}\\pm1\\times\\sigma_\\overline{x}$ $=50000\\pm1\\times300=50000\\pm300=(49700; 50300)$<\/li>\r\n \t<li>95% CI:\u00a0$\\overline{x}\\pm2\\times\\sigma_\\overline{x}$ $=50000\\pm2\\times300=50000\\pm600= (49400; 50600)$<\/li>\r\n \t<li>99% CI:\u00a0$\\overline{x}\\pm3\\times\\sigma_\\overline{x}$ $=50000\\pm3\\times300=50000\\pm900= (49100; 50900)$<\/li>\r\n<\/ul>\r\n&nbsp;\r\n\r\nFig. 6.4 illustrates these confidence intervals.\r\n\r\n&nbsp;\r\n\r\n<em>Figure 6.4<\/em>\u00a0<em>Confidence Intervals for Average Annual Income<\/em>\r\n\r\n&nbsp;\r\n\r\n<img src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/09\/income-mean-price-50-CIs.png\" alt=\"\" width=\"898\" height=\"454\" class=\"alignleft wp-image-1960 size-full\" \/>\r\n\r\n&nbsp;\r\n\r\nThat is, we find that the average annual income for the city population is between \\$49,700 and \\$50,300 with 68% certainty; it is between \\$49,400 and \\$50,600 with 95% certainty; and it's between \\$49,100 and \\$50,900 with 99% certainty. Alternatively, we could report that the average annual income of the city population is \\$50,000 \u00b1\\$300 with 68% confidence; \\$50,000\u00a0\u00b1\\$600 with 95% confidence; and \\$50,000\u00a0\u00b1\\$900 with 99% confidence.\r\n\r\n&nbsp;\r\n\r\nThe $\\pm\\hat\\sigma_\\overline{x}$ (i.e., the plus and minus the estimated standard error) represents the <em>margin of error<\/em> for the specific confidence interval.\r\n\r\n&nbsp;\r\n\r\nNow that you understand the principle of calculating confidence intervals, let's start doing it with greater precision, as we normally would in real-life research.\r\n\r\n&nbsp;\r\n\r\nEven if I used \"1, 2, 3 standard deviations\/errors away from the mean\" in the calculations so far, this is a quick-and-easy rounding only <em>approximating<\/em>\u00a0the real formula for confidence interval.\u00a0<span style=\"font-size: 14pt;text-indent: 18.6667px\">From Section 5.2.5 (<a href=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/5-2-5-the-real-use-of-z-values\/\">https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/5-2-5-the-real-use-of-z-values\/<\/a>), we know that the probabilities under the normal curve are associated with specific\u00a0<\/span><em style=\"font-size: 14pt;text-indent: 18.6667px\">z<\/em><span style=\"font-size: 14pt;text-indent: 18.6667px\">-values. <\/span>\r\n\r\n&nbsp;\r\n\r\n<span style=\"font-size: 14pt;text-indent: 18.6667px\">If you check the <em>z<\/em>-values (standard normal distribution) table[footnote]Like the one here <a href=\"https:\/\/www.mathsisfun.com\/data\/standard-normal-distribution-table.html\">https:\/\/www.mathsisfun.com\/data\/standard-normal-distribution-table.html<\/a>.[\/footnote], you'll actually see\u00a0<\/span>that the precise <em>z<\/em>-values associated with 95% probability[footnote]Since the distribution is symmetric, recall that the table only gives you <em>half<\/em> the probability (i.e., between the mean and the z-score). Thus for 95% (i.e., the two sides together), you need to check (95\/2=) 47.5%. [\/footnote] and 99% probability[footnote]By analogy, for 99% (i.e., the two sides together), you need to check (99\/2=) 49.5%.[\/footnote] are 1.96 (almost but not quite 2) and 2.58 (almost but not quite 3), respectively.\r\n\r\n&nbsp;\r\n\r\nNow you know that even if the <em>z<\/em>-value associated with 68% probability[footnote]By analogy, for 68% (i.e., the two sides together), you need to check (68\/2=) 34%.[\/footnote] <em>is<\/em>\u00a0indeed 1, the other two confidence intervals we have used so far need to be recalculated properly:\r\n<ul>\r\n \t<li>68% CI:\u00a0$\\overline{x}\\pm1\\times\\hat\\sigma_\\overline{x}$ $=50000\\pm1\\times300=50000\\pm300=(49700; 50300)$<\/li>\r\n \t<li>95% CI:\u00a0$\\overline{x}\\pm1.96\\times\\hat\\sigma_\\overline{x}$ $=50000\\pm1.96\\times300=50000\\pm588= (49412; 50588)$<\/li>\r\n \t<li>99% CI:\u00a0$\\overline{x}\\pm2.58\\times\\hat\\sigma_\\overline{x}$ $=50000\\pm2.58\\times300=50000\\pm774= (49226; 50774)$<\/li>\r\n<\/ul>\r\n&nbsp;\r\n\r\nTo interpret, we find that we can be 95% certain that the average annual income of the population is between \\$49,412 and \\$50,588. As well, we find that we can be 99% certain that the average annual income is between \\$49,226 and \\$50,774.\r\n\r\n&nbsp;\r\n\r\nFurthermore, although going by \"1, 2, 3 standard deviations\/errors\" makes intuitive sense, in reality would you be happy to learn anything \"with 68% certainty\"? Sixty-eight percent certainty is hardly certain at all! (As such, it is pretty much never used outside of teaching.)\r\n\r\n&nbsp;\r\n\r\nOn the other hand, while the 95% and 99% confidence intervals are the most widely used and useful ones, there is no need to restrain yourself, should you choose to calculate <em>any<\/em> confidence interval you wish.\r\n\r\n&nbsp;\r\n\r\n<strong>The general formula for a confidence interval is thus:<\/strong>\r\n<ul>\r\n \t<li><strong>Any % CI:<\/strong>\u00a0$\\overline{x}\\pm$ $z\\times\\sigma_\\overline{x}$<\/li>\r\n<\/ul>\r\n&nbsp;\r\n\r\nTo calculate this, you need to choose the level of certainty you want; once you have the probability, (divide it by two and) check its corresponding <em>z<\/em>-value, then multiply it by the standard error to get the margins of error with the desired probability level of certainty.\r\n\r\n&nbsp;\r\n\r\nFor example, I might want the 90% CI (not as popular as the other two but still a relevant confidence interval that has its uses).\r\n\r\n&nbsp;\r\n\r\nI check for the <em>z<\/em>-value associated with 90% probability[footnote]By analogy, for 90% (i.e., the two sides together), you need to check (90\/2=) 45%.[\/footnote] in a <em>z<\/em>-distribution table and I find that it's 1.65. Then, for the example used above, I would get:\r\n<ul>\r\n \t<li>90% CI:\u00a0$\\overline{x}\\pm1.65\\times\\hat\\sigma_\\overline{x}$ $=50000\\pm1.65\\times300=50000\\pm495= (49505; 50495)$<\/li>\r\n<\/ul>\r\n&nbsp;\r\n\r\nOr, I can be 90% certain that the average annual income of the population of that city is between \\$49,505 and \\$50,495.\r\n\r\n&nbsp;\r\n\r\nBy analogy, you can thus produce <em>any<\/em> confidence interval with <em>any<\/em> level of certainty you want.\r\n\r\n&nbsp;\r\n\r\nA bit more on confidence intervals in the next section.","rendered":"<p style=\"text-indent: 18.6667px\">In our discussion on statistical inference so far, I have used not one type of estimators but <em>two<\/em>, without bringing your attention to it. Probability theory and the Central Limit Theorem describing the sampling distribution of statistics provide us with two types of estimators, called <em>point estimators<\/em> and <em>interval estimators<\/em>.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>A single sample statistic which estimates a population parameter<\/strong> &#8212; and which offers a &#8220;best guess&#8221; for that parameter &#8212; <strong>is a\u00a0<em>point<\/em> estimator.\u00a0<\/strong>We have worked with several point estimates by now: the sample mean <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"11\" style=\"vertical-align: 0px;\" \/> is a point estimate of the population mean <em>\u03bc <\/em>while\u00a0the sample standard deviation <em>s<\/em> is a point estimate (which we can note as <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-1b431ad97c5ae6892dc8b65b610c4b17_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#104;&#97;&#116;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"11\" style=\"vertical-align: 0px;\" \/>) of the population standard deviation\u00a0<em>\u03c3<\/em>.<\/p>\n<p>&nbsp;<\/p>\n<p>Similarly, I&#8217;ll add another useful point estimate, of the sample <em>proportion<\/em>. Imagine we are interested in studying unemployment. We take a random sample which reveals that, say, 10 percent of the sample respondents report being unemployed. Thus, we have the sample proportion <em>p<\/em>\u00a0as 0.1 and we can use that proportion as a point estimate of the proportion of the population which is unemployed. We denote population proportions by the small-case Greek letter for\u00a0<em>p\u00a0<\/em>which is\u00a0<em>\u03c0<\/em><a class=\"footnote\" title=\"Pronounced PAI, as you probably already know from the mathematical constant \u03c0=3.14. While we use the letter \u03c0 for both population proportions and the mathematical constant, context provides enough clues to differentiate them.\" id=\"return-footnote-101-1\" href=\"#footnote-101-1\" aria-label=\"Footnote 1\"><sup class=\"footnote\">[1]<\/sup><\/a>. In other words, the sample proportion <em>p<\/em> serves as a point estimate of the population proportion\u00a0<em>\u03c0<\/em>.<\/p>\n<p>&nbsp;<\/p>\n<p>You&#8217;ll be happy to know that you are also already familiar with the other, <em>interval<\/em>, type of statistical estimators. As their name suggests, <strong>interval estimators, called <em>confidence intervals<\/em>, provide not just one number as a best guess but a whole set of plausible values for the population parameter.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>If you recall Examples 6.3 and 6.4 from the previous section, you&#8217;ll recognize that we already calculated confidence intervals. In Example 6.4 on the average annual salary, we found\u00a0a range of values within which the average annual salary of the city population was estimated to fall. Specifically, the average annual salary of the random sample was &#36;50,000 and we were able to estimate\u00a0<span style=\"text-indent: 18.6667px;font-size: 14pt\">with 95% certainty\u00a0<\/span><span style=\"text-indent: 1em;font-size: 14pt\">that the average annual salary of the city population would fall between &#36;49,400 and &#36;50,600. This range of values between &#36;49,400 and &#36;50,600 is in effect a confidence interval (a 95% confidence interval, to be precise). The actual numbers &#8220;bracketing&#8221; the interval are called <em>error bounds<\/em>; the interval itself is between, and including, the\u00a0<em>lower error bound<\/em> and the\u00a0<em>upper error bound.\u00a0<\/em><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>Up until now, we calculated the confidence interval in a fast and easy way as I wanted to get the point of the logic underlying statistical inference across. At this time, however, we need to get more technical and precise about it.<\/p>\n<p>&nbsp;<\/p>\n<p>First, let&#8217;s revisit how we did it in the previous section to refresh your memory; then I&#8217;ll show you the <em>more<\/em> correct way to do it. (Before you panic, know that what we did before was not incorrect; we just used rounded numbers to make calculations easier\/faster.)<\/p>\n<p>&nbsp;<\/p>\n<p>This is the information about the sample mean and standard deviation we had from Example 6.4\u00a0<em>Average Annual Income\u00a0<\/em>(without the dollar signs for clarity of presentation):<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-475753b3e296ca10028a070a415c9dc3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#61;&#53;&#48;&#48;&#48;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"79\" style=\"vertical-align: 0px;\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-0399694f0042d2a35060c2bc248dc255_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#115;&#61;&#49;&#50;&#48;&#48;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"77\" style=\"vertical-align: -1px;\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-b9c537111b821ad98759301898a40082_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#78;&#61;&#49;&#54;&#48;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"76\" style=\"vertical-align: -1px;\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Our starting point is the sample mean (which, according to the CLT approximates the population mean, with large <em>N<\/em>). In order to calculate a confidence interval around the sample mean <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"11\" style=\"vertical-align: 0px;\" \/>, we first need to get the standard error <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-de5382c00a55332dd89774492d104d0c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"19\" style=\"vertical-align: -3px;\" \/>, given by the CLT-based formula:<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-de5382c00a55332dd89774492d104d0c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"19\" style=\"vertical-align: -3px;\" \/> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-ff1cbb6cd1d0399c05c18824c0141efd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#78;&#125;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"24\" width=\"45\" style=\"vertical-align: -11px;\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>We don&#8217;t know the population standard deviation <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-1c9cc40f96a1492e298e7da85a2c1692_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#105;&#103;&#109;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" style=\"vertical-align: 0px;\" \/> but we estimate it with its point estimator <em>s<\/em>, so we get:<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-785ae6e249be46641e4a402bd65210a5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#104;&#97;&#116;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"19\" style=\"vertical-align: -3px;\" \/> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-1f908a1fb1b7a5465f07a0ace257e8ab_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#61;&#115;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"36\" style=\"vertical-align: -3px;\" \/> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-0fe4258536c8a7f1895bd559d297d2c2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#115;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#78;&#125;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"24\" width=\"45\" style=\"vertical-align: -11px;\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Substituting <em>s<\/em> and <em>N<\/em> in the formula gives us the following:<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-5ee7b9a8ecba4b54a50c56e76a5e2ff1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#115;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"17\" style=\"vertical-align: -3px;\" \/> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-d4f3813bb7989481524372b7b9295334_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#50;&#48;&#48;&#48;&#125;&#123;&#92;&#115;&#113;&#114;&#116;&#123;&#49;&#54;&#48;&#48;&#125;&#125;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#50;&#48;&#48;&#48;&#125;&#123;&#52;&#48;&#125;&#61;&#51;&#48;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"27\" width=\"174\" style=\"vertical-align: -11px;\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Now, by the CLT, we have everything we need for the sampling distribution: its mean (as estimated by the sample mean <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-0d00c2da2b2541a97ae0ac3c10e1504e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"11\" style=\"vertical-align: 0px;\" \/>, its standard deviation (i.e., the standard error <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-de5382c00a55332dd89774492d104d0c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"19\" style=\"vertical-align: -3px;\" \/>), and its shape as a normal curve. From Section 5.2.4 (<a href=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/5-2-4-the-real-normal-distribution\/\">https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/5-2-4-the-real-normal-distribution\/<\/a>), we know the probabilities under the normal curve, and that 68 percent of cases<a class=\"footnote\" title=\"Here you can imagine the cases as the hypothetical means over infinite sampling.\" id=\"return-footnote-101-2\" href=\"#footnote-101-2\" aria-label=\"Footnote 2\"><sup class=\"footnote\">[2]<\/sup><\/a> fall within 1 standard deviation from the mean while 95 percent of cases fall within about 2 standard deviations from the mean.<\/p>\n<p>&nbsp;<\/p>\n<p>The resulting graph was presented in Fig. 6.2 in the previous section. Here it is again, this time with the 68 percent demarcations included.<\/p>\n<p>&nbsp;<\/p>\n<p><em>Figure 6.3\u00a0Average Annual Income (in thousands of dollars), Revisited\u00a0<\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/09\/income-mean-price-50-with-probabilities-CIs.png\" alt=\"\" width=\"898\" height=\"454\" class=\"alignleft wp-image-1957 size-full\" srcset=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/09\/income-mean-price-50-with-probabilities-CIs.png 898w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/09\/income-mean-price-50-with-probabilities-CIs-300x152.png 300w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/09\/income-mean-price-50-with-probabilities-CIs-768x388.png 768w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/09\/income-mean-price-50-with-probabilities-CIs-65x33.png 65w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/09\/income-mean-price-50-with-probabilities-CIs-225x114.png 225w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/09\/income-mean-price-50-with-probabilities-CIs-350x177.png 350w\" sizes=\"auto, (max-width: 898px) 100vw, 898px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>However, to calculate a confidence interval we don&#8217;t need to draw the sampling distribution every time; we just need to keep in mind what it represents in terms of probabilities.<\/p>\n<p>&nbsp;<\/p>\n<p>From our discussion of Example 6.4 in the previous section and now, we can easily deduce the basic formula for calculating a confidence interval:<\/p>\n<ul>\n<li>for a 68% confidence interval around the mean, we would have\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-0289e1abf4cf7970fb44321b2d9e7f13_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#92;&#112;&#109;&#49;&#92;&#116;&#105;&#109;&#101;&#115;&#92;&#104;&#97;&#116;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"81\" style=\"vertical-align: -3px;\" \/><\/li>\n<\/ul>\n<\/li>\n<li>for a 95% confidence interval around the mean, we would have\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-1f53d023e8f39135e536dd8f6b23bf7c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#92;&#112;&#109;&#50;&#92;&#116;&#105;&#109;&#101;&#115;&#92;&#104;&#97;&#116;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"81\" style=\"vertical-align: -3px;\" \/><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>We could even add the 99% confidence interval, encompassing values within about 3 standard deviations away from the mean:<\/p>\n<ul>\n<li>for a 99% confidence interval, we would have\n<ul>\n<li><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-7102a357ee5fba9b51da28839930c74e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#92;&#112;&#109;&#51;&#92;&#116;&#105;&#109;&#101;&#115;&#92;&#104;&#97;&#116;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"81\" style=\"vertical-align: -3px;\" \/><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Using the data from Example 6.4 for illustration, we then have the following confidence intervals (CI):<\/p>\n<ul>\n<li>68% CI:\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-df5233557b0135ecfadf3e8adf15d34e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#92;&#112;&#109;&#49;&#92;&#116;&#105;&#109;&#101;&#115;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"81\" style=\"vertical-align: -3px;\" \/> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-ad6ebc09754b50fdce7804e9efb4df95_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#61;&#53;&#48;&#48;&#48;&#48;&#92;&#112;&#109;&#49;&#92;&#116;&#105;&#109;&#101;&#115;&#51;&#48;&#48;&#61;&#53;&#48;&#48;&#48;&#48;&#92;&#112;&#109;&#51;&#48;&#48;&#61;&#40;&#52;&#57;&#55;&#48;&#48;&#59;&#32;&#53;&#48;&#51;&#48;&#48;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"392\" style=\"vertical-align: -4px;\" \/><\/li>\n<li>95% CI:\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-7c40abc387e28d7fb8135a6d1c191266_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#92;&#112;&#109;&#50;&#92;&#116;&#105;&#109;&#101;&#115;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"81\" style=\"vertical-align: -3px;\" \/> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-eaf3e24916fe0cab6d65e11e1f2ffdbd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#61;&#53;&#48;&#48;&#48;&#48;&#92;&#112;&#109;&#50;&#92;&#116;&#105;&#109;&#101;&#115;&#51;&#48;&#48;&#61;&#53;&#48;&#48;&#48;&#48;&#92;&#112;&#109;&#54;&#48;&#48;&#61;&#32;&#40;&#52;&#57;&#52;&#48;&#48;&#59;&#32;&#53;&#48;&#54;&#48;&#48;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"392\" style=\"vertical-align: -4px;\" \/><\/li>\n<li>99% CI:\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-e5e62496dc8080677f94f2d9b2dfc83a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#92;&#112;&#109;&#51;&#92;&#116;&#105;&#109;&#101;&#115;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"81\" style=\"vertical-align: -3px;\" \/> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-63a91a36d38986dc53954cd2545f2f3d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#61;&#53;&#48;&#48;&#48;&#48;&#92;&#112;&#109;&#51;&#92;&#116;&#105;&#109;&#101;&#115;&#51;&#48;&#48;&#61;&#53;&#48;&#48;&#48;&#48;&#92;&#112;&#109;&#57;&#48;&#48;&#61;&#32;&#40;&#52;&#57;&#49;&#48;&#48;&#59;&#32;&#53;&#48;&#57;&#48;&#48;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"392\" style=\"vertical-align: -4px;\" \/><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Fig. 6.4 illustrates these confidence intervals.<\/p>\n<p>&nbsp;<\/p>\n<p><em>Figure 6.4<\/em>\u00a0<em>Confidence Intervals for Average Annual Income<\/em><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/09\/income-mean-price-50-CIs.png\" alt=\"\" width=\"898\" height=\"454\" class=\"alignleft wp-image-1960 size-full\" srcset=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/09\/income-mean-price-50-CIs.png 898w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/09\/income-mean-price-50-CIs-300x152.png 300w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/09\/income-mean-price-50-CIs-768x388.png 768w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/09\/income-mean-price-50-CIs-65x33.png 65w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/09\/income-mean-price-50-CIs-225x114.png 225w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/09\/income-mean-price-50-CIs-350x177.png 350w\" sizes=\"auto, (max-width: 898px) 100vw, 898px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>That is, we find that the average annual income for the city population is between &#36;49,700 and &#36;50,300 with 68% certainty; it is between &#36;49,400 and &#36;50,600 with 95% certainty; and it&#8217;s between &#36;49,100 and &#36;50,900 with 99% certainty. Alternatively, we could report that the average annual income of the city population is &#36;50,000 \u00b1&#36;300 with 68% confidence; &#36;50,000\u00a0\u00b1&#36;600 with 95% confidence; and &#36;50,000\u00a0\u00b1&#36;900 with 99% confidence.<\/p>\n<p>&nbsp;<\/p>\n<p>The <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-e7c5c9e48fef9249b46a595704863b83_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#109;&#92;&#104;&#97;&#116;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"33\" style=\"vertical-align: -3px;\" \/> (i.e., the plus and minus the estimated standard error) represents the <em>margin of error<\/em> for the specific confidence interval.<\/p>\n<p>&nbsp;<\/p>\n<p>Now that you understand the principle of calculating confidence intervals, let&#8217;s start doing it with greater precision, as we normally would in real-life research.<\/p>\n<p>&nbsp;<\/p>\n<p>Even if I used &#8220;1, 2, 3 standard deviations\/errors away from the mean&#8221; in the calculations so far, this is a quick-and-easy rounding only <em>approximating<\/em>\u00a0the real formula for confidence interval.\u00a0<span style=\"font-size: 14pt;text-indent: 18.6667px\">From Section 5.2.5 (<a href=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/5-2-5-the-real-use-of-z-values\/\">https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/5-2-5-the-real-use-of-z-values\/<\/a>), we know that the probabilities under the normal curve are associated with specific\u00a0<\/span><em style=\"font-size: 14pt;text-indent: 18.6667px\">z<\/em><span style=\"font-size: 14pt;text-indent: 18.6667px\">-values. <\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 14pt;text-indent: 18.6667px\">If you check the <em>z<\/em>-values (standard normal distribution) table<a class=\"footnote\" title=\"Like the one here https:\/\/www.mathsisfun.com\/data\/standard-normal-distribution-table.html.\" id=\"return-footnote-101-3\" href=\"#footnote-101-3\" aria-label=\"Footnote 3\"><sup class=\"footnote\">[3]<\/sup><\/a>, you&#8217;ll actually see\u00a0<\/span>that the precise <em>z<\/em>-values associated with 95% probability<a class=\"footnote\" title=\"Since the distribution is symmetric, recall that the table only gives you half the probability (i.e., between the mean and the z-score). Thus for 95% (i.e., the two sides together), you need to check (95\/2=) 47.5%.\" id=\"return-footnote-101-4\" href=\"#footnote-101-4\" aria-label=\"Footnote 4\"><sup class=\"footnote\">[4]<\/sup><\/a> and 99% probability<a class=\"footnote\" title=\"By analogy, for 99% (i.e., the two sides together), you need to check (99\/2=) 49.5%.\" id=\"return-footnote-101-5\" href=\"#footnote-101-5\" aria-label=\"Footnote 5\"><sup class=\"footnote\">[5]<\/sup><\/a> are 1.96 (almost but not quite 2) and 2.58 (almost but not quite 3), respectively.<\/p>\n<p>&nbsp;<\/p>\n<p>Now you know that even if the <em>z<\/em>-value associated with 68% probability<a class=\"footnote\" title=\"By analogy, for 68% (i.e., the two sides together), you need to check (68\/2=) 34%.\" id=\"return-footnote-101-6\" href=\"#footnote-101-6\" aria-label=\"Footnote 6\"><sup class=\"footnote\">[6]<\/sup><\/a> <em>is<\/em>\u00a0indeed 1, the other two confidence intervals we have used so far need to be recalculated properly:<\/p>\n<ul>\n<li>68% CI:\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-0289e1abf4cf7970fb44321b2d9e7f13_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#92;&#112;&#109;&#49;&#92;&#116;&#105;&#109;&#101;&#115;&#92;&#104;&#97;&#116;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"81\" style=\"vertical-align: -3px;\" \/> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-ad6ebc09754b50fdce7804e9efb4df95_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#61;&#53;&#48;&#48;&#48;&#48;&#92;&#112;&#109;&#49;&#92;&#116;&#105;&#109;&#101;&#115;&#51;&#48;&#48;&#61;&#53;&#48;&#48;&#48;&#48;&#92;&#112;&#109;&#51;&#48;&#48;&#61;&#40;&#52;&#57;&#55;&#48;&#48;&#59;&#32;&#53;&#48;&#51;&#48;&#48;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"392\" style=\"vertical-align: -4px;\" \/><\/li>\n<li>95% CI:\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-6f92c6e7e52bbd59a71d276cf28b486e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#92;&#112;&#109;&#49;&#46;&#57;&#54;&#92;&#116;&#105;&#109;&#101;&#115;&#92;&#104;&#97;&#116;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"104\" style=\"vertical-align: -3px;\" \/> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-01a8761f08ce4528dde810baf565318d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#61;&#53;&#48;&#48;&#48;&#48;&#92;&#112;&#109;&#49;&#46;&#57;&#54;&#92;&#116;&#105;&#109;&#101;&#115;&#51;&#48;&#48;&#61;&#53;&#48;&#48;&#48;&#48;&#92;&#112;&#109;&#53;&#56;&#56;&#61;&#32;&#40;&#52;&#57;&#52;&#49;&#50;&#59;&#32;&#53;&#48;&#53;&#56;&#56;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"414\" style=\"vertical-align: -4px;\" \/><\/li>\n<li>99% CI:\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-3ac1f52dd413dfcfad73a86c9e9fa16f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#92;&#112;&#109;&#50;&#46;&#53;&#56;&#92;&#116;&#105;&#109;&#101;&#115;&#92;&#104;&#97;&#116;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"104\" style=\"vertical-align: -3px;\" \/> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-8ba211bc6aa6452dad12aa13dcdc70cd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#61;&#53;&#48;&#48;&#48;&#48;&#92;&#112;&#109;&#50;&#46;&#53;&#56;&#92;&#116;&#105;&#109;&#101;&#115;&#51;&#48;&#48;&#61;&#53;&#48;&#48;&#48;&#48;&#92;&#112;&#109;&#55;&#55;&#52;&#61;&#32;&#40;&#52;&#57;&#50;&#50;&#54;&#59;&#32;&#53;&#48;&#55;&#55;&#52;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"414\" style=\"vertical-align: -4px;\" \/><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>To interpret, we find that we can be 95% certain that the average annual income of the population is between &#36;49,412 and &#36;50,588. As well, we find that we can be 99% certain that the average annual income is between &#36;49,226 and &#36;50,774.<\/p>\n<p>&nbsp;<\/p>\n<p>Furthermore, although going by &#8220;1, 2, 3 standard deviations\/errors&#8221; makes intuitive sense, in reality would you be happy to learn anything &#8220;with 68% certainty&#8221;? Sixty-eight percent certainty is hardly certain at all! (As such, it is pretty much never used outside of teaching.)<\/p>\n<p>&nbsp;<\/p>\n<p>On the other hand, while the 95% and 99% confidence intervals are the most widely used and useful ones, there is no need to restrain yourself, should you choose to calculate <em>any<\/em> confidence interval you wish.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>The general formula for a confidence interval is thus:<\/strong><\/p>\n<ul>\n<li><strong>Any % CI:<\/strong>\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-889664c539b6103f6eba5123ca56821b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#92;&#112;&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"23\" style=\"vertical-align: 0px;\" \/> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-1bda9611f7395b695a2e9dff89b81fc5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#122;&#92;&#116;&#105;&#109;&#101;&#115;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"50\" style=\"vertical-align: -3px;\" \/><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>To calculate this, you need to choose the level of certainty you want; once you have the probability, (divide it by two and) check its corresponding <em>z<\/em>-value, then multiply it by the standard error to get the margins of error with the desired probability level of certainty.<\/p>\n<p>&nbsp;<\/p>\n<p>For example, I might want the 90% CI (not as popular as the other two but still a relevant confidence interval that has its uses).<\/p>\n<p>&nbsp;<\/p>\n<p>I check for the <em>z<\/em>-value associated with 90% probability<a class=\"footnote\" title=\"By analogy, for 90% (i.e., the two sides together), you need to check (90\/2=) 45%.\" id=\"return-footnote-101-7\" href=\"#footnote-101-7\" aria-label=\"Footnote 7\"><sup class=\"footnote\">[7]<\/sup><\/a> in a <em>z<\/em>-distribution table and I find that it&#8217;s 1.65. Then, for the example used above, I would get:<\/p>\n<ul>\n<li>90% CI:\u00a0<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-b4891e5cb09d075a3441716de2260268_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;&#92;&#112;&#109;&#49;&#46;&#54;&#53;&#92;&#116;&#105;&#109;&#101;&#115;&#92;&#104;&#97;&#116;&#92;&#115;&#105;&#103;&#109;&#97;&#95;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"104\" style=\"vertical-align: -3px;\" \/> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-b3b1ea3169a9dcec12379dbd7e66390b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#61;&#53;&#48;&#48;&#48;&#48;&#92;&#112;&#109;&#49;&#46;&#54;&#53;&#92;&#116;&#105;&#109;&#101;&#115;&#51;&#48;&#48;&#61;&#53;&#48;&#48;&#48;&#48;&#92;&#112;&#109;&#52;&#57;&#53;&#61;&#32;&#40;&#52;&#57;&#53;&#48;&#53;&#59;&#32;&#53;&#48;&#52;&#57;&#53;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"414\" style=\"vertical-align: -4px;\" \/><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Or, I can be 90% certain that the average annual income of the population of that city is between &#36;49,505 and &#36;50,495.<\/p>\n<p>&nbsp;<\/p>\n<p>By analogy, you can thus produce <em>any<\/em> confidence interval with <em>any<\/em> level of certainty you want.<\/p>\n<p>&nbsp;<\/p>\n<p>A bit more on confidence intervals in the next section.<\/p>\n<hr class=\"before-footnotes clear\" \/><div class=\"footnotes\"><ol><li id=\"footnote-101-1\">Pronounced PAI, as you probably already know from the mathematical constant <em>\u03c0<\/em>=3.14. While we use the letter <em>\u03c0<\/em> for both population proportions and the mathematical constant, context provides enough clues to differentiate them. <a href=\"#return-footnote-101-1\" class=\"return-footnote\" aria-label=\"Return to footnote 1\">&crarr;<\/a><\/li><li id=\"footnote-101-2\">Here you can imagine the cases as the hypothetical means over infinite sampling. <a href=\"#return-footnote-101-2\" class=\"return-footnote\" aria-label=\"Return to footnote 2\">&crarr;<\/a><\/li><li id=\"footnote-101-3\">Like the one here <a href=\"https:\/\/www.mathsisfun.com\/data\/standard-normal-distribution-table.html\">https:\/\/www.mathsisfun.com\/data\/standard-normal-distribution-table.html<\/a>. <a href=\"#return-footnote-101-3\" class=\"return-footnote\" aria-label=\"Return to footnote 3\">&crarr;<\/a><\/li><li id=\"footnote-101-4\">Since the distribution is symmetric, recall that the table only gives you <em>half<\/em> the probability (i.e., between the mean and the z-score). Thus for 95% (i.e., the two sides together), you need to check (95\/2=) 47.5%.  <a href=\"#return-footnote-101-4\" class=\"return-footnote\" aria-label=\"Return to footnote 4\">&crarr;<\/a><\/li><li id=\"footnote-101-5\">By analogy, for 99% (i.e., the two sides together), you need to check (99\/2=) 49.5%. <a href=\"#return-footnote-101-5\" class=\"return-footnote\" aria-label=\"Return to footnote 5\">&crarr;<\/a><\/li><li id=\"footnote-101-6\">By analogy, for 68% (i.e., the two sides together), you need to check (68\/2=) 34%. <a href=\"#return-footnote-101-6\" class=\"return-footnote\" aria-label=\"Return to footnote 6\">&crarr;<\/a><\/li><li id=\"footnote-101-7\">By analogy, for 90% (i.e., the two sides together), you need to check (90\/2=) 45%. <a href=\"#return-footnote-101-7\" class=\"return-footnote\" aria-label=\"Return to footnote 7\">&crarr;<\/a><\/li><\/ol><\/div>","protected":false},"author":533,"menu_order":7,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-101","chapter","type-chapter","status-publish","hentry"],"part":32,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/101","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/users\/533"}],"version-history":[{"count":25,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/101\/revisions"}],"predecessor-version":[{"id":2053,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/101\/revisions\/2053"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/parts\/32"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/101\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/media?parent=101"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapter-type?post=101"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/contributor?post=101"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/license?post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}