শূন্যের সমান কোভেরিয়েন্স বাইনারি র্যান্ডম ভেরিয়েবলের জন্য স্বাধীনতার বোঝায়?


14

যদি এক্সX এবং ওয়াইY দুটি র্যান্ডম ভেরিয়েবল যা কেবলমাত্র দুটি সম্ভাব্য রাজ্য নিতে পারে তবে আমি কীভাবে দেখাব যে সি ভি ( এক্স , ওয়াই ) = 0Cov(X,Y)=0 স্বতন্ত্রতা বোঝায়? সি ভি ( এক্স , ওয়াই ) = 0Cov(X,Y)=0 স্বতন্ত্রতা বোঝায় না এমন দিনে আমি যা শিখলাম তার বিপরীতে এই ধরণের ঘটনা ঘটে ...

ইঙ্গিতটি বলেছিল যে সম্ভাব্য রাজ্য হিসাবে 11 এবং 0 দিয়ে শুরু হবে 0এবং সেখান থেকে সাধারণীকরণ হবে। এবং আমি এটি করতে পারি এবং E ( X Y ) = E ( X ) E ( Y ) প্রদর্শন করতে পারি E(XY)=E(X)E(Y), তবে এটি স্বাধীনতা বোঝায় না ???

এই গণিতটি কীভাবে করবেন তা অনুমানের মতো


আপনার প্রশ্নের শিরোনামের হিসাবে এটি সাধারণভাবে সত্য নয় ..
মাইকেল আর। চেরনিক

5
আপনি যে বক্তব্য প্রমানের চেষ্টা করছেন তা সত্যই সত্য। যদি এক্সX এবং ওয়াইY যথাক্রমে বার্নোল্লি এলোমেলো ভেরিয়েবলগুলি w 1 প্যারামিটার pp1 এবং p 2p2 হয় তবে E [ X ] = p 1E[X]=p1 এবং E [ Y ] = p 2E[Y]=p2 । সুতরাং, কোভ ( এক্স , ওয়াই ) = [ এক্স ওয়াই ] - [ এক্স ] [ ওয়াই ]cov(X,Y)=E[XY]E[X]E[Y] সমান 00শুধুমাত্র যদি [ এক্স ওয়াই ] = পি { এক্স = 1 , ওয়াই = 1 }E[XY]=P{X=1,Y=1} সমান পি 1 P 2 = পি { এক্স = 1 } পি { ওয়াই = 1 }p1p2=P{X=1}P{Y=1} দেখাচ্ছে যে { এক্স = 1 }{X=1} এবং { ওয়াই = 1 }{Y=1} হয় স্বাধীন ঘটনা । এটা একটা মান ফল যে যদি একজনA এবং বিBস্বতন্ত্র ইভেন্টগুলির এক জোড়া, তারপরে , বি সিA,Bc , এবং সি , বিAc,B , এবং সি , বি সিAc,Bc স্বতন্ত্র ইভেন্ট, অর্থাৎ এক্সX এবং ওয়াইY স্বতন্ত্র র্যান্ডম ভেরিয়েবল। এখন সাধারণীকরণ করুন।
দিলীপ সরোতে

উত্তর:


23

বাইনারি ভেরিয়েবলের জন্য তাদের প্রত্যাশিত মানটি তাদের সমান হওয়ার সম্ভাবনা সমান। অতএব,

( এক্স ওয়াই ) = পি ( এক্স ওয়াই = 1 ) = পি ( এক্স = 1 ওয়াই = 1 )( এক্স ) = পি ( এক্স = 1 )E ( Y ) = P ( Y = 1 )

E(XY)=P(XY=1)=P(X=1Y=1)E(X)=P(X=1)E(Y)=P(Y=1)

যদি দু'জনের শূন্য থাকে তবে এর অর্থ E ( X Y ) = E ( X ) E ( Y )E(XY)=E(X)E(Y) , যার অর্থ

