<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How are the p-values calculated from the S test statistic in the Wilcoxon signed rank test in JMP? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-are-the-p-values-calculated-from-the-S-test-statistic-in-the/m-p/17088#M15588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #333333; font-family: HelevticaNeue-light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #f3f3f3;"&gt;Hi, I'm trying to make sure I understand how the S test-statistic and corresponding p-values are being calculated in the Wilcoxon Signed Rank test in JMPs Matched Pairs Platform.&amp;nbsp; For example, if I compare two columns of data using the Matched pairs analysis in JMP and selected the Wilcoxon Signed Rank option, I see a Test Statistic S= 15.5 and a Prob&amp;gt;|S|= 0.2832.&amp;nbsp; I'm wondering what distribution of S (or other strategy) is JMP is using to calculate the p-value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: HelevticaNeue-light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #f3f3f3;"&gt;I can see from the basic analysis JMP pdf that W is computed as equal to 1/2 (sum of signed ranks).&amp;nbsp; I'm assuming that W is equivalent to S in this case.&amp;nbsp; Is that correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: HelevticaNeue-light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #f3f3f3;"&gt;And again, I'm not sure how the p-value is calculated here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: HelevticaNeue-light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #f3f3f3;"&gt;I'm confused as to how the JMP output compares to, for example, calculating a test-statistic and determining whether it is a less than a given value (as a function of the sample size) in order to determine whether to reject the null hypothesis that the medians are the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: HelevticaNeue-light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #f3f3f3;"&gt;Thank you in advance for any help! I really appreciate it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2016 03:46:01 GMT</pubDate>
    <dc:creator>sheilar</dc:creator>
    <dc:date>2016-02-19T03:46:01Z</dc:date>
    <item>
      <title>How are the p-values calculated from the S test statistic in the Wilcoxon signed rank test in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/How-are-the-p-values-calculated-from-the-S-test-statistic-in-the/m-p/17088#M15588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #333333; font-family: HelevticaNeue-light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #f3f3f3;"&gt;Hi, I'm trying to make sure I understand how the S test-statistic and corresponding p-values are being calculated in the Wilcoxon Signed Rank test in JMPs Matched Pairs Platform.&amp;nbsp; For example, if I compare two columns of data using the Matched pairs analysis in JMP and selected the Wilcoxon Signed Rank option, I see a Test Statistic S= 15.5 and a Prob&amp;gt;|S|= 0.2832.&amp;nbsp; I'm wondering what distribution of S (or other strategy) is JMP is using to calculate the p-value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: HelevticaNeue-light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #f3f3f3;"&gt;I can see from the basic analysis JMP pdf that W is computed as equal to 1/2 (sum of signed ranks).&amp;nbsp; I'm assuming that W is equivalent to S in this case.&amp;nbsp; Is that correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: HelevticaNeue-light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #f3f3f3;"&gt;And again, I'm not sure how the p-value is calculated here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: HelevticaNeue-light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #f3f3f3;"&gt;I'm confused as to how the JMP output compares to, for example, calculating a test-statistic and determining whether it is a less than a given value (as a function of the sample size) in order to determine whether to reject the null hypothesis that the medians are the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333333; font-family: HelevticaNeue-light, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; background-color: #f3f3f3;"&gt;Thank you in advance for any help! I really appreciate it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 03:46:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-are-the-p-values-calculated-from-the-S-test-statistic-in-the/m-p/17088#M15588</guid>
      <dc:creator>sheilar</dc:creator>
      <dc:date>2016-02-19T03:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: How are the p-values calculated from the S test statistic in the Wilcoxon signed rank test in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/How-are-the-p-values-calculated-from-the-S-test-statistic-in-the/m-p/17089#M15589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: Helvetica, Arial, sans-serif;"&gt;You're correct--W is the same as S. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #000000;"&gt;&lt;SPAN style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; line-height: 1.5em;"&gt;If # of pairs, n, is less or equal to 20, the p-value is c&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; line-height: 1.5em;"&gt;omputed from the exact distribution of W, &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; line-height: 1.5em;"&gt;where the distribution is a convolution of scaled binomial distributions. When n &amp;gt;20, the p-value &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10pt; color: #000000;"&gt;&lt;SPAN style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; line-height: 1.5em;"&gt;is computed using a Student’s t approximation. Check out &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; line-height: 20.16px;"&gt;statistical&lt;/SPAN&gt;&lt;SPAN style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="line-height: 20.16px; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif;"&gt;details by scrolling down to &lt;EM&gt;Wilcoxon Signed-Rank Test Statistic&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 13.44px; line-height: 20.16px; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt; on this page&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #565656; font-family: Helvetica, Arial, sans-serif; font-size: 12px;"&gt;&lt;A href="http://www.jmp.com/support/help/Statistical_Details_for_the_Distribution_Platfor.shtml#1161544" title="http://www.jmp.com/support/help/Statistical_Details_for_the_Distribution_Platfor.shtml#1161544"&gt;Statistical Details for the Distribution Platform&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 19:26:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-are-the-p-values-calculated-from-the-S-test-statistic-in-the/m-p/17089#M15589</guid>
      <dc:creator>jiancao</dc:creator>
      <dc:date>2016-02-19T19:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: How are the p-values calculated from the S test statistic in the Wilcoxon signed rank test in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/How-are-the-p-values-calculated-from-the-S-test-statistic-in-the/m-p/17090#M15590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help &lt;A href="https://community.jmp.com/people/jiancao"&gt;jiancao&lt;/A&gt;!&amp;nbsp; &lt;/P&gt;&lt;P&gt;So, is it correct to say that the mean of the binomial distribution is a function of the number of matched pairs that I am comparing?&amp;nbsp; &lt;/P&gt;&lt;P&gt;And if the null hypothesis is that the difference between the medians of the matched pairs is zero, then I'm confused about the relationship between the test statistic W and the p-value. From the Statistical Details, I would expect that W will be bigger as the differences between the medians become bigger because there are fewer pairs where the difference between the pairs is zero. So I would expect d0 to be small and R+ to be larger.&amp;nbsp; So I would expect that as R+ gets larger and W gets larger (depending on N), that the p-value would become smaller because W is becoming larger (and thus farther from the mean of the binomial distribution?), Is this correct?&amp;nbsp; Also, does the mean of the binomial distribution represent the mean of the probabilities that the medians of the matched pairs are not different? Again-thank you very much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Feb 2016 07:36:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-are-the-p-values-calculated-from-the-S-test-statistic-in-the/m-p/17090#M15590</guid>
      <dc:creator>sheilar</dc:creator>
      <dc:date>2016-02-21T07:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: How are the p-values calculated from the S test statistic in the Wilcoxon signed rank test in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/How-are-the-p-values-calculated-from-the-S-test-statistic-in-the/m-p/17091#M15591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct—the mean of a binomial random variable is n*p.&lt;/P&gt;&lt;P&gt;The W statistic you referred to, as shown in JMP documentation, is &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11046_pastedImage_4.png" style="width: 274px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/2772iA878FE8D5261AD67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11046_pastedImage_4.png" alt="11046_pastedImage_4.png" /&gt;&lt;/span&gt;where R&lt;SUP&gt;+&lt;/SUP&gt; is the sum of the ranks for positive-&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;signed pairs, and d&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;SUB&gt;0&lt;/SUB&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; is the # of tied pairs. The number of pairs, N=N&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;SUP&gt;+&lt;/SUP&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;+N&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;SUP&gt;-&lt;/SUP&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;+d&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;SUB&gt;0&lt;/SUB&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;, where N&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;SUP&gt;+&lt;/SUP&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;, N&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;SUP&gt;-&lt;/SUP&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; are the # of positive- and negative-signed pairs. &lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;SUB&gt; &lt;/SUB&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;W is expected to be zero under the null hypothesis H&lt;SUB&gt;0&lt;/SUB&gt;: median of a single population of paired differences is 0, assuming that the underlying population is symmetric. So, either a larger or a smaller than the expected R&lt;SUP&gt;+&lt;/SUP&gt; leads to a larger abs(W). &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Back to your question, having a larger R&lt;SUP&gt;+&lt;/SUP&gt; doesn’t necessarily mean a smaller d&lt;SUB&gt;0&lt;/SUB&gt;&lt;SUP&gt; &lt;/SUP&gt;since R&lt;SUP&gt;+&lt;/SUP&gt; is the sum of the ranks for positive-signed pairs, and d&lt;SUB&gt;0&lt;/SUB&gt; depends not only on N&lt;SUP&gt;+&lt;/SUP&gt;, but also N&lt;SUP&gt;-&lt;/SUP&gt;.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Mean of a binomial distribution represents the # of times W is expected to be zero under &lt;SPAN style="font-size: 13.3333px;"&gt;H&lt;/SPAN&gt;&lt;SUB&gt;0&lt;/SUB&gt;.&amp;nbsp; &lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 01:58:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-are-the-p-values-calculated-from-the-S-test-statistic-in-the/m-p/17091#M15591</guid>
      <dc:creator>jiancao</dc:creator>
      <dc:date>2016-10-19T01:58:58Z</dc:date>
    </item>
  </channel>
</rss>

