<?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 What is the mathematic way behind estimation of confidence interval for median (NOT mean) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-mathematic-way-behind-estimation-of-confidence/m-p/795619#M39049</link>
    <description>&lt;P&gt;Hello, guys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My name is Tom Hsiung and I’m a healthcare provider. I love statistics. Sometimes we are interested in the median instead of mean when there are outliers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone guide me where to look for the proof of the method? Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 08:42:20 GMT</pubDate>
    <dc:creator>TomHsiung</dc:creator>
    <dc:date>2022-02-11T08:42:20Z</dc:date>
    <item>
      <title>What is the mathematic way behind estimation of confidence interval for median (NOT mean)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-mathematic-way-behind-estimation-of-confidence/m-p/795619#M39049</link>
      <description>&lt;P&gt;Hello, guys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My name is Tom Hsiung and I’m a healthcare provider. I love statistics. Sometimes we are interested in the median instead of mean when there are outliers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone guide me where to look for the proof of the method? Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 08:42:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-mathematic-way-behind-estimation-of-confidence/m-p/795619#M39049</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2022-02-11T08:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: What is the mathematic way behind estimation of confidence interval for median (NOT mean)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-mathematic-way-behind-estimation-of-confidence/m-p/795625#M39050</link>
      <description>&lt;P&gt;Maxim 4 helps to answer your question, see &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Maxims-of-Maximally-Efficient-SAS-Programmers/ta-p/352068" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Maxims-of-Maximally-Efficient-SAS-Programmers/ta-p/352068&lt;/A&gt; for details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data demo;
   input value;
   datalines;
1
100
3
5
7
2
8
;


proc means data=demo mean median;
   var value;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Feb 2022 11:01:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-mathematic-way-behind-estimation-of-confidence/m-p/795625#M39050</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-02-11T11:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: What is the mathematic way behind estimation of confidence interval for median (NOT mean)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-mathematic-way-behind-estimation-of-confidence/m-p/795630#M39051</link>
      <description>&lt;P&gt;The classical method is to use PROC UNIVARIATE. The mathematical description of how the CIs are estimated is given in the section of the PROC UNIVARIATE documentation &lt;A href="https://go.documentation.sas.com/doc/en/procstat/v_003/procstat_univariate_details14.htm#procstat.univariate.clpctl" target="_self"&gt;"Confidence Limits for Percentiles."&lt;/A&gt;&amp;nbsp;The median is the 50th percentile, so plug in p=0.5 into the mathematical formulas.&amp;nbsp; You will see that there are two methods. One assumes that the data are sampled from a normal distribution. The other does not make that assumption.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc univariate data=sashelp.class CIPCTLDF CIPCTLNORMAL;
   var Height;
   ods select quantiles;  /* display only the table of quantiles (percentiles) */
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The output (shown below) estimates the median height of 19 students to be 62.8 inches. The first 05% CI (which assumes the data are normal) is [59.9, 64.8]. The second interval is wider because it does not assume a distribution of the data. The second CI is [59.0, 66.5]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rick_SAS_0-1644579401176.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68386i58BE6655E2C5A464/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rick_SAS_0-1644579401176.png" alt="Rick_SAS_0-1644579401176.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 11:39:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-mathematic-way-behind-estimation-of-confidence/m-p/795630#M39051</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-02-11T11:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: What is the mathematic way behind estimation of confidence interval for median (NOT mean)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-mathematic-way-behind-estimation-of-confidence/m-p/795635#M39054</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184847"&gt;@TomHsiung&lt;/a&gt;,&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184847"&gt;@TomHsiung&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Can someone guide me where to look for the proof of the method? Thank you.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;For a proof see &lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_intronpar_sect018.htm#statug_intronpargibb_j10" target="_blank" rel="noopener"&gt;Gibbons and Chakraborti (5th ed., 2010)&lt;/A&gt; -- assuming that they haven't removed section &lt;EM&gt;5.2 Confidence Interval for a Population Quantile&lt;/EM&gt; (p. 157 ff.) from the &lt;EM&gt;4&lt;/EM&gt;th edition, which I have in front of me. As the heading suggests, they cover the general &lt;EM&gt;p&lt;/EM&gt;th quantile, not only the median.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 12:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/What-is-the-mathematic-way-behind-estimation-of-confidence/m-p/795635#M39054</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-02-11T12:15:26Z</dc:date>
    </item>
  </channel>
</rss>