P(X=1Y=1)=P(X=1)P(Y=1)

P(X=1Y=1)=P(X=1)P(Y=1)

It is trivial to see all other joint probabilities multiply as well, using the basic rules about independent events (i.e. if AA and BB are independent then their complements are independent, etc.), which means the joint mass function factorizes, which is the definition of two random variables being independent.


2
Concise and elegant. Classy! +1 =D
Marcelo Ventura

9

Both correlation and covariance measure linear association between two given variables and it has no obligation to detect any other form of association else.

So those two variables might be associated in several other non-linear ways and covariance (and, therefore, correlation) could not distinguish from independent case.

As a very didactic, artificial and non realistic example, one can consider XX such that P(X=x)=1/3P(X=x)=1/3 for x=1,0,1x=1,0,1 and also consider Y=X2Y=X2. Notice that they are not only associated, but one is a function of the other. Nonetheless, their covariance is 0, for their association is orthogonal to the association that covariance can detect.

EDIT

Indeed, as indicated by @whuber, the above original answer was actually a comment on how the assertion is not universally true if both variables were not necessarily dichotomous. My bad!

So let's math up. (The local equivalent of Barney Stinson's "Suit up!")

Particular Case

If both XX and YY were dichotomous, then you can assume, without loss of generality, that both assume only the values 00 and 11 with arbitrary probabilities pp, qq and rr given by P(X=1)=p[0,1]P(Y=1)=q[0,1]P(X=1,Y=1)=r[0,1],

P(X=1)=p[0,1]P(Y=1)=q[0,1]P(X=1,Y=1)=r[0,1],
which characterize completely the joint distribution of XX and YY. Taking on @DilipSarwate's hint, notice that those three values are enough to determine the joint distribution of (X,Y)(X,Y), since P(X=0,Y=1)=P(Y=1)P(X=1,Y=1)=qrP(X=1,Y=0)=P(X=1)P(X=1,Y=1)=prP(X=0,Y=0)=1P(X=0,Y=1)P(X=1,Y=0)P(X=1,Y=1)=1(qr)(pr)r=1pqr.
P(X=0,Y=1)P(X=1,Y=0)P(X=0,Y=0)=P(Y=1)P(X=1,Y=1)=qr=P(X=1)P(X=1,Y=1)=pr=1P(X=0,Y=1)P(X=1,Y=0)P(X=1,Y=1)=1(qr)(pr)r=1pqr.
(On a side note, of course rr is bound to respect both pr[0,1]pr[0,1], qr[0,1]qr[0,1] and 1pqr[0,1]1pqr[0,1] beyond r[0,1]r[0,1], which is to say r[0,min(p,q,1pq)]r[0,min(p,q,1pq)].)

Notice that r=P(X=1,Y=1)r=P(X=1,Y=1) might be equal to the product pq=P(X=1)P(Y=1)pq=P(X=1)P(Y=1), which would render XX and YY independent, since P(X=0,Y=0)=1pqpq=(1p)(1q)=P(X=0)P(Y=0)P(X=1,Y=0)=ppq=p(1q)=P(X=1)P(Y=0)P(X=0,Y=1)=qpq=(1p)q=P(X=0)P(Y=1).

P(X=0,Y=0)P(X=1,Y=0)P(X=0,Y=1)=1pqpq=(1p)(1q)=P(X=0)P(Y=0)=ppq=p(1q)=P(X=1)P(Y=0)=qpq=(1p)q=P(X=0)P(Y=1).

Yes, rr might be equal to pqpq, BUT it can be different, as long as it respects the boundaries above.

Well, from the above joint distribution, we would have E(X)=0P(X=0)+1P(X=1)=P(X=1)=pE(Y)=0P(Y=0)+1P(Y=1)=P(Y=1)=qE(XY)=0P(XY=0)+1P(XY=1)=P(XY=1)=P(X=1,Y=1)=rCov(X,Y)=E(XY)E(X)E(Y)=rpq

