ピタゴラスの定理としての総分散の法則


15

XとYは有限の2次モーメントがあると仮定します。第2の有限モーメントがランダム変数のヒルベルト空間では(の内積をT1,T2によって定義されたE(T1T2)、||T||2=E(T2))、我々は解釈するE(Y|X)の投影としてYの機能の空間にX。

全分散の法則は、

Var(Y)=E(Var(Y|X))+Var(E(Y|X))

上記の幾何学的な観点からこの法則を解釈する方法はありますか?法律は、辺持つ直角三角形のピタゴラスの定理と同じであると言われましたY,E(Y|X),Y−E(Y|X)。三角形が直角である理由を理解していますが、ピタゴラスの定理が全分散の法則をどのように捉えているかはわかりません。

回答:


7

およびY − E [ Y ∣ X ]が無相関のランダム変数であることを意味するものとして、直角三角形に関することに慣れていると思います。非相関ランダム変数のA及びB、 VAR (A + B )= VAR (A )+ VAR (B )、 我々が設定され、そうであればA = Y - Eを[E[Y∣バツ]Y−E[Y∣バツ]AB

(1)var⁡(A+B)=var⁡(A)+var⁡(B)、
および B = E [ Y ∣ X ]なので、 A + B = Yの場合、 var (Y )= var (Y − E [ Y ∣ X ] )+ var (E [ Y ∣ X ] )。 それはそれを示すために残って VARを(Y - E [ Y | XA=Y−E[Y∣バツ]B=E[Y∣バツ]A+B=Y
(2)var⁡(Y)=var⁡(Y−E[Y∣バツ])+var⁡(E[Y∣バツ])。
同じである E [ VAR (Y | X )]私たちができることを再状態(2 )のような VAR (Y )= E [ VAR (Y | X )] + VAR (E [ Y | X ] ) これは合計分散式です。var⁡(Y−E[Y∣バツ])E[var⁡(Y∣バツ)](2)
(3)var⁡(Y)=E[var⁡(Y∣バツ)]+var⁡(E[Y∣バツ])

確率変数の期待値がE [ Y ]である、つまりE [ E [ Y ∣ X ] ] = E [ Y ]であることはよく知られています。したがって、 E [ A ] = E [ Y − E [ Y ∣ X ] ] = E [ Y ] − E [ E [E[Y∣バツ]E[Y]E[E[Y∣バツ]]=E[Y] あることが、そこから var (A )= E [ A 2 ]

E[A]=E[Y−E[Y∣バツ]]=E[Y]−E[E[Y∣バツ]]=0、
var⁡(A)=E[A2]、つまり レッツCが示す確率変数(Y - E [ Y
(4)var⁡(Y−E[Y∣バツ])=E[(Y−E[Y∣バツ])2]。
Cので、私たちが書くことができるということ VAR (Y - E [ Y | X ] )= E [ C ] 。 しかし、 E [ C ] = E [ E [ C ∣ X ] ]ここで、 E [ C ∣ X ] = E [(Y − E [ Y ∣ X ] )(Y−E[Y∣バツ])2
(5)var⁡(Y−E[Y∣バツ])=E[C]。
E[C]=E[E[C∣バツ]]E[C∣バツ]=E[(Y−E[Y∣バツ])2|バツ]。バツ=バツYE[Y∣バツ=バツ]
E[(Y−E[Y∣X=x])2|X=x]=var⁡(Y∣X=x).
E[C∣X=x]=var⁡(Y∣X=x) E[C∣X]var⁡(Y∣X)
(6)E[C]=E[E[C∣X]]=E[var⁡(Y∣X)],
(5)
var⁡(Y−E[Y∣X])=E[var⁡(Y∣X)].
This makes the right side of (2) exactly what we need and so we have proved the total variance formula (3).

Y−E(Y|X) is a variable with zero mean. Hence var(Y−E(Y|X))=E[Y−E(Y|X)]2. Now Evar(Y|X)=E[E((Y−E(Y|X))2|X)]=E[Y−E(Y|X)]2. A bit less complicated second part of the answer.
— mpiktas

1
@mpiktas Thanks. I am aware of the shorter way of getting to the desired result but always have difficulty explaining it in a way that beginning students can follow easily. Incidentally, in that last equation you wrote, the quantity on the right has a misplaced exponent: it is the quantity inside the square brackets that should be squared; that is, it should be E[(Y−E[Y|X])2]. Too late to correct it, though, unless a moderator obliges.
— Dilip Sarwate

1
Dilip、多くの確率論者は、@ mpiktasの式を書かれたとおりに正しく解釈するでしょう。多くの場合、余分な括弧は削除されます。おそらく私の目は私を欺いていますが、彼の記法は一貫していると思います。ただし、必要に応じて、問題の修正を支援させていただきます。:-)
— 枢機

@cardinal I didn't misinterpret mpiktas's writing, and fully understood what he was saying. While I am also used to interpreting EX or EX as the expected value of X, I always have my doubts about EX2, especially since PEMDAS says nothing about it. Does the expectation have priority over the exponentiation or not? I guess I am just used to the expectation operator to apply to everything inside the square brackets. Please don't edit m[iktas's comment, but if you want to delete everything in this thread from "Incidentally" onwards in my previous comment, please go ahead.
— Dilip Sarwate

I'm sorry, @Dilip. My intention was not to suggest you didn't understand; I knew you had! I also agree that the notation can lend itself to ambiguities and it's good to point them out when they arise! What I meant was that I thought the second equation in the comment (i.e., var…) made clear the convention that was used henceforth. :-)
— cardinal

2

Statement:

The Pythagorean theorem says, for any elements T1 and T2 of an inner-product space with finite norms such that ⟨T1,T2⟩=0,

(1)||T1+T2||2=||T1||2+||T2||2.
Or in other words, for orthogonal vectors, the squared length of the sum is the sum of the squared lengths.

Our Case:

In our case T1=E(Y|X) and T2=Y−E[Y|X] are random variables, the squared norm is ||Ti||2=E[Ti2] and the inner product ⟨T1,T2⟩=E[T1T2]. Translating (1) into statistical language gives us:

(2)E[Y2]=E[{E(Y|X)}2]+E[(Y−E[Y|X])2],
because E[T1T2]=Cov⁡(T1,T2)=0. We can make this look more like your stated Law of Total Variance if we change (2) by...
  1. Subtract (E[Y])2 from both sides, making the left hand side Var⁡[Y],

  2. Noting on the right hand side that E[{E(Y|X)}2]−(E[Y])2=Var⁡(E[Y|X]),

  3. Noting that E[(Y−E[Y|X])2]=E[E{(Y−E[Y|X])2}|X]=E[Var⁡(Y|X)].

For details about these three bullet points see @DilipSarwate's post. He explains this all in much more detail than I do.

弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.