<?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: alpha and z value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/In-SAS-how-can-I-compute-the-z-score-from-the-alpha-value/m-p/254032#M268841</link>
    <description>&lt;P&gt;In what context?&lt;/P&gt;
&lt;P&gt;Also, is it a one sided or two sided test?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check the basic definitions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Z Score: &lt;A href="http://stattrek.com/statistics/dictionary.aspx?definition=z_score" target="_blank"&gt;http://stattrek.com/statistics/dictionary.aspx?definition=z_score&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alpha :&amp;nbsp;&lt;A href="http://stattrek.com/statistics/dictionary.aspx?definition=Alpha" target="_blank"&gt;http://stattrek.com/statistics/dictionary.aspx?definition=Alpha&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Back in the day you'd have the read the Z cut off value from the table:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.math.ucdavis.edu/~soshniko/135a/materials/standardnormaltable.pdf" target="_blank"&gt;https://www.math.ucdavis.edu/~soshniko/135a/materials/standardnormaltable.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if alpha was 0.05 and it was a two sided score, divide alpha in&amp;nbsp;half for 0.025. Look up that value (or 1-0.025=0.0975) in the table and the corresponding Z critical value&amp;nbsp;is 1.96 (or -1.96). You can use this number to compare to the Z score you calculate in your data, if the Z-Score is less than the cutoff you accept your null hypothesis, otherwise you reject your null hypothesis. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the inverse manner, you can calculate your Z-Score, find the area under the curve and that is your p-value, which is compared to your cutoff level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The one vs two sides is important here, if it was a one sided test, you would look up 0.05 in the table which would give you a critical value of ~1.645&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I'm mangling this but hopefully it helps to clear up things.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.statisticshowto.com/what-is-the-critical-value-of-z/" target="_blank"&gt;http://www.statisticshowto.com/what-is-the-critical-value-of-z/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.statisticshowto.com/find-a-critical-value/" target="_blank"&gt;http://www.statisticshowto.com/find-a-critical-value/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is more of a stats than SAS question...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2016 02:08:35 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-03-03T02:08:35Z</dc:date>
    <item>
      <title>In SAS, how can I compute the z-score from the alpha value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-SAS-how-can-I-compute-the-z-score-from-the-alpha-value/m-p/254023#M268840</link>
      <description>&lt;P&gt;how alpha and z value is related ?&lt;/P&gt;
&lt;P&gt;If alpha is 0.05 then what will be the value of z?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 13:29:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-SAS-how-can-I-compute-the-z-score-from-the-alpha-value/m-p/254023#M268840</guid>
      <dc:creator>pawandh</dc:creator>
      <dc:date>2023-11-03T13:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: alpha and z value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-SAS-how-can-I-compute-the-z-score-from-the-alpha-value/m-p/254032#M268841</link>
      <description>&lt;P&gt;In what context?&lt;/P&gt;
&lt;P&gt;Also, is it a one sided or two sided test?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check the basic definitions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Z Score: &lt;A href="http://stattrek.com/statistics/dictionary.aspx?definition=z_score" target="_blank"&gt;http://stattrek.com/statistics/dictionary.aspx?definition=z_score&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alpha :&amp;nbsp;&lt;A href="http://stattrek.com/statistics/dictionary.aspx?definition=Alpha" target="_blank"&gt;http://stattrek.com/statistics/dictionary.aspx?definition=Alpha&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Back in the day you'd have the read the Z cut off value from the table:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.math.ucdavis.edu/~soshniko/135a/materials/standardnormaltable.pdf" target="_blank"&gt;https://www.math.ucdavis.edu/~soshniko/135a/materials/standardnormaltable.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if alpha was 0.05 and it was a two sided score, divide alpha in&amp;nbsp;half for 0.025. Look up that value (or 1-0.025=0.0975) in the table and the corresponding Z critical value&amp;nbsp;is 1.96 (or -1.96). You can use this number to compare to the Z score you calculate in your data, if the Z-Score is less than the cutoff you accept your null hypothesis, otherwise you reject your null hypothesis. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the inverse manner, you can calculate your Z-Score, find the area under the curve and that is your p-value, which is compared to your cutoff level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The one vs two sides is important here, if it was a one sided test, you would look up 0.05 in the table which would give you a critical value of ~1.645&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I'm mangling this but hopefully it helps to clear up things.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.statisticshowto.com/what-is-the-critical-value-of-z/" target="_blank"&gt;http://www.statisticshowto.com/what-is-the-critical-value-of-z/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.statisticshowto.com/find-a-critical-value/" target="_blank"&gt;http://www.statisticshowto.com/find-a-critical-value/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is more of a stats than SAS question...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 02:08:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-SAS-how-can-I-compute-the-z-score-from-the-alpha-value/m-p/254032#M268841</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-03T02:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: alpha and z value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-SAS-how-can-I-compute-the-z-score-from-the-alpha-value/m-p/254235#M268842</link>
      <description>&lt;P&gt;Perhaps you mean "In SAS, how can I compute the z-score from the alpha value?&lt;/P&gt;
&lt;P&gt;The answer is to use the QUANTILE function.&amp;nbsp; Reeza already gave the explanation of a two-sided critical value,&lt;/P&gt;
&lt;P&gt;so here is the SAS code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ZLeft&amp;nbsp;(=-1.96) is the value such that the area under the normal density curve to the left of ZLeft is 0.025.&lt;/P&gt;
&lt;P&gt;ZRightt&amp;nbsp;(= 1.96) is the value such that the area under the normal density curve to the&amp;nbsp;right of ZRight is 0.025.&lt;/P&gt;
&lt;P&gt;The area under the curve between ZLeft and ZRight is 0.95.&lt;/P&gt;
&lt;P&gt;For a probability distribution such as the normal distribution "area under the curve on an interval"&amp;nbsp;is equivalent to "probability that a random variable will take a value in that interval."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data A;
alpha = 0.05;
zLeft  = quantile("Normal", alpha/2); 
zRight = quantile("Normal", 1-alpha/2); 
run;

proc print; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Mar 2016 16:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-SAS-how-can-I-compute-the-z-score-from-the-alpha-value/m-p/254235#M268842</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-03-03T16:12:13Z</dc:date>
    </item>
  </channel>
</rss>

