<?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 Re: When I use proc univariate for hypothesis testing the t value and p values do not make sense in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/When-I-use-proc-univariate-for-hypothesis-testing-the-t-value/m-p/433807#M22826</link>
    <description>Thanks for your help!!</description>
    <pubDate>Sat, 03 Feb 2018 16:03:44 GMT</pubDate>
    <dc:creator>jtflynn33</dc:creator>
    <dc:date>2018-02-03T16:03:44Z</dc:date>
    <item>
      <title>When I use proc univariate for hypothesis testing the t value and p values do not make sense</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/When-I-use-proc-univariate-for-hypothesis-testing-the-t-value/m-p/431671#M22705</link>
      <description>&lt;P&gt;The data comes from the data table: marchflights.sas7bdat&amp;nbsp;&amp;nbsp; (airplane flights and the corresponding weights of&amp;nbsp;"freight" - the variable)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Freight (variable)&lt;/P&gt;&lt;P&gt;Mean=333.95, Standard deviation=98.11.&amp;nbsp; Number of observations=635&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/**Hypothesis Testing**/&lt;BR /&gt;proc univariate data=certprep.marchflights mu0 = 333.95;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var freight;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe that the t statistic should be much higher than 0.000283,&lt;/P&gt;&lt;P&gt;and&amp;nbsp;the p value should be very low, looking like&amp;nbsp;0.0040 or something like that, but it is 0.9998&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results are below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tests&amp;nbsp;for&amp;nbsp;Location:&amp;nbsp;Mu0=333.95&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;0.000283&lt;/TD&gt;&lt;TD&gt;0.9998&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;t statistic&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;p value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can the results of the t statistic and the p value actually be correct? I don't think so.&lt;/P&gt;&lt;P&gt;Is there anything I'm missing here? Is there something wrong with the code?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jtflynn33&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 05:12:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/When-I-use-proc-univariate-for-hypothesis-testing-the-t-value/m-p/431671#M22705</guid>
      <dc:creator>jtflynn33</dc:creator>
      <dc:date>2018-01-29T05:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: When I use proc univariate for hypothesis testing the t value and p values do not make sense</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/When-I-use-proc-univariate-for-hypothesis-testing-the-t-value/m-p/431762#M22706</link>
      <description>&lt;P&gt;It looks right.&amp;nbsp; If you want&amp;nbsp;&lt;SPAN&gt;p value be small (significant) , then&amp;nbsp;t statistic must be big enough.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;t statistic measured the deviation of H0 statistical (when H0 is assuming right) .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 12:41:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/When-I-use-proc-univariate-for-hypothesis-testing-the-t-value/m-p/431762#M22706</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-01-29T12:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: When I use proc univariate for hypothesis testing the t value and p values do not make sense</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/When-I-use-proc-univariate-for-hypothesis-testing-the-t-value/m-p/431776#M22707</link>
      <description>&lt;P&gt;t = (xbar - mu) / (s / sqrt(n))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;xbar and mu are both 333.95 (well, xbar probably has a few more decimal places), so t close to zero is correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you have a t close to zero, you have a p value close to 1&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 13:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/When-I-use-proc-univariate-for-hypothesis-testing-the-t-value/m-p/431776#M22707</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-01-29T13:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: When I use proc univariate for hypothesis testing the t value and p values do not make sense</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/When-I-use-proc-univariate-for-hypothesis-testing-the-t-value/m-p/431850#M22714</link>
      <description>&lt;P&gt;I think you're misunderstanding hypothesis testing.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The null hypothesis is that the mean is equal to 333.95. If p&amp;lt;Alpha then you would reject the null hypothesis.&lt;/P&gt;
&lt;P&gt;Since the P-value is 1, this means you&lt;STRONG&gt; fail to reject&lt;/STRONG&gt; the null hypothesis and the mean is not significantly different than 333.95.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually you're looking to reject a null hypothesis, in this case you're looking to confirm your null hypothesis.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/185820"&gt;@jtflynn33&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;The data comes from the data table: marchflights.sas7bdat&amp;nbsp;&amp;nbsp; (airplane flights and the corresponding weights of&amp;nbsp;"freight" - the variable)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Freight (variable)&lt;/P&gt;
&lt;P&gt;Mean=333.95, Standard deviation=98.11.&amp;nbsp; Number of observations=635&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/**Hypothesis Testing**/&lt;BR /&gt;proc univariate data=certprep.marchflights mu0 = 333.95;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var freight;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe that the t statistic should be much higher than 0.000283,&lt;/P&gt;
&lt;P&gt;and&amp;nbsp;the p value should be very low, looking like&amp;nbsp;0.0040 or something like that, but it is 0.9998&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Results are below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tests&amp;nbsp;for&amp;nbsp;Location:&amp;nbsp;Mu0=333.95&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;0.000283&lt;/TD&gt;
&lt;TD&gt;0.9998&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;t statistic&amp;nbsp;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;p value&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can the results of the t statistic and the p value actually be correct? I don't think so.&lt;/P&gt;
&lt;P&gt;Is there anything I'm missing here? Is there something wrong with the code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;jtflynn33&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 16:43:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/When-I-use-proc-univariate-for-hypothesis-testing-the-t-value/m-p/431850#M22714</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-29T16:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: When I use proc univariate for hypothesis testing the t value and p values do not make sense</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/When-I-use-proc-univariate-for-hypothesis-testing-the-t-value/m-p/433806#M22825</link>
      <description>Thanks, your answer really helped me.</description>
      <pubDate>Sat, 03 Feb 2018 16:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/When-I-use-proc-univariate-for-hypothesis-testing-the-t-value/m-p/433806#M22825</guid>
      <dc:creator>jtflynn33</dc:creator>
      <dc:date>2018-02-03T16:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: When I use proc univariate for hypothesis testing the t value and p values do not make sense</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/When-I-use-proc-univariate-for-hypothesis-testing-the-t-value/m-p/433807#M22826</link>
      <description>Thanks for your help!!</description>
      <pubDate>Sat, 03 Feb 2018 16:03:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/When-I-use-proc-univariate-for-hypothesis-testing-the-t-value/m-p/433807#M22826</guid>
      <dc:creator>jtflynn33</dc:creator>
      <dc:date>2018-02-03T16:03:44Z</dc:date>
    </item>
  </channel>
</rss>