E(X)E(Y)E(XY)Cov(X,Y)=0P(X=0)+1P(X=1)=P(X=1)=p=0P(Y=0)+1P(Y=1)=P(Y=1)=q=0P(XY=0)+1P(XY=1)=P(XY=1)=P(X=1,Y=1)=r=E(XY)E(X)E(Y)=rpq

Now, notice then that XX and YY are independent if and only if Cov(X,Y)=0Cov(X,Y)=0. Indeed, if XX and YY are independent, then P(X=1,Y=1)=P(X=1)P(Y=1)P(X=1,Y=1)=P(X=1)P(Y=1), which is to say r=pqr=pq. Therefore, Cov(X,Y)=rpq=0Cov(X,Y)=rpq=0; and, on the other hand, if Cov(X,Y)=0Cov(X,Y)=0, then rpq=0rpq=0, which is to say r=pqr=pq. Therefore, XX and YY are independent.

General Case

About the without loss of generality clause above, if XX and YY were distributed otherwise, let's say, for a<ba<b and c<dc<d, P(X=b)=pP(Y=d)=qP(X=b,Y=d)=r

P(X=b)=pP(Y=d)=qP(X=b,Y=d)=r
then XX and YY given by X=XabaandY=Ycdc
X=XabaandY=Ycdc
would be distributed just as characterized above, since X=aX=0,X=bX=1,Y=cY=0andY=dY=1.
X=aX=0,X=bX=1,Y=cY=0andY=dY=1.
So XX and YY are independent if and only if XX and YY are independent.

Also, we would have E(X)=E(Xaba)=E(X)abaE(Y)=E(Ycdc)=E(Y)cdcE(XY)=E(XabaYcdc)=E[(Xa)(Yc)](ba)(dc)=E(XYXcaY+ac)(ba)(dc)=E(XY)cE(X)aE(Y)+ac(ba)(dc)Cov(X,Y)=E(XY)E(X)E(Y)=E(XY)cE(X)aE(Y)+ac(ba)(dc)E(X)abaE(Y)cdc=[E(XY)cE(X)aE(Y)+ac][E(X)a][E(Y)c](ba)(dc)=[E(XY)cE(X)aE(Y)+ac][E(X)E(Y)cE(X)aE(Y)+ac](ba)(dc)=E(XY)E(X)E(Y)(ba)(dc)=1(ba)(dc)Cov(X,Y).

E(X)E(Y)E(XY)Cov(X,Y)=E(Xaba)=E(X)aba=E(Ycdc)=E(Y)cdc=E(XabaYcdc)=E[(Xa)(Yc)](ba)(dc)=E(XYXcaY+ac)(ba)(dc)=E(XY)cE(X)aE(Y)+ac(ba)(dc)=E(XY)E(X)E(Y)=E(XY)cE(X)aE(Y)+ac(ba)(dc)E(X)abaE(Y)cdc=[E(XY)cE(X)aE(Y)+ac][E(X)a][E(Y)c](ba)(dc)=[E(XY)cE(X)aE(Y)+ac][E(X)E(Y)cE(X)aE(Y)+ac](ba)(dc)=E(XY)E(X)E(Y)(ba)(dc)=1(ba)(dc)Cov(X,Y).
So Cov(X,Y)=0Cov(X,Y)=0 if and only Cov(X,Y)=0Cov(X,Y)=0.

=D


1
I recycled that answer from this post.
Marcelo Ventura

Verbatim cut and paste from your other post. Love it. +1
gammer

2
The problem with copy-and-paste is that your answer no longer seems to address the question: it is merely a comment on the question. It would be better, then, to post a comment with a link to your other answer.
whuber

2
How is thus an answer to the question asked?
Dilip Sarwate

