{"id":2675,"date":"2019-07-20T13:37:22","date_gmt":"2019-07-20T13:37:22","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=2675"},"modified":"2024-03-27T12:01:06","modified_gmt":"2024-03-27T12:01:06","slug":"two-tailed-test-tutorial","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/","title":{"rendered":"Two Tailed Test"},"content":{"rendered":"<h1 style=\"text-align: center;\">Two-Tailed Test Tutorial<\/h1>\n<p>&nbsp;<\/p>\n<p><strong>Two-tailed test tutorial<\/strong>, Welcome to the world of a two-tailed test in <a href=\"https:\/\/prwatech.in\/data-science-training-institutes-in-bangalore\/\">Data science<\/a> using python. Now, we are going to cover the introduction of the two-tailed test tutorial. Along with this, we will study various uses of it and formula to calculate with example.<\/p>\n<p>&nbsp;<\/p>\n<p>Thinking of having a career as a <a href=\"https:\/\/prwatech.in\/data-science-training-institutes-in-bangalore\/\">Data analyst<\/a>? Planning to go for a certification in Data science and related subjects but still not getting a conviction whether it is the right thing to do or not? Confused about whether to invest time in gaining knowledge of <a href=\"https:\/\/prwatech.in\/data-science-training-institutes-in-bangalore\/\">Data science<\/a> or not? Such questions can give you sleepless nights, but by taking an advanced data science course from India\u2019s largest E-Learning <a href=\"https:\/\/prwatech.in\/data-science-training-institutes-in-bangalore\/\">data science training institute in Bangalore<\/a>, I am sure that you will get a lot of reasons to build a data science career.<\/p>\n<p>&nbsp;<\/p>\n<h2>Two-tailed test Definition<\/h2>\n<p>A test of a statistical hypothesis, where the area of rejection is on both sides of the sampling distribution, is known as the Two-Tailed Test.<\/p>\n<p>As the name suggests Two Tail Test is a test involving a lower part or the part at the Tails on both sides of the curve is known as the Two-Tailed Test.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2676\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/twotailtest.gif\" alt=\"two tailed test tutorial\" width=\"850\" height=\"622\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Over a Normal Distribution bell-shaped cure, two tail test divides the value of rejection into two equivalent parts of the same size at the end of the curve.<\/p>\n<p>At 5 % of rejection in a two-tail test, each part of rejection is 2.5 % such that standard deviation is less then -1.96 and more than 1.96, and 95% of Acceptance.<\/p>\n<p>&nbsp;<\/p>\n<h3>Why we use a two-tail test?<\/h3>\n<p>&nbsp;<\/p>\n<p>To test the Null Hypothesis or non-directional hypothesis. i.e. there is no significant difference between the null hypothesis.<\/p>\n<p>It is used when positive or negative direction value is not possible.<br \/>\nWhere: Ho: M1-M2 =0.<\/p>\n<p>Ho: M1=M2<\/p>\n<p>To find any difference or not between two means.<\/p>\n<p>Suppose the null hypothesis states that the mean is equal to 70. The alternative hypothesis will be that the mean is less than 70 or greater than 70. The region of rejection will include a range of numbers located on both sides of sampling distribution; i.e. the region of rejection will include parts of numbers that were less than 70 and partly of numbers that were greater than 70.<\/p>\n<p>&nbsp;<\/p>\n<h3>How to use Two Tail Test?<\/h3>\n<p>&nbsp;<\/p>\n<p>As a hypothetical example, imagine a situation that a new stockbroker (DLF) claims that his brokerage fees are lower than that of your current stock broker&#8217;s (ABC). Data available from an independent research firm specifies that the mean and standard deviation of all ABC broker clients are $22 and $9, respectively.<\/p>\n<p>A sample of 600 clients of ABC are chosen and brokerage charges are calculated with the new rates of DLF broker. If the mean of the sample is $15 and the sample standard deviation is $9, can any inference be made about the difference in the average brokerage bill between ABC and DLF broker?<\/p>\n<p>H0 = 15<\/p>\n<p>H1&lt;&gt; 15(This is what we want to prove.)<\/p>\n<p>Rejection region: Z &lt;= &#8211; Z 2.5 and Z&gt;=Z 2.5 (assuming 5% significance level, split 2.5 each on either side).<\/p>\n<p>&nbsp;<\/p>\n<h3>\u00a0Two-tailed Test Example<\/h3>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3677\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/twotailtest1.png\" alt=\"two tailed test example\" width=\"850\" height=\"352\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/twotailtest1.png 632w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/twotailtest1-300x124.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>This calculated Z value falls between the two limits defined by: &#8211; Z2.5 = -1.96 and Z2.5 = 1.96.<\/p>\n<p>This concludes that there is insufficient evidence to infer that there is any difference between the rates of your existing broker and the new broker. Alternatively, the p-value = P(Z&lt; -1.25)+P(Z &gt;1.25) = 2 * 0.1056 = 0.2112 = 21.12%, which is greater than 0.05 or 5%, leads to the same conclusion.<\/p>\n<p>H0 = 15<\/p>\n<p>H1&lt;&gt; 18<\/p>\n<p>Rejection region: Z &lt;= &#8211; Z2.5 and Z&gt;=Z2.5 (assuming 5% significance level, split 2.5 each on either side).<\/p>\n<p>Z = (sample mean \u2013 mean) \/ (std-dev \/ sqrt (no. of samples))<\/p>\n<p style=\"padding-left: 60px;\">=(18.75 \u2013 18) \/ (6\/()<\/p>\n<p style=\"padding-left: 60px;\">= 1.25<\/p>\n<p>This calculated Z value falls between the two limits defined by: &#8211; Z2.5 = -1.96 and Z2.5 = 1.96.<\/p>\n<p>This indicates that there is insufficient evidence to conclude that there is any difference between the rates of your existing broker and the new broker. Alternatively, the p-value = P (Z&lt; -1.25) + P (Z &gt;1.25) = 2 * 0.1056 = 0.2112 = 21.12%, which is greater than 0.05 or 5%, leads to the same conclusion.<\/p>\n<p>&nbsp;<\/p>\n<p>We hope you have understood the basics of the two-tailed test tutorial with examples in data science. Be a part of future technologies like Data Science. Register from <a href=\"https:\/\/prwatech.in\/data-science-training-institutes-in-bangalore\/\">Data Science Training in Bangalore<\/a> by industry experts at <a href=\"http:\/\/prwatech.com\/\">Prwatech<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/yyHNh_6luPc\" width=\"650\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Two-Tailed Test Tutorial &nbsp; Two-tailed test tutorial, Welcome to the world of a two-tailed test in Data science using python. Now, we are going to cover the introduction of the two-tailed test tutorial. Along with this, we will study various uses of it and formula to calculate with example. &nbsp; Thinking of having a career [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,1704],"tags":[231,232,230,233,234,229],"class_list":["post-2675","post","type-post","status-publish","format-standard","hentry","category-data-science","category-data-science-modules","tag-two-tailed-hypothesis-test","tag-two-tailed-test-definition","tag-two-tailed-test-example","tag-two-tailed-test-formula","tag-two-tailed-test-in-data-science","tag-two-tailed-test-tutorial"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Two Tailed Test Tutorial - Definition, Formula &amp; Examples<\/title>\n<meta name=\"description\" content=\"Learn complete concept of two tailed test tutorial with its definition, how to use &amp; why we need in data science. Enroll with us for Data science training.\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Two Tailed Test Tutorial - Definition, Formula &amp; Examples\" \/>\n<meta property=\"og:description\" content=\"Learn complete concept of two tailed test tutorial with its definition, how to use &amp; why we need in data science. Enroll with us for Data science training.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/\" \/>\n<meta property=\"og:site_name\" content=\"Prwatech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prwatech.in\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-20T13:37:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-27T12:01:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/twotailtest.gif\" \/>\n<meta name=\"author\" content=\"Prwatech\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:site\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prwatech\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/\",\"url\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/\",\"name\":\"Two Tailed Test Tutorial - Definition, Formula & Examples\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/twotailtest.gif\",\"datePublished\":\"2019-07-20T13:37:22+00:00\",\"dateModified\":\"2024-03-27T12:01:06+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"Learn complete concept of two tailed test tutorial with its definition, how to use & why we need in data science. Enroll with us for Data science training.\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/twotailtest.gif\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/twotailtest.gif\",\"width\":455,\"height\":333},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Two Tailed Test\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/prwatech.in\/blog\/#website\",\"url\":\"https:\/\/prwatech.in\/blog\/\",\"name\":\"Prwatech\",\"description\":\"Share Ideas, Start Something Good.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/prwatech.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\",\"name\":\"Prwatech\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"caption\":\"Prwatech\"},\"url\":\"https:\/\/prwatech.in\/blog\/author\/prwatech123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Two Tailed Test Tutorial - Definition, Formula & Examples","description":"Learn complete concept of two tailed test tutorial with its definition, how to use & why we need in data science. Enroll with us for Data science training.","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Two Tailed Test Tutorial - Definition, Formula & Examples","og_description":"Learn complete concept of two tailed test tutorial with its definition, how to use & why we need in data science. Enroll with us for Data science training.","og_url":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2019-07-20T13:37:22+00:00","article_modified_time":"2024-03-27T12:01:06+00:00","og_image":[{"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/twotailtest.gif","type":"","width":"","height":""}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/","url":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/","name":"Two Tailed Test Tutorial - Definition, Formula & Examples","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/twotailtest.gif","datePublished":"2019-07-20T13:37:22+00:00","dateModified":"2024-03-27T12:01:06+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"Learn complete concept of two tailed test tutorial with its definition, how to use & why we need in data science. Enroll with us for Data science training.","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/twotailtest.gif","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/07\/twotailtest.gif","width":455,"height":333},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/two-tailed-test-tutorial\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Two Tailed Test"}]},{"@type":"WebSite","@id":"https:\/\/prwatech.in\/blog\/#website","url":"https:\/\/prwatech.in\/blog\/","name":"Prwatech","description":"Share Ideas, Start Something Good.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/prwatech.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3","name":"Prwatech","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","caption":"Prwatech"},"url":"https:\/\/prwatech.in\/blog\/author\/prwatech123\/"}]}},"_links":{"self":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/2675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/comments?post=2675"}],"version-history":[{"count":9,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/2675\/revisions"}],"predecessor-version":[{"id":11163,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/2675\/revisions\/11163"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=2675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=2675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=2675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}