{"id":72,"date":"2021-01-12T22:19:39","date_gmt":"2021-01-12T22:19:39","guid":{"rendered":"https:\/\/textbooks.jaykesler.net\/introstats\/chapter\/distribution-needed-for-hypothesis-testing\/"},"modified":"2022-08-19T17:50:22","modified_gmt":"2022-08-19T17:50:22","slug":"distribution-needed-for-hypothesis-testing","status":"publish","type":"chapter","link":"https:\/\/textbooks.jaykesler.net\/introstats\/chapter\/distribution-needed-for-hypothesis-testing\/","title":{"rendered":"Distribution Needed for Hypothesis Testing"},"content":{"raw":"<span style=\"display: none;\">\r\n[latexpage]\r\n<\/span>\r\n<div id=\"08dc1814-e8d7-4693-9356-a8f0dad01312\" class=\"chapter-content-module\" data-type=\"page\" data-cnxml-to-html-ver=\"2.1.0\">\r\n<p id=\"fs-idm27402752\">Earlier in the course, we discussed sampling distributions. <strong>Particular distributions are associated with hypothesis testing.<\/strong> Perform tests of a population mean using a <span id=\"term171\" data-type=\"term\">normal distribution<\/span> or a <span id=\"term172\" data-type=\"term\">Student's <em data-effect=\"italics\">t<\/em>-distribution<\/span>. (Remember, use a Student's <em data-effect=\"italics\">t<\/em>-distribution when the population <span id=\"term173\" data-type=\"term\">standard deviation<\/span> is unknown and the distribution of the sample mean is approximately normal.) We perform tests of a population proportion using a normal distribution (usually <em data-effect=\"italics\">n<\/em> is large).<\/p>\r\n<p id=\"element-418\">If you are testing a <span id=\"term174\" data-type=\"term\">single population mean<\/span>\u00a0when the population standard deviation is unknown (most of the time), the distribution for the test is for <strong>means<\/strong>:<\/p>\r\n$\\bar X \\sim t_{df}\\left(\\mu_X, \\frac{s_X}{\\sqrt{n}}\\right)$ \"a student-t distribution with <em>df<\/em> degrees of freedom\"\r\n\r\nThe population parameter is <em data-effect=\"italics\">\u03bc<\/em>. The estimated value (point estimate) for \u03bc is $\\bar x$, the sample mean.\r\n<p id=\"element-245\">If you are testing a <span id=\"term175\" data-type=\"term\">single population proportion<\/span>, the distribution for the test is for\r\nproportions or percentages:<\/p>\r\n$\\hat P \\sim N\\left( p, \\sqrt{\\frac{pq}{n}} \\right)$\r\n\r\nThe population parameter is <em data-effect=\"italics\">p<\/em>. The estimated value (point estimate) for <em data-effect=\"italics\">p<\/em> is $\\hat p$.\r\n\r\n$\\hat p = \\frac{x}{n}$ where <em data-effect=\"italics\">x<\/em> is the number of successes and <em data-effect=\"italics\">n<\/em> is the sample size.\r\n\r\n<section id=\"fs-idp38268576\" data-depth=\"1\">\r\n<h3 data-type=\"title\">Assumptions<\/h3>\r\n<p id=\"fs-idp18826944\">When you perform a <span id=\"term176\" data-type=\"term\">hypothesis test<\/span> <strong>of a single population mean <em data-effect=\"italics\">\u03bc<\/em><\/strong> using a\r\n<span id=\"term177\" data-type=\"term\">Student's <em data-effect=\"italics\">t<\/em>-distribution<\/span> (often called a t-test), there are fundamental assumptions that need to be met in order for the test to work properly. Your data should be a <span id=\"term178\" data-type=\"term\">simple random sample<\/span> that comes from a population that is approximately <span id=\"term179\" data-type=\"term\">normally distributed<\/span>. You use the sample <span id=\"term180\" data-type=\"term\">standard deviation<\/span> to approximate the population standard deviation. (Note that if the sample size is sufficiently large, a t-test will work even if the population is not approximately normally distributed).<\/p>\r\n<p id=\"element-395\">When you perform a <strong>hypothesis test of a single population proportion <em data-effect=\"italics\">p<\/em><\/strong>, you\r\ntake a simple random sample from the population. You must meet the conditions for a <span id=\"term181\" data-type=\"term\">binomial distribution<\/span> which are: there are a certain number <em data-effect=\"italics\">n<\/em> of independent trials, the outcomes of any trial are success or failure, and each trial has the same probability of a success <em data-effect=\"italics\">p<\/em>. The shape of the binomial distribution needs to be similar to the shape of the normal distribution. To ensure this, the quantities <em data-effect=\"italics\">np<\/em> and <em data-effect=\"italics\">nq<\/em> must both be greater than five (<em data-effect=\"italics\">np<\/em> &gt; 5 and <em data-effect=\"italics\">nq<\/em> &gt; 5). Then the binomial distribution of a sample (estimated) proportion can be approximated by the normal distribution with $\u03bc = p$ and $\\sigma = \\sqrt{\\frac{pq}{n}}$<\/p>\r\nRemember that <em data-effect=\"italics\">q<\/em> = 1 \u2013 <em data-effect=\"italics\">p<\/em>.\r\n<p id=\"element-849\">When you perform a <strong>hypothesis test of a single population mean <em data-effect=\"italics\">\u03bc<\/em><\/strong> using a\r\nnormal distribution (often called a <em data-effect=\"italics\">z<\/em>-test), you take a simple random sample from the population. The population you are testing is normally distributed or your sample size is sufficiently large. You know the value of the population standard deviation which, in reality, is rarely known; for this reason, we don't emphasize this type of test in this book and most examples will be of the other two types mentioned above.<\/p>\r\n\r\n<\/section><\/div>","rendered":"<p><span style=\"display: none;\"><br \/>\n[latexpage]<br \/>\n<\/span><\/p>\n<div id=\"08dc1814-e8d7-4693-9356-a8f0dad01312\" class=\"chapter-content-module\" data-type=\"page\" data-cnxml-to-html-ver=\"2.1.0\">\n<p id=\"fs-idm27402752\">Earlier in the course, we discussed sampling distributions. <strong>Particular distributions are associated with hypothesis testing.<\/strong> Perform tests of a population mean using a <span id=\"term171\" data-type=\"term\">normal distribution<\/span> or a <span id=\"term172\" data-type=\"term\">Student&#8217;s <em data-effect=\"italics\">t<\/em>-distribution<\/span>. (Remember, use a Student&#8217;s <em data-effect=\"italics\">t<\/em>-distribution when the population <span id=\"term173\" data-type=\"term\">standard deviation<\/span> is unknown and the distribution of the sample mean is approximately normal.) We perform tests of a population proportion using a normal distribution (usually <em data-effect=\"italics\">n<\/em> is large).<\/p>\n<p id=\"element-418\">If you are testing a <span id=\"term174\" data-type=\"term\">single population mean<\/span>\u00a0when the population standard deviation is unknown (most of the time), the distribution for the test is for <strong>means<\/strong>:<\/p>\n<p>$\\bar X \\sim t_{df}\\left(\\mu_X, \\frac{s_X}{\\sqrt{n}}\\right)$ &#8220;a student-t distribution with <em>df<\/em> degrees of freedom&#8221;<\/p>\n<p>The population parameter is <em data-effect=\"italics\">\u03bc<\/em>. The estimated value (point estimate) for \u03bc is $\\bar x$, the sample mean.<\/p>\n<p id=\"element-245\">If you are testing a <span id=\"term175\" data-type=\"term\">single population proportion<\/span>, the distribution for the test is for<br \/>\nproportions or percentages:<\/p>\n<p>$\\hat P \\sim N\\left( p, \\sqrt{\\frac{pq}{n}} \\right)$<\/p>\n<p>The population parameter is <em data-effect=\"italics\">p<\/em>. The estimated value (point estimate) for <em data-effect=\"italics\">p<\/em> is $\\hat p$.<\/p>\n<p>$\\hat p = \\frac{x}{n}$ where <em data-effect=\"italics\">x<\/em> is the number of successes and <em data-effect=\"italics\">n<\/em> is the sample size.<\/p>\n<section id=\"fs-idp38268576\" data-depth=\"1\">\n<h3 data-type=\"title\">Assumptions<\/h3>\n<p id=\"fs-idp18826944\">When you perform a <span id=\"term176\" data-type=\"term\">hypothesis test<\/span> <strong>of a single population mean <em data-effect=\"italics\">\u03bc<\/em><\/strong> using a<br \/>\n<span id=\"term177\" data-type=\"term\">Student&#8217;s <em data-effect=\"italics\">t<\/em>-distribution<\/span> (often called a t-test), there are fundamental assumptions that need to be met in order for the test to work properly. Your data should be a <span id=\"term178\" data-type=\"term\">simple random sample<\/span> that comes from a population that is approximately <span id=\"term179\" data-type=\"term\">normally distributed<\/span>. You use the sample <span id=\"term180\" data-type=\"term\">standard deviation<\/span> to approximate the population standard deviation. (Note that if the sample size is sufficiently large, a t-test will work even if the population is not approximately normally distributed).<\/p>\n<p id=\"element-395\">When you perform a <strong>hypothesis test of a single population proportion <em data-effect=\"italics\">p<\/em><\/strong>, you<br \/>\ntake a simple random sample from the population. You must meet the conditions for a <span id=\"term181\" data-type=\"term\">binomial distribution<\/span> which are: there are a certain number <em data-effect=\"italics\">n<\/em> of independent trials, the outcomes of any trial are success or failure, and each trial has the same probability of a success <em data-effect=\"italics\">p<\/em>. The shape of the binomial distribution needs to be similar to the shape of the normal distribution. To ensure this, the quantities <em data-effect=\"italics\">np<\/em> and <em data-effect=\"italics\">nq<\/em> must both be greater than five (<em data-effect=\"italics\">np<\/em> &gt; 5 and <em data-effect=\"italics\">nq<\/em> &gt; 5). Then the binomial distribution of a sample (estimated) proportion can be approximated by the normal distribution with $\u03bc = p$ and $\\sigma = \\sqrt{\\frac{pq}{n}}$<\/p>\n<p>Remember that <em data-effect=\"italics\">q<\/em> = 1 \u2013 <em data-effect=\"italics\">p<\/em>.<\/p>\n<p id=\"element-849\">When you perform a <strong>hypothesis test of a single population mean <em data-effect=\"italics\">\u03bc<\/em><\/strong> using a<br \/>\nnormal distribution (often called a <em data-effect=\"italics\">z<\/em>-test), you take a simple random sample from the population. The population you are testing is normally distributed or your sample size is sufficiently large. You know the value of the population standard deviation which, in reality, is rarely known; for this reason, we don&#8217;t emphasize this type of test in this book and most examples will be of the other two types mentioned above.<\/p>\n<\/section>\n<\/div>\n","protected":false},"author":1,"menu_order":2,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-72","chapter","type-chapter","status-publish","hentry"],"part":70,"_links":{"self":[{"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/chapters\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":5,"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/chapters\/72\/revisions"}],"predecessor-version":[{"id":516,"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/chapters\/72\/revisions\/516"}],"part":[{"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/parts\/70"}],"metadata":[{"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/chapters\/72\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/pressbooks\/v2\/chapter-type?post=72"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/wp\/v2\/contributor?post=72"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/textbooks.jaykesler.net\/introstats\/wp-json\/wp\/v2\/license?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}