<?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: Are the sample dependent in a matched pair of logistic regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Are-the-sample-dependent-in-a-matched-pair-of-logistic/m-p/969920#M48759</link>
    <description>Hello, Dave&lt;BR /&gt;&lt;BR /&gt;Thank you for your feedback. Say, we have event A=1 and B=0. According to the matching condition, we have A + B = 1.&lt;BR /&gt;&lt;BR /&gt;The condition probability of P( A = 1 &amp;amp; B = 0 | A + B = 1) is calculated as P (A = 1 &amp;amp; B = 0) / [P(A = 1 &amp;amp; B = 0) + P (A = 0 &amp;amp; B = 1)]&lt;BR /&gt;Please notice the last step, they have:&lt;BR /&gt;&lt;BR /&gt;P (A = 1 &amp;amp; B = 0) = P(A=1)*P(B=0)&lt;BR /&gt;P (A = 0 &amp;amp; B = 1) = P(A=0)*P(B=1)&lt;BR /&gt;&lt;BR /&gt;I think the last two formula means A = 1 and B = 0 as well as A = 0 and B = 1 are independent, respectively.&lt;BR /&gt;&lt;BR /&gt;That's why I'm confused about the independence between event A and B.&lt;BR /&gt;</description>
    <pubDate>Sat, 28 Jun 2025 11:38:55 GMT</pubDate>
    <dc:creator>TomHsiung</dc:creator>
    <dc:date>2025-06-28T11:38:55Z</dc:date>
    <item>
      <title>Are the sample dependent in a matched pair of logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Are-the-sample-dependent-in-a-matched-pair-of-logistic/m-p/969507#M48736</link>
      <description>&lt;P&gt;This is from Wikipedia. The joint probability of the match pair when Yi1 =1 and Yi2 = 0. Note the denominator, where the P(Yi1 =1 &amp;amp; Yi2 =0), and P(Yi1 =0 &amp;amp; Yi2 =1) are the product of their own probability, respectively. Therefore, my question is, are Yi1 and Yi2 independent or dependent? Looking forward to your opinion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The joint probability of a pair:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-06-22 at 12.28.41 PM.png" style="width: 707px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107953i6F1C0F02CC38BB9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-06-22 at 12.28.41 PM.png" alt="Screenshot 2025-06-22 at 12.28.41 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jun 2025 04:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Are-the-sample-dependent-in-a-matched-pair-of-logistic/m-p/969507#M48736</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2025-06-22T04:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Are the sample dependent in a matched pair of logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Are-the-sample-dependent-in-a-matched-pair-of-logistic/m-p/969510#M48737</link>
      <description>&lt;P&gt;If observations are matched then they are not independent. Study data can consist of matched sets of any size, not just pairs, with any number of events observed within each set if the response is binary. There are various analytical methods that can be used for binary response data of this type including conditional logistic regression which is available with the STRATA statement in PROC LOGISTIC. Other possibilities include the Generalized Estimating Equations and Alternating Logistic Regressions using the REPEATED statement in PROC GEE or PROC GENMOD and random effect models using the RANDOM statement in PROC GLIMMIX. A non-model-based approach using stratification is available with the CMH option in PROC FREQ when a multi-way table is specified. See the examples in the documentation for each of these procedures.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jun 2025 14:55:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Are-the-sample-dependent-in-a-matched-pair-of-logistic/m-p/969510#M48737</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2025-06-22T14:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Are the sample dependent in a matched pair of logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Are-the-sample-dependent-in-a-matched-pair-of-logistic/m-p/969920#M48759</link>
      <description>Hello, Dave&lt;BR /&gt;&lt;BR /&gt;Thank you for your feedback. Say, we have event A=1 and B=0. According to the matching condition, we have A + B = 1.&lt;BR /&gt;&lt;BR /&gt;The condition probability of P( A = 1 &amp;amp; B = 0 | A + B = 1) is calculated as P (A = 1 &amp;amp; B = 0) / [P(A = 1 &amp;amp; B = 0) + P (A = 0 &amp;amp; B = 1)]&lt;BR /&gt;Please notice the last step, they have:&lt;BR /&gt;&lt;BR /&gt;P (A = 1 &amp;amp; B = 0) = P(A=1)*P(B=0)&lt;BR /&gt;P (A = 0 &amp;amp; B = 1) = P(A=0)*P(B=1)&lt;BR /&gt;&lt;BR /&gt;I think the last two formula means A = 1 and B = 0 as well as A = 0 and B = 1 are independent, respectively.&lt;BR /&gt;&lt;BR /&gt;That's why I'm confused about the independence between event A and B.&lt;BR /&gt;</description>
      <pubDate>Sat, 28 Jun 2025 11:38:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Are-the-sample-dependent-in-a-matched-pair-of-logistic/m-p/969920#M48759</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2025-06-28T11:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Are the sample dependent in a matched pair of logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Are-the-sample-dependent-in-a-matched-pair-of-logistic/m-p/970434#M48762</link>
      <description>&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;I think the last two formula means A = 1 and B = 0 as well as A = 0 and B = 1 are independent, respectively.&lt;BR /&gt;&lt;BR /&gt;That's why I'm confused about the independence between event A and B.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see your point.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My understanding is that the random variables describing the individual responses are &lt;EM&gt;independent&lt;/EM&gt;, hence the products of probabilities in the &lt;A href="https://en.wikipedia.org/wiki/Conditional_logistic_regression" target="_blank" rel="noopener"&gt;Wikipedia article&lt;/A&gt; you have mentioned. Yet, as a rule, matched pairs are correlated in the following sense: If X, Y denote the responses of a &lt;EM&gt;randomly selected&lt;/EM&gt; matched pair, these random variables X and Y are usually dependent because they tend to have similar response probabilities due to the matching.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a small example with only two matched pairs: (X&lt;SUB&gt;11&lt;/SUB&gt;, X&lt;SUB&gt;12&lt;/SUB&gt;) and (X&lt;SUB&gt;21&lt;/SUB&gt;, X&lt;SUB&gt;22&lt;/SUB&gt;), each representing, say, (&lt;EM&gt;case&lt;/EM&gt;, &lt;EM&gt;control&lt;/EM&gt;).&lt;/P&gt;
