{"id":398,"date":"2020-04-10T09:11:16","date_gmt":"2020-04-10T13:11:16","guid":{"rendered":"http:\/\/pressbooks.library.upei.ca\/montelpare\/?post_type=chapter&#038;p=398"},"modified":"2020-08-24T14:16:45","modified_gmt":"2020-08-24T18:16:45","slug":"computing-the-sign-test","status":"publish","type":"chapter","link":"https:\/\/pressbooks.library.upei.ca\/montelpare\/chapter\/computing-the-sign-test\/","title":{"raw":"Computing the Sign Test","rendered":"Computing the Sign Test"},"content":{"raw":"A good place to begin the application of non-parametric statistical applications is with the sign test. Just as the name implies, the sign test is a non-parametric statistical procedure that evaluates the number of differences between paired comparisons using + and \u2013 signs to represent the direction of the differences between the pairs.\r\n\r\n<hr \/>\r\n\r\n<h4 style=\"text-align: center\">We can think of the sign test as a statistical method that compares pairs of outcomes and uses the (+) sign to describe the agreement and the (-) sign for the disagreement.<\/h4>\r\n\r\n<hr \/>\r\n\r\nConsider that we wish to compare the number of symptoms reported by concussed patients in two different groups.\u00a0 The first group will be comprised of individuals who are asked to sit quietly in their room for seven days following their concussion injury. The second group will be comprised of individuals that are asked to participate in seven days of controlled and monitored exercise beginning 24 hours after the individual is asymptomatic.\r\n\r\nGiven this scenario, the sign test can be used to test the null hypothesis in the two-group comparison, where the null hypothesis is written as:\r\n<p style=\"text-align: center\"><em>The chance for the number of symptoms in group 1 (the sedentary group) to be greater than the number of symptoms in group 2 (the exercise group) is equal to the chance for the number of symptoms in group 1 (the sedentary group) to be less than the number of symptoms in group 2 (the exercise group).<\/em><\/p>\r\n&nbsp;\r\n<div class=\"textbox textbox--key-takeaways\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">The numeric value associated with the aforementioned chance is equal to 0.5 or one half and is written as:<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">The <strong>probability<\/strong> of (the number of symptoms in group 1) <strong>being<\/strong> <strong>greater than<\/strong> the <strong>probability<\/strong> of (the number of symptoms in group 2 )\u00a0<strong> is equal to<\/strong> the <strong>probability<\/strong> of (the number of symptoms in group 1) <strong>being less than<\/strong> the <strong>probability<\/strong> of (the number of symptoms in group 2 )\u00a0 <strong>is equal to one half<\/strong><\/div>\r\n<\/div>\r\n<p class=\"ABodyCopy\">$$p(scoregroup1 &gt; scoregroup2) = p(scoregroup1 &lt; scoregroup2) = \u00bd$$<\/p>\r\nWe can simplify the computations of the sign test by evaluating the outcomes using the binomial equation.\u00a0 The binomial equation is a formula that computes exact probabilities for an outcome with two possible options.\r\n<p style=\"text-align: left\">In this first example, when comparing symptoms between a patient in group 1 and a patient in group 2, the two possible outcomes are either to have more symptoms or less symptoms.<\/p>\r\n<p style=\"text-align: left\">In the <strong>SIGN TEST<\/strong> the outcome options are represented with a (+) or a (-) sign, and as such, the binomial equation can be used to estimate exact probabilities for any pairwise comparison.<code><\/code><\/p>\r\n<p style=\"text-align: center\"><img src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm.png\" alt=\"\" class=\"aligncenter wp-image-468 size-full\" width=\"408\" height=\"87\" \/><\/p>\r\n<p style=\"text-align: left\">NOTE: The following is a quick overview of the elements of the binomial equation used to establish probability.<\/p>\r\n<strong><span style=\"color: #0000ff\">P<sub>x<\/sub> <\/span><\/strong>refers to the probability of exactly <em>x<\/em> events appearing in <em>n<\/em> trials. For example \u2013 the probability of turning up three heads in 5 tosses of a fair coin.\r\n\r\n<strong><span style=\"color: #0000ff\">p<sup>x<\/sup><\/span><\/strong> refers to the expected probability of the event associated with the x term on any given trial (if we are flipping a coin then this value is \u00bd with a fair coin).\r\n\r\n<span style=\"color: #0000ff\"><strong>q<sup>n-x<\/sup><\/strong><\/span> refers to the probability of an event on any given trial <em>q =\u00a0 1- p <\/em>(usually this value is \u00bd if we were flipping a coin).\r\n\r\n<strong><span style=\"color: #0000ff\">n<\/span><\/strong>\u00a0 refers to the number of events.\r\n\r\n<strong><span style=\"color: #0000ff\">x<\/span> <\/strong>refers to the number of a given outcome being evaluated (e.g. how many heads were you expecting in the total number of tosses).\r\n\r\nIn the application of the sign test, the binomial equation can be used to determine if the number of (+) signs occurs more or less often than the number of (-) signs.\r\n<h3><em><strong>Application 1:<\/strong><\/em><\/h3>\r\nConsider that you are responsible to test the efficacy of exercise treatment for concussion recovery at your rehabilitation clinic. You decide for the next 20 patients that arrive following a concussion, alternate assignment of the patient to either the sedentary group or the activity group. \u00a0After 7 days of treatment within their respective groups, you survey the patient to determine if the number of symptoms reported by the group assigned to sedentary therapy is higher (or lower) than the number of symptoms reported by the group assigned to the physical activity intervention.\r\n\r\nThe data are presented in the table below, and the sign test is used to determine if the p(symptom reports in group 1 &gt; symptom reports in group 2) = p(symptom reports in group 1 &lt; symptom reports in group 2) = \u00bd.\r\n\r\nIn the table, the number of symptoms reported by each pair of members from either the sedentary group or the activity group are compared, and the difference is recorded as being either greater than or less than.\r\n\r\nTable of Matched group data example of symptom reporting in exercising versus sedentary patients recovering from concussion.\r\n<div align=\"center\">\r\n<table class=\" aligncenter\" style=\"width: 552px\">\r\n<thead>\r\n<tr class=\"shaded\">\r\n<td style=\"width: 124.933px;text-align: center\">Number of Symptoms (Exercise Group)<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">Number of Symptoms (Sedentary Group)<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">Comparing Exercise to Sedentary patients<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">Sign (+) of difference between symptom reports<\/td>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">16<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">19<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">14<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">18<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">18<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">21<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">10<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">09<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&gt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">-<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">14<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">21<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">16<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">20<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">10<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">08<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&gt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">-<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">12<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">18<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">08<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">18<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">10<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">20<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">16<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">19<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">14<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">18<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">18<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">21<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">10<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">19<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">14<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">21<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">16<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">20<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">10<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">08<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&gt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">-<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">12<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">18<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">08<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">18<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 124.933px;text-align: center\">10<\/td>\r\n<td style=\"width: 126.033px;text-align: center\">20<\/td>\r\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\r\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\nNote: The sign is recorded as (+) when the sedentary group member has more symptoms reported than the matched exercise group member.\r\n\r\nThese data can be compared using the binomial formula, shown here for a sample of n=20 pairs of patients. In this equation x refers to the number of patients from the sedentary group reporting more symptoms than the patients in the exercise group (x = 17), and the expected probability, based on the null hypothesis where we expected that the number of pairs of patients reporting more or fewer symptoms would be equal is p=0.5.\r\n\r\nIn the sign test, the test statistic is the number of (+) signs.\r\n\r\n<img src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm2.png\" alt=\"\" class=\"aligncenter wp-image-476 size-full\" width=\"883\" height=\"422\" \/>\r\n\r\nBy convention, we typically accept the null hypothesis when the resulting <span style=\"color: #0000ff\"><strong>P<sub>x<\/sub><\/strong><\/span> is greater than 0.05. In this example where we compared the number of patients from the sedentary group reporting more symptoms than the patients in the exercise group, the probability is 0.001 suggesting that the null hypothesis is false and therefore can be rejected.\r\n\r\nIn SAS, we can evaluate the null hypothesis for this example using the following program. The problem with the application of the PROC UNIVARIATE procedure here is that the sample size is too small to meet the assumptions of normality and therefore computing the significance of the difference requires that we consider an alternative to the parametric tests. Hence the comparison is an excellent opportunity to consider a non-parametric test like the SIGN-TEST.\r\n<div class=\"textbox textbox--examples\"><header class=\"textbox__header\">\r\n<p class=\"textbox__title\">SAS program to compute the SIGN TEST using PROC UNIVARIATE<\/p>\r\n\r\n<\/header>\r\n<div class=\"textbox__content\">\r\n\r\nDATA SIGN;\r\nINPUT @1 PAIRNUM EXGRP SEDGRP SIGNPOS;\r\nPAIRDIFF=(SEDGRP-EXGRP);\r\nLABEL EXGRP = \"NUMBER OF SYMPTOMS REPORTED BY EXERCISE PATIENT\"\r\nSEDGRP = \"NUMBER OF SYMPTOMS REPORTED BY SEDENTARY PATIENT\"\r\nPAIRDIFF = \"DIFFERENCE BETWEEN\"\r\nSIGNPOS = \u201cSIGN IS POSITIVE\u201d;\r\nDATALINES;\r\n01 16 19 1\r\n02 14 18 1\r\n03 18 21 1\r\n04 10 09 0\r\n05 14 21 1\r\n06 16 20 1\r\n07 10 08 0\r\n08 12 18 1\r\n09 08 18 1\r\n10 10 20 1\r\n11 16 19 1\r\n12 14 18 1\r\n13 18 21 1\r\n14 10 19 1\r\n15 14 21 1\r\n16 16 20 1\r\n17 10 08 0\r\n18 12 18 1\r\n19 08 18 1\r\n20 10 20 1\r\n;\r\nPROC UNIVARIATE FREQ; VAR PAIRDIFF;\r\nTITLE \"COMPUTING THE SIGN TEST FOR PAIRDIFF\";\r\nRUN;\r\n\r\n<\/div>\r\n<\/div>\r\nThe output table is shown below. The value produced for the sign test shown here is an estimate for a two-tailed test and therefore, the p-value should be divided by 2. Notice that the SAS table produced a p-value of <strong>0.0026<\/strong> for the two-tailed test which we convert to p=0.001 for a one-tailed test.\r\n\r\nTests\u00a0for\u00a0Location:\u00a0Mu0=0\r\n<div align=\"center\">\r\n<table style=\"height: 131px\">\r\n<thead>\r\n<tr class=\"shaded\" style=\"height: 25px\">\r\n<td style=\"width: 175.433px;height: 25px;text-align: center\">Test<\/td>\r\n<td style=\"width: 122.55px;height: 25px;text-align: center\" colspan=\"2\">Statistic<\/td>\r\n<td style=\"width: 120.283px;height: 25px;text-align: center\" colspan=\"2\">\r\n<p style=\"text-align: center\">p Value<\/p>\r\n<\/td>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr style=\"height: 30px\">\r\n<td style=\"width: 175.433px;height: 30px;text-align: center\">Student's t<\/td>\r\n<td style=\"width: 54px;height: 30px;text-align: center\">t<\/td>\r\n<td style=\"width: 54.6167px;height: 30px;text-align: center\">5.710367<\/td>\r\n<td style=\"width: 60px;height: 30px;text-align: center\">Pr &gt; |t|<\/td>\r\n<td style=\"width: 46.35px;height: 30px;text-align: center\">&lt;.0001<\/td>\r\n<\/tr>\r\n<tr style=\"height: 46px\">\r\n<td style=\"width: 175.433px;height: 46px;text-align: center\"><strong>Sign<\/strong><\/td>\r\n<td style=\"width: 54px;height: 46px;text-align: center\"><strong>M<\/strong><\/td>\r\n<td style=\"width: 54.6167px;height: 46px;text-align: center\"><strong>7<\/strong><\/td>\r\n<td style=\"width: 60px;height: 46px;text-align: center\"><strong>Pr &gt;= |M|<\/strong><\/td>\r\n<td style=\"width: 46.35px;height: 46px;text-align: center\"><strong>0.0026<\/strong><\/td>\r\n<\/tr>\r\n<tr style=\"height: 30px\">\r\n<td style=\"width: 175.433px;height: 30px;text-align: center\">Signed Rank<\/td>\r\n<td style=\"width: 54px;height: 30px;text-align: center\">S<\/td>\r\n<td style=\"width: 54.6167px;height: 30px;text-align: center\">99<\/td>\r\n<td style=\"width: 60px;height: 30px;text-align: center\">Pr &gt;= |S|<\/td>\r\n<td style=\"width: 46.35px;height: 30px;text-align: center\">&lt;.0001<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\nThe information that is relevant from the SAS output produced above is the SIGN Test result Pr &gt;=|M| (0.0026\/2)=0.001. This result indicates that there is a significant difference in the responses of the two groups as determined by the SIGN test.\r\n<h3><em><strong>Application 2:<\/strong><\/em><\/h3>\r\nConsider that you have two samples of 10 individuals in each sample. You identify a group of 10 smokers and a matched group of 10 non-smokers -- and you are interested in determining if the outcome on the dependent measure (resting heart rate) is the same in both groups.\u00a0 You begin by matching the participants in your groups on the variables: age, sex, socio-economic status, education, and smoking status where you separate the groups according to: never smoked versus smoke at least 3 cigarettes per day. Then you measure the resting heart rate for individuals after asking them to sit quietly for 5 minutes (without smoking!!).\r\n\r\nTable of matched group data example of smokers versus non-smokers with the outcome heart rate (bpm)\r\n<div align=\"center\">\r\n<table>\r\n<thead>\r\n<tr class=\"shaded\">\r\n<td style=\"text-align: center\">Non-smoker heart rate (bpm)<\/td>\r\n<td style=\"text-align: center\">Smoker heart rate (bpm)<\/td>\r\n<td style=\"text-align: center\">Compare Non-Smoker\u00a0 to Smoker<\/td>\r\n<td style=\"text-align: center\">Sign (+) when NShr &lt; Shr<\/td>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr>\r\n<td style=\"text-align: center\"><strong>76<\/strong><\/td>\r\n<td style=\"text-align: center\"><strong>99<\/strong><\/td>\r\n<td style=\"text-align: center\"><span style=\"background-color: #ffff00\"><strong>&lt;<\/strong><\/span><\/td>\r\n<td style=\"text-align: center\"><strong>+<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: center\"><strong>54<\/strong><\/td>\r\n<td style=\"text-align: center\"><strong>78<\/strong><\/td>\r\n<td style=\"text-align: center\"><span style=\"background-color: #ffff00\"><strong>&lt;<\/strong><\/span><\/td>\r\n<td style=\"text-align: center\"><strong>+<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: center\"><strong>68<\/strong><\/td>\r\n<td style=\"text-align: center\"><strong>68<\/strong><\/td>\r\n<td style=\"text-align: center\"><strong>tied<\/strong><\/td>\r\n<td style=\"text-align: center\"><strong>tied<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: center\"><strong>60<\/strong><\/td>\r\n<td style=\"text-align: center\"><strong>54<\/strong><\/td>\r\n<td style=\"text-align: center\"><strong>&gt;<\/strong><\/td>\r\n<td style=\"text-align: center\"><strong>-<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: center\"><strong>54<\/strong><\/td>\r\n<td style=\"text-align: center\"><strong>82<\/strong><\/td>\r\n<td style=\"text-align: center\"><span style=\"background-color: #ffff00\"><strong>&lt;<\/strong><\/span><\/td>\r\n<td style=\"text-align: center\"><strong>+<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: center\"><strong>86<\/strong><\/td>\r\n<td style=\"text-align: center\"><strong>92<\/strong><\/td>\r\n<td style=\"text-align: center\"><span style=\"background-color: #ffff00\"><strong>&lt;<\/strong><\/span><\/td>\r\n<td style=\"text-align: center\"><strong>+<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: center\"><strong>90<\/strong><\/td>\r\n<td style=\"text-align: center\"><strong>80<\/strong><\/td>\r\n<td style=\"text-align: center\"><strong>&gt;<\/strong><\/td>\r\n<td style=\"text-align: center\"><strong>-<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: center\"><strong>62<\/strong><\/td>\r\n<td style=\"text-align: center\"><strong>78<\/strong><\/td>\r\n<td style=\"text-align: center\"><span style=\"background-color: #ffff00\"><strong>&lt;<\/strong><\/span><\/td>\r\n<td style=\"text-align: center\"><strong>+<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: center\"><strong>58<\/strong><\/td>\r\n<td style=\"text-align: center\"><strong>88<\/strong><\/td>\r\n<td style=\"text-align: center\"><span style=\"background-color: #ffff00\"><strong>&lt;<\/strong><\/span><\/td>\r\n<td style=\"text-align: center\"><strong>+<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: center\"><strong>60<\/strong><\/td>\r\n<td style=\"text-align: center\"><strong>90<\/strong><\/td>\r\n<td style=\"text-align: center\"><span style=\"background-color: #ffff00\"><strong>&lt;<\/strong><\/span><\/td>\r\n<td style=\"text-align: center\"><strong>+<\/strong><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/div>\r\nNotice in the table above there are 7 occurrences where the heart rate measures for non-smokers showed fewer beats per minute than the smokers. Notice also that there was one occurrence in which the heart rate for the smoker was the same as the heart rate for the non-smoker. In the SIGN test, the number of <strong>ties is not included<\/strong> in the binomial computation.\r\n\r\n<hr \/>\r\n\r\n<h2>Applying the binomial formula for computations in the Sign-Test<\/h2>\r\nIn our sample data to compare heart rates in smokers versus non-smokers for n=10, x=7, p=0.5 and q=0.5 we begin by applying the binomial formula. <img src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm.png\" alt=\"\" class=\"aligncenter wp-image-468 size-full\" width=\"408\" height=\"87\" \/>\r\n\r\nTo test the difference in heart rates we counted the number of times that non-smokers\u2019 heart rates were lower than smokers\u2019 heart rates.\u00a0 Our count was 7 out of 10, and the probability of observing 7 out 10 in any random selection of smokers and non-smokers, matched on age, sex, socio-economic status, education, and smoking group where the groups were separated according to: <strong>never smoked <\/strong>versus <strong>smoke at least 3 cigarettes per day<\/strong> was found to be <strong><em>Px<\/em> = 0.12. <\/strong>The arithmetic is shown below:<strong>\r\n<\/strong>\r\n\r\n<img src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm3.png\" alt=\"\" class=\"aligncenter wp-image-491 size-full\" width=\"970\" height=\"548\" \/>\r\n\r\nRecall that when evaluating the null hypothesis:\u00a0 H0: Group1 = Group2 we can use the standard normal distribution. We generally accept the null hypothesis when the probability associated with the difference between our estimates is less than 0.05.\r\n\r\nTherefore, we conclude from these data that the two groups are equal for their resting heart rates.\r\n\r\nHowever if the number of times we observed a non-smoker\u2019s heart rate to be less than a smoker\u2019s resting heart rate was <strong>8 times<\/strong> ( or 8 out of the 10 participants) then the value of <strong><em>Px<\/em> <\/strong>would have been <strong><em>Px<\/em> =0.043<\/strong> and by convention we would have said that there was a difference in resting heart rates in this sample of smokers and non-smokers.","rendered":"<p>A good place to begin the application of non-parametric statistical applications is with the sign test. Just as the name implies, the sign test is a non-parametric statistical procedure that evaluates the number of differences between paired comparisons using + and \u2013 signs to represent the direction of the differences between the pairs.<\/p>\n<hr \/>\n<h4 style=\"text-align: center\">We can think of the sign test as a statistical method that compares pairs of outcomes and uses the (+) sign to describe the agreement and the (-) sign for the disagreement.<\/h4>\n<hr \/>\n<p>Consider that we wish to compare the number of symptoms reported by concussed patients in two different groups.\u00a0 The first group will be comprised of individuals who are asked to sit quietly in their room for seven days following their concussion injury. The second group will be comprised of individuals that are asked to participate in seven days of controlled and monitored exercise beginning 24 hours after the individual is asymptomatic.<\/p>\n<p>Given this scenario, the sign test can be used to test the null hypothesis in the two-group comparison, where the null hypothesis is written as:<\/p>\n<p style=\"text-align: center\"><em>The chance for the number of symptoms in group 1 (the sedentary group) to be greater than the number of symptoms in group 2 (the exercise group) is equal to the chance for the number of symptoms in group 1 (the sedentary group) to be less than the number of symptoms in group 2 (the exercise group).<\/em><\/p>\n<p>&nbsp;<\/p>\n<div class=\"textbox textbox--key-takeaways\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">The numeric value associated with the aforementioned chance is equal to 0.5 or one half and is written as:<\/p>\n<\/header>\n<div class=\"textbox__content\">The <strong>probability<\/strong> of (the number of symptoms in group 1) <strong>being<\/strong> <strong>greater than<\/strong> the <strong>probability<\/strong> of (the number of symptoms in group 2 )\u00a0<strong> is equal to<\/strong> the <strong>probability<\/strong> of (the number of symptoms in group 1) <strong>being less than<\/strong> the <strong>probability<\/strong> of (the number of symptoms in group 2 )\u00a0 <strong>is equal to one half<\/strong><\/div>\n<\/div>\n<p class=\"ABodyCopy\">$$p(scoregroup1 &gt; scoregroup2) = p(scoregroup1 &lt; scoregroup2) = \u00bd$$<\/p>\n<p>We can simplify the computations of the sign test by evaluating the outcomes using the binomial equation.\u00a0 The binomial equation is a formula that computes exact probabilities for an outcome with two possible options.<\/p>\n<p style=\"text-align: left\">In this first example, when comparing symptoms between a patient in group 1 and a patient in group 2, the two possible outcomes are either to have more symptoms or less symptoms.<\/p>\n<p style=\"text-align: left\">In the <strong>SIGN TEST<\/strong> the outcome options are represented with a (+) or a (-) sign, and as such, the binomial equation can be used to estimate exact probabilities for any pairwise comparison.<code><\/code><\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm.png\" alt=\"\" class=\"aligncenter wp-image-468 size-full\" width=\"408\" height=\"87\" srcset=\"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm.png 408w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm-300x64.png 300w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm-65x14.png 65w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm-225x48.png 225w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm-350x75.png 350w\" sizes=\"auto, (max-width: 408px) 100vw, 408px\" \/><\/p>\n<p style=\"text-align: left\">NOTE: The following is a quick overview of the elements of the binomial equation used to establish probability.<\/p>\n<p><strong><span style=\"color: #0000ff\">P<sub>x<\/sub> <\/span><\/strong>refers to the probability of exactly <em>x<\/em> events appearing in <em>n<\/em> trials. For example \u2013 the probability of turning up three heads in 5 tosses of a fair coin.<\/p>\n<p><strong><span style=\"color: #0000ff\">p<sup>x<\/sup><\/span><\/strong> refers to the expected probability of the event associated with the x term on any given trial (if we are flipping a coin then this value is \u00bd with a fair coin).<\/p>\n<p><span style=\"color: #0000ff\"><strong>q<sup>n-x<\/sup><\/strong><\/span> refers to the probability of an event on any given trial <em>q =\u00a0 1- p <\/em>(usually this value is \u00bd if we were flipping a coin).<\/p>\n<p><strong><span style=\"color: #0000ff\">n<\/span><\/strong>\u00a0 refers to the number of events.<\/p>\n<p><strong><span style=\"color: #0000ff\">x<\/span> <\/strong>refers to the number of a given outcome being evaluated (e.g. how many heads were you expecting in the total number of tosses).<\/p>\n<p>In the application of the sign test, the binomial equation can be used to determine if the number of (+) signs occurs more or less often than the number of (-) signs.<\/p>\n<h3><em><strong>Application 1:<\/strong><\/em><\/h3>\n<p>Consider that you are responsible to test the efficacy of exercise treatment for concussion recovery at your rehabilitation clinic. You decide for the next 20 patients that arrive following a concussion, alternate assignment of the patient to either the sedentary group or the activity group. \u00a0After 7 days of treatment within their respective groups, you survey the patient to determine if the number of symptoms reported by the group assigned to sedentary therapy is higher (or lower) than the number of symptoms reported by the group assigned to the physical activity intervention.<\/p>\n<p>The data are presented in the table below, and the sign test is used to determine if the p(symptom reports in group 1 &gt; symptom reports in group 2) = p(symptom reports in group 1 &lt; symptom reports in group 2) = \u00bd.<\/p>\n<p>In the table, the number of symptoms reported by each pair of members from either the sedentary group or the activity group are compared, and the difference is recorded as being either greater than or less than.<\/p>\n<p>Table of Matched group data example of symptom reporting in exercising versus sedentary patients recovering from concussion.<\/p>\n<div style=\"margin: auto;\">\n<table class=\"aligncenter\" style=\"width: 552px\">\n<thead>\n<tr class=\"shaded\">\n<td style=\"width: 124.933px;text-align: center\">Number of Symptoms (Exercise Group)<\/td>\n<td style=\"width: 126.033px;text-align: center\">Number of Symptoms (Sedentary Group)<\/td>\n<td style=\"width: 128.05px;text-align: center\">Comparing Exercise to Sedentary patients<\/td>\n<td style=\"width: 116.283px;text-align: center\">Sign (+) of difference between symptom reports<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">16<\/td>\n<td style=\"width: 126.033px;text-align: center\">19<\/td>\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">14<\/td>\n<td style=\"width: 126.033px;text-align: center\">18<\/td>\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">18<\/td>\n<td style=\"width: 126.033px;text-align: center\">21<\/td>\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">10<\/td>\n<td style=\"width: 126.033px;text-align: center\">09<\/td>\n<td style=\"width: 128.05px;text-align: center\">&gt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">&#8211;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">14<\/td>\n<td style=\"width: 126.033px;text-align: center\">21<\/td>\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">16<\/td>\n<td style=\"width: 126.033px;text-align: center\">20<\/td>\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">10<\/td>\n<td style=\"width: 126.033px;text-align: center\">08<\/td>\n<td style=\"width: 128.05px;text-align: center\">&gt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">&#8211;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">12<\/td>\n<td style=\"width: 126.033px;text-align: center\">18<\/td>\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">08<\/td>\n<td style=\"width: 126.033px;text-align: center\">18<\/td>\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">10<\/td>\n<td style=\"width: 126.033px;text-align: center\">20<\/td>\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">16<\/td>\n<td style=\"width: 126.033px;text-align: center\">19<\/td>\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">14<\/td>\n<td style=\"width: 126.033px;text-align: center\">18<\/td>\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">18<\/td>\n<td style=\"width: 126.033px;text-align: center\">21<\/td>\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">10<\/td>\n<td style=\"width: 126.033px;text-align: center\">19<\/td>\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">14<\/td>\n<td style=\"width: 126.033px;text-align: center\">21<\/td>\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">16<\/td>\n<td style=\"width: 126.033px;text-align: center\">20<\/td>\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">10<\/td>\n<td style=\"width: 126.033px;text-align: center\">08<\/td>\n<td style=\"width: 128.05px;text-align: center\">&gt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">&#8211;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">12<\/td>\n<td style=\"width: 126.033px;text-align: center\">18<\/td>\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">08<\/td>\n<td style=\"width: 126.033px;text-align: center\">18<\/td>\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 124.933px;text-align: center\">10<\/td>\n<td style=\"width: 126.033px;text-align: center\">20<\/td>\n<td style=\"width: 128.05px;text-align: center\">&lt;<\/td>\n<td style=\"width: 116.283px;text-align: center\">+<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Note: The sign is recorded as (+) when the sedentary group member has more symptoms reported than the matched exercise group member.<\/p>\n<p>These data can be compared using the binomial formula, shown here for a sample of n=20 pairs of patients. In this equation x refers to the number of patients from the sedentary group reporting more symptoms than the patients in the exercise group (x = 17), and the expected probability, based on the null hypothesis where we expected that the number of pairs of patients reporting more or fewer symptoms would be equal is p=0.5.<\/p>\n<p>In the sign test, the test statistic is the number of (+) signs.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm2.png\" alt=\"\" class=\"aligncenter wp-image-476 size-full\" width=\"883\" height=\"422\" srcset=\"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm2.png 883w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm2-300x143.png 300w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm2-768x367.png 768w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm2-65x31.png 65w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm2-225x108.png 225w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm2-350x167.png 350w\" sizes=\"auto, (max-width: 883px) 100vw, 883px\" \/><\/p>\n<p>By convention, we typically accept the null hypothesis when the resulting <span style=\"color: #0000ff\"><strong>P<sub>x<\/sub><\/strong><\/span> is greater than 0.05. In this example where we compared the number of patients from the sedentary group reporting more symptoms than the patients in the exercise group, the probability is 0.001 suggesting that the null hypothesis is false and therefore can be rejected.<\/p>\n<p>In SAS, we can evaluate the null hypothesis for this example using the following program. The problem with the application of the PROC UNIVARIATE procedure here is that the sample size is too small to meet the assumptions of normality and therefore computing the significance of the difference requires that we consider an alternative to the parametric tests. Hence the comparison is an excellent opportunity to consider a non-parametric test like the SIGN-TEST.<\/p>\n<div class=\"textbox textbox--examples\">\n<header class=\"textbox__header\">\n<p class=\"textbox__title\">SAS program to compute the SIGN TEST using PROC UNIVARIATE<\/p>\n<\/header>\n<div class=\"textbox__content\">\n<p>DATA SIGN;<br \/>\nINPUT @1 PAIRNUM EXGRP SEDGRP SIGNPOS;<br \/>\nPAIRDIFF=(SEDGRP-EXGRP);<br \/>\nLABEL EXGRP = &#8220;NUMBER OF SYMPTOMS REPORTED BY EXERCISE PATIENT&#8221;<br \/>\nSEDGRP = &#8220;NUMBER OF SYMPTOMS REPORTED BY SEDENTARY PATIENT&#8221;<br \/>\nPAIRDIFF = &#8220;DIFFERENCE BETWEEN&#8221;<br \/>\nSIGNPOS = \u201cSIGN IS POSITIVE\u201d;<br \/>\nDATALINES;<br \/>\n01 16 19 1<br \/>\n02 14 18 1<br \/>\n03 18 21 1<br \/>\n04 10 09 0<br \/>\n05 14 21 1<br \/>\n06 16 20 1<br \/>\n07 10 08 0<br \/>\n08 12 18 1<br \/>\n09 08 18 1<br \/>\n10 10 20 1<br \/>\n11 16 19 1<br \/>\n12 14 18 1<br \/>\n13 18 21 1<br \/>\n14 10 19 1<br \/>\n15 14 21 1<br \/>\n16 16 20 1<br \/>\n17 10 08 0<br \/>\n18 12 18 1<br \/>\n19 08 18 1<br \/>\n20 10 20 1<br \/>\n;<br \/>\nPROC UNIVARIATE FREQ; VAR PAIRDIFF;<br \/>\nTITLE &#8220;COMPUTING THE SIGN TEST FOR PAIRDIFF&#8221;;<br \/>\nRUN;<\/p>\n<\/div>\n<\/div>\n<p>The output table is shown below. The value produced for the sign test shown here is an estimate for a two-tailed test and therefore, the p-value should be divided by 2. Notice that the SAS table produced a p-value of <strong>0.0026<\/strong> for the two-tailed test which we convert to p=0.001 for a one-tailed test.<\/p>\n<p>Tests\u00a0for\u00a0Location:\u00a0Mu0=0<\/p>\n<div style=\"margin: auto;\">\n<table style=\"height: 131px\">\n<thead>\n<tr class=\"shaded\" style=\"height: 25px\">\n<td style=\"width: 175.433px;height: 25px;text-align: center\">Test<\/td>\n<td style=\"width: 122.55px;height: 25px;text-align: center\" colspan=\"2\">Statistic<\/td>\n<td style=\"width: 120.283px;height: 25px;text-align: center\" colspan=\"2\">\n<p style=\"text-align: center\">p Value<\/p>\n<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 30px\">\n<td style=\"width: 175.433px;height: 30px;text-align: center\">Student&#8217;s t<\/td>\n<td style=\"width: 54px;height: 30px;text-align: center\">t<\/td>\n<td style=\"width: 54.6167px;height: 30px;text-align: center\">5.710367<\/td>\n<td style=\"width: 60px;height: 30px;text-align: center\">Pr &gt; |t|<\/td>\n<td style=\"width: 46.35px;height: 30px;text-align: center\">&lt;.0001<\/td>\n<\/tr>\n<tr style=\"height: 46px\">\n<td style=\"width: 175.433px;height: 46px;text-align: center\"><strong>Sign<\/strong><\/td>\n<td style=\"width: 54px;height: 46px;text-align: center\"><strong>M<\/strong><\/td>\n<td style=\"width: 54.6167px;height: 46px;text-align: center\"><strong>7<\/strong><\/td>\n<td style=\"width: 60px;height: 46px;text-align: center\"><strong>Pr &gt;= |M|<\/strong><\/td>\n<td style=\"width: 46.35px;height: 46px;text-align: center\"><strong>0.0026<\/strong><\/td>\n<\/tr>\n<tr style=\"height: 30px\">\n<td style=\"width: 175.433px;height: 30px;text-align: center\">Signed Rank<\/td>\n<td style=\"width: 54px;height: 30px;text-align: center\">S<\/td>\n<td style=\"width: 54.6167px;height: 30px;text-align: center\">99<\/td>\n<td style=\"width: 60px;height: 30px;text-align: center\">Pr &gt;= |S|<\/td>\n<td style=\"width: 46.35px;height: 30px;text-align: center\">&lt;.0001<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>The information that is relevant from the SAS output produced above is the SIGN Test result Pr &gt;=|M| (0.0026\/2)=0.001. This result indicates that there is a significant difference in the responses of the two groups as determined by the SIGN test.<\/p>\n<h3><em><strong>Application 2:<\/strong><\/em><\/h3>\n<p>Consider that you have two samples of 10 individuals in each sample. You identify a group of 10 smokers and a matched group of 10 non-smokers &#8212; and you are interested in determining if the outcome on the dependent measure (resting heart rate) is the same in both groups.\u00a0 You begin by matching the participants in your groups on the variables: age, sex, socio-economic status, education, and smoking status where you separate the groups according to: never smoked versus smoke at least 3 cigarettes per day. Then you measure the resting heart rate for individuals after asking them to sit quietly for 5 minutes (without smoking!!).<\/p>\n<p>Table of matched group data example of smokers versus non-smokers with the outcome heart rate (bpm)<\/p>\n<div style=\"margin: auto;\">\n<table>\n<thead>\n<tr class=\"shaded\">\n<td style=\"text-align: center\">Non-smoker heart rate (bpm)<\/td>\n<td style=\"text-align: center\">Smoker heart rate (bpm)<\/td>\n<td style=\"text-align: center\">Compare Non-Smoker\u00a0 to Smoker<\/td>\n<td style=\"text-align: center\">Sign (+) when NShr &lt; Shr<\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"text-align: center\"><strong>76<\/strong><\/td>\n<td style=\"text-align: center\"><strong>99<\/strong><\/td>\n<td style=\"text-align: center\"><span style=\"background-color: #ffff00\"><strong>&lt;<\/strong><\/span><\/td>\n<td style=\"text-align: center\"><strong>+<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><strong>54<\/strong><\/td>\n<td style=\"text-align: center\"><strong>78<\/strong><\/td>\n<td style=\"text-align: center\"><span style=\"background-color: #ffff00\"><strong>&lt;<\/strong><\/span><\/td>\n<td style=\"text-align: center\"><strong>+<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><strong>68<\/strong><\/td>\n<td style=\"text-align: center\"><strong>68<\/strong><\/td>\n<td style=\"text-align: center\"><strong>tied<\/strong><\/td>\n<td style=\"text-align: center\"><strong>tied<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><strong>60<\/strong><\/td>\n<td style=\"text-align: center\"><strong>54<\/strong><\/td>\n<td style=\"text-align: center\"><strong>&gt;<\/strong><\/td>\n<td style=\"text-align: center\"><strong>&#8211;<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><strong>54<\/strong><\/td>\n<td style=\"text-align: center\"><strong>82<\/strong><\/td>\n<td style=\"text-align: center\"><span style=\"background-color: #ffff00\"><strong>&lt;<\/strong><\/span><\/td>\n<td style=\"text-align: center\"><strong>+<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><strong>86<\/strong><\/td>\n<td style=\"text-align: center\"><strong>92<\/strong><\/td>\n<td style=\"text-align: center\"><span style=\"background-color: #ffff00\"><strong>&lt;<\/strong><\/span><\/td>\n<td style=\"text-align: center\"><strong>+<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><strong>90<\/strong><\/td>\n<td style=\"text-align: center\"><strong>80<\/strong><\/td>\n<td style=\"text-align: center\"><strong>&gt;<\/strong><\/td>\n<td style=\"text-align: center\"><strong>&#8211;<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><strong>62<\/strong><\/td>\n<td style=\"text-align: center\"><strong>78<\/strong><\/td>\n<td style=\"text-align: center\"><span style=\"background-color: #ffff00\"><strong>&lt;<\/strong><\/span><\/td>\n<td style=\"text-align: center\"><strong>+<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><strong>58<\/strong><\/td>\n<td style=\"text-align: center\"><strong>88<\/strong><\/td>\n<td style=\"text-align: center\"><span style=\"background-color: #ffff00\"><strong>&lt;<\/strong><\/span><\/td>\n<td style=\"text-align: center\"><strong>+<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"text-align: center\"><strong>60<\/strong><\/td>\n<td style=\"text-align: center\"><strong>90<\/strong><\/td>\n<td style=\"text-align: center\"><span style=\"background-color: #ffff00\"><strong>&lt;<\/strong><\/span><\/td>\n<td style=\"text-align: center\"><strong>+<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Notice in the table above there are 7 occurrences where the heart rate measures for non-smokers showed fewer beats per minute than the smokers. Notice also that there was one occurrence in which the heart rate for the smoker was the same as the heart rate for the non-smoker. In the SIGN test, the number of <strong>ties is not included<\/strong> in the binomial computation.<\/p>\n<hr \/>\n<h2>Applying the binomial formula for computations in the Sign-Test<\/h2>\n<p>In our sample data to compare heart rates in smokers versus non-smokers for n=10, x=7, p=0.5 and q=0.5 we begin by applying the binomial formula. <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm.png\" alt=\"\" class=\"aligncenter wp-image-468 size-full\" width=\"408\" height=\"87\" srcset=\"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm.png 408w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm-300x64.png 300w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm-65x14.png 65w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm-225x48.png 225w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm-350x75.png 350w\" sizes=\"auto, (max-width: 408px) 100vw, 408px\" \/><\/p>\n<p>To test the difference in heart rates we counted the number of times that non-smokers\u2019 heart rates were lower than smokers\u2019 heart rates.\u00a0 Our count was 7 out of 10, and the probability of observing 7 out 10 in any random selection of smokers and non-smokers, matched on age, sex, socio-economic status, education, and smoking group where the groups were separated according to: <strong>never smoked <\/strong>versus <strong>smoke at least 3 cigarettes per day<\/strong> was found to be <strong><em>Px<\/em> = 0.12. <\/strong>The arithmetic is shown below:<strong><br \/>\n<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm3.png\" alt=\"\" class=\"aligncenter wp-image-491 size-full\" width=\"970\" height=\"548\" srcset=\"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm3.png 970w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm3-300x169.png 300w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm3-768x434.png 768w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm3-65x37.png 65w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm3-225x127.png 225w, https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-content\/uploads\/sites\/49\/2020\/04\/signfrm3-350x198.png 350w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><\/p>\n<p>Recall that when evaluating the null hypothesis:\u00a0 H0: Group1 = Group2 we can use the standard normal distribution. We generally accept the null hypothesis when the probability associated with the difference between our estimates is less than 0.05.<\/p>\n<p>Therefore, we conclude from these data that the two groups are equal for their resting heart rates.<\/p>\n<p>However if the number of times we observed a non-smoker\u2019s heart rate to be less than a smoker\u2019s resting heart rate was <strong>8 times<\/strong> ( or 8 out of the 10 participants) then the value of <strong><em>Px<\/em> <\/strong>would have been <strong><em>Px<\/em> =0.043<\/strong> and by convention we would have said that there was a difference in resting heart rates in this sample of smokers and non-smokers.<\/p>\n","protected":false},"author":56,"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-398","chapter","type-chapter","status-publish","hentry"],"part":38,"_links":{"self":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapters\/398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/wp\/v2\/users\/56"}],"version-history":[{"count":84,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapters\/398\/revisions"}],"predecessor-version":[{"id":1823,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapters\/398\/revisions\/1823"}],"part":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/parts\/38"}],"metadata":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapters\/398\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/wp\/v2\/media?parent=398"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/pressbooks\/v2\/chapter-type?post=398"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/wp\/v2\/contributor?post=398"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.library.upei.ca\/montelpare\/wp-json\/wp\/v2\/license?post=398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}