{"id":1592,"date":"2019-08-13T17:07:04","date_gmt":"2019-08-13T21:07:04","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/simplestats\/?post_type=chapter&#038;p=1592"},"modified":"2019-08-13T17:58:40","modified_gmt":"2019-08-13T21:58:40","slug":"3-5-the-mean-with-real-data-and-other-considerations","status":"publish","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/simplestats\/chapter\/3-5-the-mean-with-real-data-and-other-considerations\/","title":{"raw":"3.5 The Mean With Existing Data and Other Considerations","rendered":"3.5 The Mean With Existing Data and Other Considerations"},"content":{"raw":"[latexpage]\r\n\r\nLet's work through some real-world data, this time from the Canadian Community Health Survey<span style=\"font-size: 18.6667px\">\u00a0<\/span><span style=\"text-indent: 1em;font-size: 14pt\">2015-2016\u00a0<\/span><span style=\"text-indent: 18.6667px;font-size: 14pt\">(Statistics Canada 2017)<\/span><span style=\"font-size: 14pt;text-indent: 1em;text-align: initial\">, a.k.a.\u00a0<\/span><em style=\"font-size: 14pt;text-indent: 1em;text-align: initial\">CCHS 15\/16<\/em><span style=\"font-size: 14pt;text-indent: 1em;text-align: initial\">, a very large dataset containing information on more than 100,000 respondents.<\/span>\r\n\r\n&nbsp;\r\n<p style=\"text-align: left\"><em>Table 3.6 Number of Times the Respondent Consulted a Mental Health<\/em>\r\n<em>Professional in the Last 12 Months (CCHS 15\/16)<\/em>\r\n<img src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/02\/FT-mean-consulted-mental-health.jpg\" alt=\"\" width=\"480\" height=\"451\" class=\"alignnone wp-image-455 size-full\" \/><\/p>\r\n&nbsp;\r\n\r\nTo calculate how many times Canadians consulted a mental health professional in the last year preceding their participation in the survey based on the data above, we need to follow the principle we used in the <em>age of classmates<\/em> and <em>number of siblings<\/em> examples in the previous section.\r\n\r\n&nbsp;\r\n\r\nSpecifically, we need to multiply each value (1 through 12 number of times a mental health professional was seen) by its frequency, then to sum all the products together, and finally to divide the sum on the total number of respondents, 15,462 (recall that we only use valid cases for analysis and exclude the missing ones).\r\n\r\n&nbsp;\r\n\r\n\\begin{equation*}\r\n\\begin{aligned}\r\n&amp; \\frac{\\sum\\limits_{i=1}^{N}{x_i}}{N} = \\\\\r\n&amp;= \\frac{1(3778)+2(2851)+3(1700)+4(1426)+5(778)+6(1008)}{15462}+ \\\\\r\n&amp;+ \\frac{7(205)+8(357)+9(66)+10(534)+11(24)+12(2735)}{15462} = \\\\\r\n&amp;= \\frac{3778+5702+5100+5704+3890+6048}{15462}+ \\\\\r\n&amp;+ \\frac{1435+2856+594+5340+264+32820}{15462}= \\\\\r\n&amp;=\\frac{73531}{15462}=4.76=\\overline{x}\r\n\\end{aligned}\r\n\\end{equation*}\r\n\r\n&nbsp;\r\n\r\nThat is, we have found that the respondents on average consulted a mental health professional 4.76 times over the 12 months preceding the survey.\r\n\r\n&nbsp;\r\n<div class=\"textbox textbox--exercises\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\"><em>Do It! 3.4\u00a0How Many Times Has The Respondent Stopped Smoking for at Least 24 hrs In the Past 12 Months (CCHS 15\/16)<\/em><\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\n&nbsp;\r\n\r\nTo save you you from calculating into the thousands, here is a variable based on a question that 99.9 percent of the respondents did not have to answer, which gives you a manageable <em>N<\/em>=106. Calculate the average number of times respondents have stopped smoking for at least 24 hrs for the 12 months preceding the survey. While you're at it, find and report the mode and median of this variable.\r\n\r\n<\/div>\r\n<em>Table 3.7 Number of Times Respondent Stopped Smoking In the Past Year (CCHS 15\/16)<\/em>\r\n<div class=\"textbox__content\">\r\n\r\n<img src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/02\/FT-for-mean-stopped-smoking.jpg\" alt=\"\" width=\"484\" height=\"517\" class=\"alignnone wp-image-468 size-full\" \/>\r\n\r\n<\/div>\r\n<\/div>\r\n&nbsp;\r\n\r\nI strongly encourage you to do the above exercise yourself. Still, as usual, here is an SPSS tip on how to obtain a mean in SPSS.\r\n\r\n&nbsp;\r\n<div class=\"textbox textbox--key-takeaways\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\"><em>SPSS Tip 3.4 Obtaining the Mean<\/em><\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n<ul>\r\n \t<li>From the <em>Main Menu<\/em>, select <em>Analyze, <\/em>then<em> Descriptive Statistics, <\/em>and then<em> Frequencies<\/em>;<\/li>\r\n \t<li>Select your variable of choice from the list on the left and use the arrow to move it to the right side of the window;<\/li>\r\n \t<li>Click on the <em>Statistics<\/em> button on the right;<\/li>\r\n \t<li>In this new window, check <em>Mean<\/em>\u00a0in the <em>Central Tendency<\/em> section on your right;<\/li>\r\n \t<li>Click <em>Continue<\/em>, then <em>OK<\/em>.<\/li>\r\n \t<li>The Output window will provide a small table listing the selected variable's mean.<\/li>\r\n<\/ul>\r\n<\/div>\r\n<\/div>","rendered":"<p>Let&#8217;s work through some real-world data, this time from the Canadian Community Health Survey<span style=\"font-size: 18.6667px\">\u00a0<\/span><span style=\"text-indent: 1em;font-size: 14pt\">2015-2016\u00a0<\/span><span style=\"text-indent: 18.6667px;font-size: 14pt\">(Statistics Canada 2017)<\/span><span style=\"font-size: 14pt;text-indent: 1em;text-align: initial\">, a.k.a.\u00a0<\/span><em style=\"font-size: 14pt;text-indent: 1em;text-align: initial\">CCHS 15\/16<\/em><span style=\"font-size: 14pt;text-indent: 1em;text-align: initial\">, a very large dataset containing information on more than 100,000 respondents.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left\"><em>Table 3.6 Number of Times the Respondent Consulted a Mental Health<\/em><br \/>\n<em>Professional in the Last 12 Months (CCHS 15\/16)<\/em><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/02\/FT-mean-consulted-mental-health.jpg\" alt=\"\" width=\"480\" height=\"451\" class=\"alignnone wp-image-455 size-full\" srcset=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/02\/FT-mean-consulted-mental-health.jpg 480w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/02\/FT-mean-consulted-mental-health-300x282.jpg 300w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/02\/FT-mean-consulted-mental-health-65x61.jpg 65w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/02\/FT-mean-consulted-mental-health-225x211.jpg 225w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/02\/FT-mean-consulted-mental-health-350x329.jpg 350w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>To calculate how many times Canadians consulted a mental health professional in the last year preceding their participation in the survey based on the data above, we need to follow the principle we used in the <em>age of classmates<\/em> and <em>number of siblings<\/em> examples in the previous section.<\/p>\n<p>&nbsp;<\/p>\n<p>Specifically, we need to multiply each value (1 through 12 number of times a mental health professional was seen) by its frequency, then to sum all the products together, and finally to divide the sum on the total number of respondents, 15,462 (recall that we only use valid cases for analysis and exclude the missing ones).<\/p>\n<p>&nbsp;<\/p>\n<p class=\"ql-center-displayed-equation\" style=\"line-height: 277px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/ql-cache\/quicklatex.com-230ddf9d4c3b09a2cfa04c34ada6784b_l3.png\" height=\"277\" width=\"486\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#101;&#100;&#125; &#38;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#117;&#109;&#92;&#108;&#105;&#109;&#105;&#116;&#115;&#95;&#123;&#105;&#61;&#49;&#125;&#94;&#123;&#78;&#125;&#123;&#120;&#95;&#105;&#125;&#125;&#123;&#78;&#125;&#32;&#61;&#32;&#92;&#92; &#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#40;&#51;&#55;&#55;&#56;&#41;&#43;&#50;&#40;&#50;&#56;&#53;&#49;&#41;&#43;&#51;&#40;&#49;&#55;&#48;&#48;&#41;&#43;&#52;&#40;&#49;&#52;&#50;&#54;&#41;&#43;&#53;&#40;&#55;&#55;&#56;&#41;&#43;&#54;&#40;&#49;&#48;&#48;&#56;&#41;&#125;&#123;&#49;&#53;&#52;&#54;&#50;&#125;&#43;&#32;&#92;&#92; &#38;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#55;&#40;&#50;&#48;&#53;&#41;&#43;&#56;&#40;&#51;&#53;&#55;&#41;&#43;&#57;&#40;&#54;&#54;&#41;&#43;&#49;&#48;&#40;&#53;&#51;&#52;&#41;&#43;&#49;&#49;&#40;&#50;&#52;&#41;&#43;&#49;&#50;&#40;&#50;&#55;&#51;&#53;&#41;&#125;&#123;&#49;&#53;&#52;&#54;&#50;&#125;&#32;&#61;&#32;&#92;&#92; &#38;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#51;&#55;&#55;&#56;&#43;&#53;&#55;&#48;&#50;&#43;&#53;&#49;&#48;&#48;&#43;&#53;&#55;&#48;&#52;&#43;&#51;&#56;&#57;&#48;&#43;&#54;&#48;&#52;&#56;&#125;&#123;&#49;&#53;&#52;&#54;&#50;&#125;&#43;&#32;&#92;&#92; &#38;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#52;&#51;&#53;&#43;&#50;&#56;&#53;&#54;&#43;&#53;&#57;&#52;&#43;&#53;&#51;&#52;&#48;&#43;&#50;&#54;&#52;&#43;&#51;&#50;&#56;&#50;&#48;&#125;&#123;&#49;&#53;&#52;&#54;&#50;&#125;&#61;&#32;&#92;&#92; &#38;&#61;&#92;&#102;&#114;&#97;&#99;&#123;&#55;&#51;&#53;&#51;&#49;&#125;&#123;&#49;&#53;&#52;&#54;&#50;&#125;&#61;&#52;&#46;&#55;&#54;&#61;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#120;&#125; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#101;&#100;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>That is, we have found that the respondents on average consulted a mental health professional 4.76 times over the 12 months preceding the survey.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"textbox textbox--exercises\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\"><em>Do It! 3.4\u00a0How Many Times Has The Respondent Stopped Smoking for at Least 24 hrs In the Past 12 Months (CCHS 15\/16)<\/em><\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>&nbsp;<\/p>\n<p>To save you you from calculating into the thousands, here is a variable based on a question that 99.9 percent of the respondents did not have to answer, which gives you a manageable <em>N<\/em>=106. Calculate the average number of times respondents have stopped smoking for at least 24 hrs for the 12 months preceding the survey. While you&#8217;re at it, find and report the mode and median of this variable.<\/p>\n<\/div>\n<p><em>Table 3.7 Number of Times Respondent Stopped Smoking In the Past Year (CCHS 15\/16)<\/em><\/p>\n<div class=\"textbox__content\">\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/02\/FT-for-mean-stopped-smoking.jpg\" alt=\"\" width=\"484\" height=\"517\" class=\"alignnone wp-image-468 size-full\" srcset=\"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/02\/FT-for-mean-stopped-smoking.jpg 484w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/02\/FT-for-mean-stopped-smoking-281x300.jpg 281w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/02\/FT-for-mean-stopped-smoking-65x69.jpg 65w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/02\/FT-for-mean-stopped-smoking-225x240.jpg 225w, https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-content\/uploads\/sites\/564\/2019\/02\/FT-for-mean-stopped-smoking-350x374.jpg 350w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/p>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>I strongly encourage you to do the above exercise yourself. Still, as usual, here is an SPSS tip on how to obtain a mean in SPSS.<\/p>\n<p>&nbsp;<\/p>\n<div class=\"textbox textbox--key-takeaways\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\"><em>SPSS Tip 3.4 Obtaining the Mean<\/em><\/p>\n<\/header>\n<div class=\"textbox__content\">\n<ul>\n<li>From the <em>Main Menu<\/em>, select <em>Analyze, <\/em>then<em> Descriptive Statistics, <\/em>and then<em> Frequencies<\/em>;<\/li>\n<li>Select your variable of choice from the list on the left and use the arrow to move it to the right side of the window;<\/li>\n<li>Click on the <em>Statistics<\/em> button on the right;<\/li>\n<li>In this new window, check <em>Mean<\/em>\u00a0in the <em>Central Tendency<\/em> section on your right;<\/li>\n<li>Click <em>Continue<\/em>, then <em>OK<\/em>.<\/li>\n<li>The Output window will provide a small table listing the selected variable&#8217;s mean.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n","protected":false},"author":533,"menu_order":5,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-1592","chapter","type-chapter","status-publish","hentry"],"part":24,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/1592","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":8,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/1592\/revisions"}],"predecessor-version":[{"id":1607,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/1592\/revisions\/1607"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/parts\/24"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapters\/1592\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/media?parent=1592"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/pressbooks\/v2\/chapter-type?post=1592"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/contributor?post=1592"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/simplestats\/wp-json\/wp\/v2\/license?post=1592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}