1
Your edits still don't answer the question, at least not at the level the question is asked. You write "Notice that r r  not necessarily equal to the product pq. That exceptional situation corresponds to the case of independence between X and Y." which is a perfectly true statement but only for the cognoscenti because for the hoi polloi, independence requires not just that P(X=1,Y=1)=P(X=1)P(Y=1)
but also P(X=u,Y=v)=P(X=u)P(Y=v), u.v{0,1}.
Yes, (1)(2) as the cognoscenti know; for lesser mortals, a proof that (1)(2) is helpful.
Dilip Sarwate

3

IN GENERAL:

The criterion for independence is F(x,y)=FX(x)FY(y). Or fX,Y(x,y)=fX(x)fY(y)

"If two variables are independent, their covariance is 0. But, having a covariance of 0 does not imply the variables are independent."

This is nicely explained by Macro here, and in the Wikipedia entry for independence.

independencezero cov, yet

zero covindependence.

Great example: XN(0,1), and Y=X2. Covariance is zero (and E(XY)=0, which is the criterion for orthogonality), yet they are dependent. Credit goes to this post.


IN PARTICULAR (OP problem):

These are Bernoulli rv's, X and Y with probability of success Pr(X=1), and Pr(Y=1).

cov(X,Y)=E[XY]E[X]E[Y]=Pr(X=1Y=1)Pr(X=1)Pr(Y=1)Pr(X=1,Y=1)=Pr(X=1)Pr(Y=1).

This is equivalent to the condition for independence in Eq. (1).


():

E[XY]=domain X, YPr(X=xY=y)xy=0 iff x×y0Pr(X=1Y=1).

(): by LOTUS.


As pointed out below, the argument is incomplete without what Dilip Sarwate had pointed out in his comments shortly after the OP appeared. After searching around, I found this proof of the missing part here:

If events A and B are independent, then events Ac and B are independent, and events Ac and Bc are also independent.

Proof By definition,

A and B are independent P(AB)=P(A)P(B).

But B=(AB)+(AcB), so P(B)=P(AB)+P(AcB), which yields:

P(AcB)=P(B)P(AB)=P(B)P(A)P(B)=P(B)[1P(A)]=P(B)P(Ac).

Repeat the argument for the events Ac and Bc, this time starting from the statement that Ac and B are independent and taking the complement of B.

Similarly. A and Bc are independent events.

So, we have shown already that Pr(X=1,Y=1)=Pr(X=1)Pr(Y=1)

and the above shows that this implies that Pr(X=i,Y=j)=Pr(X=i)Pr(Y=j),  i,j{0,1}
that is, the joint pmf factors into the product of marginal pmfs everywhere, not just at (1,1). Hence, uncorrelated Bernoulli random variables X and Y are also independent random variables.

2
Actually that's not an equivalent condition to Eq (1). All you showed was that fX,Y(1,1)=fX(1)fY(1)
gammer

Please consider replacing that image with your own equations, preferably ones that don't use overbars to denote complements. The overbars in the image are very hard to see.
Dilip Sarwate

@DilipSarwate No problem. Is it better, now?
Antoni Parellada

1
Thanks. Also, note that strictly speaking, you also need to show that A and Bc are independent events since the factorization of the joint pdf into the product of the marginal pmts must hold at all four points. Perhaps adding the sentence "Similarly. A and Bc are independent events" right after the proof that Ac and B are independent events will work.
Dilip Sarwate

@DilipSarwate Thank you very much for your help getting it right. The proof as it was before all the editing seemed self-explanatory, because of all the inherent symmetry, but it clearly couldn't be taken for granted. I am very appreciative of your assistance.
Antoni Parellada
আমাদের সাইট ব্যবহার করে, আপনি স্বীকার করেছেন যে আপনি আমাদের কুকি নীতি এবং গোপনীয়তা নীতিটি পড়েছেন এবং বুঝতে পেরেছেন ।
Licensed under cc by-sa 3.0 with attribution required.