{"id":64,"date":"2018-06-20T22:56:00","date_gmt":"2018-06-20T20:56:00","guid":{"rendered":"https:\/\/kindsonthegenius.com\/blog\/2018\/06\/20\/how-to-perform-one-sample-t-test-step-by-step\/"},"modified":"2020-08-22T20:30:01","modified_gmt":"2020-08-22T18:30:01","slug":"how-to-perform-one-sample-t-test-step-by-step","status":"publish","type":"post","link":"https:\/\/kindsonthegenius.com\/blog\/how-to-perform-one-sample-t-test-step-by-step\/","title":{"rendered":"How to Perform One-Sample t-Test Step by Step"},"content":{"rendered":"<p>I am going to teach you how to perform one-sample t-Test, step by step using an example<\/p>\n<p><span style=\"color: #cc0000;\"><b>Question<\/b><\/span><br \/>\n<em>A research believes that the mean incom of workers in Akokwa town is 20,000 dollars. She wants to test this hypothesis against the alternative that the mean income is not equal to 20,000 naira. A random sample of 9 workers in the town is chosen, and their incomes (in dollars) turn out to be the following:<\/em><br \/>\n<em>24000, 13400, 18400, 22900, 13800, 8200, 11100, 9300, 14600.<\/em><\/p>\n<p><em>(a) If the sociologist set a 5 percent significance level, should she accept or reject this hypothesis?<\/em><br \/>\n<em>(b) If she sets a 1 percent significance level, shoud she accept or reject the null hypothesis.<\/em><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #274e13;\"><b>Solution<\/b><\/span><br \/>\nWe would start with the first step and progress through the last step. These are the steps:<\/p>\n<ul>\n<li>Define the null and alternative hypothesis<\/li>\n<li>State the alpha<\/li>\n<li>Calculate the degrees of freedom<\/li>\n<li>State the decision rule (acceptance criteria)<\/li>\n<li>Calculate the test statistic<\/li>\n<li>State the results<\/li>\n<li>State your conclusion<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><ins style=\"display: block; text-align: center;\" data-ad-client=\"ca-pub-7041870931346451\" data-ad-format=\"fluid\" data-ad-layout=\"in-article\" data-ad-slot=\"8227894917\"><\/ins><br \/>\n<b>Step 1: State the null and alternate hypothesis<\/b><br \/>\nThe null hypothesis is the what is currently believed and needs to be tested. From the question the believe is that the mean income is 20,000 naira. Therefore<\/p>\n<p>H<sub>0<\/sub>: mean = 20,000 naira<br \/>\nH<sub>1<\/sub>: mean \u2260 20,000 naira<\/p>\n<p>&nbsp;<\/p>\n<p><b>Step 2: State the alpha<\/b><br \/>\nFrom the question, we have 5% significance level. This is the same as alpha level of 0.05 ( or 95% confidence). So we can state the alpha level as:<br \/>\n\u03b1 = 0.05<\/p>\n<p>&nbsp;<\/p>\n<p><b>Step 3: Calculate the degrees of freedom<\/b><br \/>\nDegrees of freedom is given as df = n-1. So in this case:<br \/>\nDegrees of freedom df = 9 -1 = 8<\/p>\n<p>&nbsp;<\/p>\n<p><b>Step 4: State the decision rule (acceptance criteria)<\/b><br \/>\nTo do this we need to look up the critical value of the t from table of t-distribution or t-Table.<br \/>\nIn the table, the alpha is placed in the column while the degrees of freedom are on the rows. In our case we look for df of 8 under 0.05. It is normally written as:<br \/>\nT<sub>crit<\/sub> or T<sub>8, 0.05<\/sub> = 2.306<\/p>\n<p>&nbsp;<\/p>\n<p><b>Decision rule<\/b>: Accept the null hypothesis if absolute value of t is less than 2.306 or greater than -2.306<\/p>\n<p>We can do a little sketch to illustrate this in Figure 1.0. Note that the 5% has been divided into two parts of 2.5% on both sides of the graph<\/p>\n<p>&nbsp;<\/p>\n<div style=\"clear: both; text-align: center;\"><a style=\"margin-left: 1em; margin-right: 1em;\" href=\"https:\/\/4.bp.blogspot.com\/-U-hlcrpNVXI\/WyrNa55hp6I\/AAAAAAAAB-s\/ddXQRk3hCwost5d5mcDubx9-RMKqL2H1gCLcBGAs\/s1600\/Accept-and-Reject%2BRegion.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/4.bp.blogspot.com\/-U-hlcrpNVXI\/WyrNa55hp6I\/AAAAAAAAB-s\/ddXQRk3hCwost5d5mcDubx9-RMKqL2H1gCLcBGAs\/s400\/Accept-and-Reject%2BRegion.jpg\" width=\"400\" height=\"191\" border=\"0\" data-original-height=\"551\" data-original-width=\"1142\" \/><\/a><\/div>\n<p><b>Figure 1.0:<\/b> Sketch of Accept and Reject region<\/p>\n<p>&nbsp;<\/p>\n<p><b>5. Calculate the test Statistic (Absolute value of t)<\/b><br \/>\nThe formula for the test statistic is given by:<\/p>\n<div style=\"clear: both; text-align: center;\"><\/div>\n<p>&nbsp;<\/p>\n<div style=\"clear: both; text-align: center;\"><a style=\"margin-left: 1em; margin-right: 1em;\" href=\"https:\/\/4.bp.blogspot.com\/-fblDbwyPIiA\/WyrOtaXXPyI\/AAAAAAAAB_A\/zbW1V22cHWQjadaXuq28zIO8pahyUUDKQCLcBGAs\/s1600\/t-test-formular.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/4.bp.blogspot.com\/-fblDbwyPIiA\/WyrOtaXXPyI\/AAAAAAAAB_A\/zbW1V22cHWQjadaXuq28zIO8pahyUUDKQCLcBGAs\/s200\/t-test-formular.jpg\" width=\"200\" height=\"60\" border=\"0\" data-original-height=\"96\" data-original-width=\"317\" \/><\/a><\/div>\n<p>where:<br \/>\nx<sub>n<\/sub> is the mean(we need to calculate it)<br \/>\n\u03bc<sub>0<\/sub> is the mean to be tested (given in the question &#8211; 20,000)<br \/>\nsd is the standard deviation of the sample (we need to calculate it)<br \/>\nn is the number of elements,\u00a0 in this case it is 9<\/p>\n<p>x<sub>n<\/sub> = Sum\/9<\/p>\n<p>Sum =\u00a0 24000+ 13400+18400+22900+13800+ 8200+11100+9300+14600<br \/>\nSum =\u00a0 135700<br \/>\nx<sub>n<\/sub> = 135700\/9 = 15077.78<br \/>\nsd =\u00a0 5623.78<\/p>\n<p>Note: Standard deviation is sum of squared deviation divided by n.<\/p>\n<p>Using the formula for t, we can calculate the value of t as:<\/p>\n<p>&nbsp;<\/p>\n<div style=\"clear: both; text-align: center;\"><a style=\"margin-left: 1em; margin-right: 1em;\" href=\"https:\/\/2.bp.blogspot.com\/-2ChQ1kXXSNM\/WyrVb6hebwI\/AAAAAAAAB_U\/SKRD9DbMfroOC-pdp60jbDzQ-3GL6mSaQCLcBGAs\/s1600\/t-statistic-calculation.jpg\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/2.bp.blogspot.com\/-2ChQ1kXXSNM\/WyrVb6hebwI\/AAAAAAAAB_U\/SKRD9DbMfroOC-pdp60jbDzQ-3GL6mSaQCLcBGAs\/s200\/t-statistic-calculation.jpg\" width=\"200\" height=\"88\" border=\"0\" data-original-height=\"186\" data-original-width=\"419\" \/><\/a><\/div>\n<p>&nbsp;<\/p>\n<p><b>Step 6: State your results<\/b><br \/>\nThe value of t is -546.93 and the decision rule states that the the null hypothesis is accepted if the value of t is less than 2.306 or greater than -2.306.<br \/>\nIn this class t is not greater than 2.306 and therefore, the test has failed.<br \/>\nResult: We reject the null hypothesis, H<sub>0<\/sub><\/p>\n<p><ins style=\"display: block; text-align: center;\" data-ad-client=\"ca-pub-7041870931346451\" data-ad-format=\"fluid\" data-ad-layout=\"in-article\" data-ad-slot=\"8227894917\"><\/ins><br \/>\n<b>Step 7: State your conclusion<\/b><br \/>\nFrom the result, our conclusion would be that the mean income of workers in Akokwa town is not 20,000 dollars<\/p>\n<p>If you follow these steps in your statistics quiz, then you are sure to make the maximum grade for How to Perform t-Test.<\/p>\n<p>Success in your exams and thanks for your efforts!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am going to teach you how to perform one-sample t-Test, step by step using an example Question A research believes that the mean incom &hellip; <\/p>\n","protected":false},"author":1,"featured_media":565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[223],"tags":[],"_links":{"self":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/64"}],"collection":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/comments?post=64"}],"version-history":[{"count":2,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/64\/revisions"}],"predecessor-version":[{"id":567,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/posts\/64\/revisions\/567"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/media\/565"}],"wp:attachment":[{"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/media?parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/categories?post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kindsonthegenius.com\/blog\/wp-json\/wp\/v2\/tags?post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}