{"id":2698,"date":"2012-11-28T04:03:07","date_gmt":"2012-11-28T09:03:07","guid":{"rendered":"http:\/\/www.thejuliagroup.com\/blog\/?p=2698"},"modified":"2012-11-28T04:06:18","modified_gmt":"2012-11-28T09:06:18","slug":"how-to-solve-any-statistics-problem-part-3-proportions","status":"publish","type":"post","link":"https:\/\/www.thejuliagroup.com\/blog\/how-to-solve-any-statistics-problem-part-3-proportions\/","title":{"rendered":"How to solve any (statistics) problem: Part 3, proportions"},"content":{"rendered":"<p><a href=\"http:\/\/www.thejuliagroup.com\/blog\/?p=2688\">Last month, I wrote about the steps to solving any statistics problem<\/a>.<\/p>\n<p><em>A Pew Research Poll asked 1,201 adults<\/em><\/p>\n<p><em> \u201cAll in all, do you think affirmative action programs designed to increase the number of black and other minority students on campus are a good thing or a bad thing? Sixty percent said good, 30% said bad and 10% said don\u2019t know. Let \u03c0 denote the population proportion who said it is good. Find the p-value for testing Ho : \u03c0= 0.50 against Ha \u03c0 \u2260 0.50 . Interpret.<\/em><\/p>\n<figure id=\"attachment_2849\" aria-describedby=\"caption-attachment-2849\" style=\"width: 272px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2012\/11\/mmatate51.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2849\" title=\"Chill. It's just my daughter and a friend goofing off\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2012\/11\/mmatate51.jpg\" alt=\"Ronda punching Crystal\" width=\"272\" height=\"399\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2012\/11\/mmatate51.jpg 340w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2012\/11\/mmatate51-204x300.jpg 204w\" sizes=\"auto, (max-width: 272px) 100vw, 272px\" \/><\/a><figcaption id=\"caption-attachment-2849\" class=\"wp-caption-text\">Chill. It&#8217;s just my daughter and a friend goofing off<\/figcaption><\/figure>\n<p>Going back to our previous discussion of steps in solving a problem, let&#8217;s look at these one at a time as they apply to this question about proportions.<\/p>\n<p><strong>1. Chill.<\/strong> I have accomplished this by sitting here with a cup of Chamomile tea and a glass of Chardonnay. I intend to finish both of them before this post. In all seriousness, though, I think students often get problems wrong just because they panic. What do I do? What do I do? Relax. Take a sip of wine. Okay, better? Yes, and the picture above is my daughter and her friend, just goofing off in the photo shoot for my book. Seriously. Chill.<\/p>\n<p><strong>2. Understand the problem.<\/strong><\/p>\n<p>60% said affirmative action was good<\/p>\n<p>30% said it was bad<\/p>\n<p>10% were undecided<\/p>\n<p>&nbsp;<\/p>\n<p>The question asks you to test the PROPORTION (not the mean) who said affirmative action was <span style=\"text-decoration: underline;\">good.\u00a0<\/span> This has nothing to do with the 30% or 10%. You \u00a0do NOT want to compute a chi-square here. That would test if there was an association between two variables, the respondents&#8217; rating of affirmative action and some other variable. You do not have any other variable.<\/p>\n<p><strong>3. Select a strategy.<\/strong><\/p>\n<p>Identify the statistic you need, the formula you will need to obtain that statistic and the numbers you need to find to plug into that formula.<\/p>\n<p>Then, compare the obtained statistic to the table of critical values.<\/p>\n<p>You need a z-value. To get a z-value you use this formula:<\/p>\n<p>z= <span style=\"text-decoration: underline;\">Obtained proportion &#8211; Hypothesized population proportion<br \/>\n<\/span>\u00a0 \u00a0 \u00a0 standard error<\/p>\n<p>&nbsp;<\/p>\n<p>Since it starts with a P for proportion and population, let&#8217;s call the hypothesized population proportion\u00a0\u220f<\/p>\n<p>To get the standard error, you use this formula<\/p>\n<p>The SQUARE ROOT OF<\/p>\n<p><span style=\"text-decoration: underline;\">\u00a0 \u220f*(1 -\u220f)<br \/>\n<\/span>\u00a0N<\/p>\n<p><strong>4. Execute the strategy<\/strong><\/p>\n<p>First, I need to find the standard error. \u00a0My \u220f \u00a0value is .50 &#8211; remember, that is the hypothesized population value, not the value you obtained.<\/p>\n<p>So \u00a0&#8212; I take .5 * (1-.5) \u00a0and get .25<\/p>\n<p>I divide that by 1,201 and get .000208 \u00a0or thereabouts.<\/p>\n<p>I take the square root of that and get .014<\/p>\n<p>Now, I have my standard error. I think bells should ring at this point, but they did not. I was sadly disappointed so I drank some more Chardonnay to get over it.<\/p>\n<p>Now, \u00a0I calculate my z-value by plugging in more numbers. The obtained value is .60, the hypothesized value (\u220f ) is .50 and my standard error is .014<\/p>\n<p><span style=\"text-decoration: underline;\">.60 &#8211; .50<br \/>\n<\/span>.014<\/p>\n<p>that equals 6.93<\/p>\n<p>I compare that to a z table in a handy dandy statistics textbook, which only goes up to 5.0 but that has a probability of way less than .0001, so I call it a day, saying that it is extremely unlikely one would get a proportion of 60% in a sample of 1,201 people if the population proportion was truly 50%. This assumes all of the usual suspects, that is no bias in the wording of the question, random sampling.<\/p>\n<p><strong>5. \u00a0Test it. Evaluate your answer.<\/strong> The first thing I always do is a reality check. Unless I&#8217;ve had a LOT of glasses of Chardonnay, I can generally perceive reality fairly well. Does it make sense that a sample that large would be that far off? No, not really. So, it does seem pretty likely that if the obtained proportion from well over 1,000 people randomly sampled is 60% it is not as low as 50% in the population.<\/p>\n<p>Another way I might test it is to throw it into some statistical software and see if I get the same answer. Maybe if I&#8217;m feeling ambitious, I&#8217;ll do that tomorrow. Sadly, I am now all out of chamomile tea. Happily, there is still more wine.<\/p>\n<figure id=\"attachment_2850\" aria-describedby=\"caption-attachment-2850\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2012\/11\/mompartying.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2850\" title=\"My mom, partying down in Halifax\" src=\"http:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2012\/11\/mompartying-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2012\/11\/mompartying-300x225.jpg 300w, https:\/\/www.thejuliagroup.com\/blog\/wp-content\/uploads\/2012\/11\/mompartying-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-2850\" class=\"wp-caption-text\">My mom, partying down in Halifax<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Last month, I wrote about the steps to solving any statistics problem. A Pew Research Poll asked 1,201 adults \u201cAll in all, do you think affirmative action programs designed to increase the number of black and other minority students on campus are a good thing or a bad thing? Sixty percent said good, 30% said&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-2698","post","type-post","status-publish","format-standard","hentry","category-statistics"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/2698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/comments?post=2698"}],"version-history":[{"count":3,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/2698\/revisions"}],"predecessor-version":[{"id":2853,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/posts\/2698\/revisions\/2853"}],"wp:attachment":[{"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/media?parent=2698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/categories?post=2698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thejuliagroup.com\/blog\/wp-json\/wp\/v2\/tags?post=2698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}