&lt;P&gt;Assume independent Bernoulli distributions X&lt;SUB&gt;11&lt;/SUB&gt;~B(1, 0.94),&amp;nbsp;X&lt;SUB&gt;12&lt;/SUB&gt;~B(1, 0.91), X&lt;SUB&gt;21&lt;/SUB&gt;~B(1, 0.22),&amp;nbsp;X&lt;SUB&gt;22&lt;/SUB&gt;~B(1, 0.29).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Define X:=X&lt;SUB&gt;U1&lt;/SUB&gt;, Y:=X&lt;SUB&gt;U2&lt;/SUB&gt; with a random variable U,&amp;nbsp;independent of the X&lt;SUB&gt;ij&lt;/SUB&gt;, describing the selection of a pair: P(U=1)=P(U=2)=0.5.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then we obtain the joint distribution of (X, Y) from calculations like P(X=1, Y=1) = P(U=1)P(X&lt;SUB&gt;11&lt;/SUB&gt;=1)P(X&lt;SUB&gt;12&lt;/SUB&gt;=1)+P(U=2)P(X&lt;SUB&gt;21&lt;/SUB&gt;=1)P(X&lt;SUB&gt;22&lt;/SUB&gt;=1)=0.4596:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG&gt;P&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;X=0&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;X=1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG&gt;Y=0&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;0.2796&lt;/TD&gt;
&lt;TD&gt;0.1204&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;0.4&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG&gt;Y=1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;0.1404&lt;/TD&gt;
&lt;TD&gt;0.4596&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;0.6&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;0.42&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;0.58&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now we see that X and Y are correlated, hence dependent:&lt;BR /&gt;Their correlation coefficient is &lt;FONT face="courier new,courier"&gt;&lt;FONT face="symbol"&gt;r&lt;/FONT&gt;&lt;SUB&gt;X,Y&lt;/SUB&gt;=(0.4596-0.58*0.6)/sqrt(0.58*0.42*0.6*0.4)=0.46155&lt;/FONT&gt;...&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 14:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Are-the-sample-dependent-in-a-matched-pair-of-logistic/m-p/970434#M48762</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2025-07-09T14:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Are the sample dependent in a matched pair of logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Are-the-sample-dependent-in-a-matched-pair-of-logistic/m-p/971218#M48793</link>
      <description>Hi, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you for your response. Hmmm, my bachelor degree is not statistics.&lt;BR /&gt;&lt;BR /&gt;We have:&lt;BR /&gt;P (A = 1 &amp;amp; B = 0) = P(A=1)*P(B=0)&lt;BR /&gt;P (A = 0 &amp;amp; B = 1) = P(A=0)*P(B=1)&lt;BR /&gt;&lt;BR /&gt;Actually, can we say:&lt;BR /&gt;P (A = 1 &amp;amp; B = 1) = P(A=1)*P(B=1)&lt;BR /&gt;P (A = 1 &amp;amp; B = 1) = P(A=1)*P(B=1)&lt;BR /&gt;for the observations?&lt;BR /&gt; &lt;BR /&gt;If so, I think for each observation, they are independent for the response event.</description>
      <pubDate>Mon, 21 Jul 2025 13:47:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Are-the-sample-dependent-in-a-matched-pair-of-logistic/m-p/971218#M48793</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2025-07-21T13:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Are the sample dependent in a matched pair of logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Are-the-sample-dependent-in-a-matched-pair-of-logistic/m-p/971221#M48794</link>
      <description>&lt;P&gt;Yes, this implication is always true for two binary random variables A and B on some probability space. Even &lt;EM&gt;either&lt;/EM&gt; of the two equations&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;P (A = 1 &amp;amp; B = 0) = P(A=1)*P(B=0)&lt;BR /&gt;P (A = 0 &amp;amp; B = 1) = P(A=0)*P(B=1)&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;alone implies the other and the remaining two combinations&lt;/P&gt;
&lt;BLOCKQUOTE&gt;P (A = 1 &amp;amp; B = 1) = P(A=1)*P(B=1)&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;and&amp;nbsp;P(A=0 &amp;amp; B=0) = P(A=0)*P(B=0),&lt;/P&gt;
&lt;P&gt;all of which mean that A and B are independent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, assuming&amp;nbsp;P(A=1 &amp;amp; B=0) = P(A=1)*P(B=0), we obtain&lt;/P&gt;
&lt;P&gt;P(A=1 &amp;amp; B=1) = P(A=1) - P(A=1 &amp;amp; B=0) = P(A=1) - P(A=1)*P(B=0) = P(A=1)*(1-P(B=0)) = P(A=1)*P(B=1).&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 14:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Are-the-sample-dependent-in-a-matched-pair-of-logistic/m-p/971221#M48794</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2025-07-21T14:16:15Z</dc:date>
    </item>
  </channel>
</rss>

