क्यों का पता लगाने


13

मॉडल , हम सामान्य समीकरण का उपयोग करके का अनुमान लगा सकते हैंy=Xβ+ϵβ

β^=(X′X)−1X′y,
और हम
y^=Xβ^.

अवशिष्ट के सदिश द्वारा अनुमान लगाया जाता है

ϵ^=y−Xβ^=(I−X(X′X)−1X′)y=Qy=Q(Xβ+ϵ)=Qϵ,

जहाँ

Q=I−X(X′X)−1X′.

मेरा प्रश्न यह है कि का निष्कर्ष कैसे निकाला जाए

tr(Q)=n−p.

जवाबों:


12

निष्कर्ष केवल वेक्टर रिक्त स्थान के आयामों को गिनाता है। हालांकि, यह आम तौर पर सच नहीं है।

मैट्रिक्स गुणन के सबसे मूल गुण यह दर्शाते हैं कि मैट्रिक्स द्वारा दर्शाए गए रेखीय परिवर्तन संतुष्ट करते हैंH=X(X′X)−X′

H2=(X(X′X)−X′)2=X(X′X)−(X′X)(X′X)−X′=H,

इसे एक प्रक्षेपण संचालक के रूप में प्रदर्शित करना । इसलिए इसका पूरक है

Q=1−H

(जैसा कि प्रश्न में दिया गया है) एक प्रक्षेपण ऑपरेटर भी है। का ट्रेस इसकी रैंक (नीचे देखें) है, जहां के ट्रेस को बराबर किया जाता है ।HhQn−h

इसके बहुत सूत्र से यह स्पष्ट होता है कि दो रेखीय परिवर्तनों की संरचना से जुड़ा मैट्रिक्स है और स्वयं। पहला ( ) -vector को -vector में रूपांतरित करता है । दूसरा ( ) से एक परिवर्तन है करने के लिए द्वारा दिए गए । इसकी रैंक उन दो आयामों से अधिक नहीं हो सकती है, जो कम से कम वर्गों में सेटिंग हमेशा (लेकिन से कम हो सकती हैH

J=(X′X)−X′
XJnypβ^XRpRny^=Xβ^pp, जब भी पूरी रैंक का नहीं होता)। नतीजतन रचना की रैंक के रैंक से अधिक नहीं हो सकती । सही निष्कर्ष , तब हैJH=XJX

tr(Q)=n−p अगर और केवल if पूर्ण रैंक का है; और सामान्य रूप से । पूर्व मामले में मॉडल को "पहचान योग्य" ( के गुणांक के लिए ) कहा जाता है।Jn≥tr(Q)≥n−pβ

J पूर्ण रैंक का होगा यदि और केवल अगर Prime उल्टा है।X′X


ज्यामितीय व्याख्या

H कॉलम ("स्वतंत्र चर" या "सहसंयोजक") का प्रतिनिधित्व करने वाले स्थान पर -ctors ( or "प्रतिक्रिया" या "निर्भर चर" का प्रतिनिधित्व करते हुए से ऑर्थोगोनल प्रक्षेपण का प्रतिनिधित्व करता है । अंतर दिखाता है कि किसी भी -vector को वैक्टर योग में कैसे विघटित किया जाता है कहां पहला से "पूर्वानुमानित" हो सकता है और दूसरा इसके लिए लंबवत है। जब के कॉलम एक -डायमेंशनल स्पेस उत्पन्न करते हैं (जो कि कोलियर नहीं हैं),nyXQ=1−Hny

y=H(y)+Q(y),
XpXpH is p and the rank of Q is n−p, reflecting the n−p additional dimensions of variation in the response that are not represented within the independent variables. The trace gives an algebraic formula for these dimensions.

Linear Algebra Background

A projection operator on a vector space V (such as Rn) is a linear transformation P:V→V (that is, an endomorphism of V) such that P2=P. This makes its complement Q=1−P a projection operator, too, because

Q2=(1−P)2=1−2P+P2=1−2P+P=Q.

All projections fix every element of their images, for whenever v∈Im(P) we may write v=P(w) for some w∈V, whence

w=P(v)=P2(v)=P(P(v))=P(w).

Associated with any endomorphism P of V are two subspaces: its kernel

ker(P)={v∈v|P(v)=0}
and its image
Im(P)={v∈v|∃w∈VP(w)=v}.
Every vector v∈V can be written in the form
v=w+u
where w∈Im(P) and u∈Ker(P). We may therefore construct a basis E∪F for V for which E⊂Ker(P) and F⊂Im(P). When V is finite-dimensional, the matrix of P in this basis will therefore be in block-diagonal form, with one block (corresponding to the action of P on E) all zeros and the other (corresponding to the action of P on F) equal to the f by f identity matrix, where the dimension of F is f. The trace of P is the sum of the values on the diagonal and therefore must equal f×1=f. This number is the rank of P: the dimension of its image.

The trace of 1−P equals the trace of 1 (equal to n, the dimension of V) minus the trace of P.

These results may be summarized with the assertion that the trace of a projection equals its rank.


Thanks very much. I learned a lot extended knowledge from your answer.
— zhushun0008

19

@Dougal has already given an answer, but here is another one, a bit simpler.

First, let's use the fact that tr(A−B)=tr(A)−tr(B). So, we get:

tr(Q)=tr(I)−tr(X(X′X)−1X′).
Now I is an n×n identity matrix, so tr(I)=n. Now let's use the fact that tr(AB)=tr(BA), that is, the trace is invariant under cyclic permutations. So, we have:
tr(Q)=n−tr((X′X)−1(X′X)).
When we multiply (X′X)−1 with (X′X), we get a p×p identity matrix, whose trace is p. So, we get:
tr(Q)=n−p.

6

Assume that n≤p and that X is full-rank.

Consider the compact singular value decomposition X=UΣVT, where Σ∈Rp×p is diagonal and U∈Rn×p,V∈Rp×p have UTU=VTV=VVT=Ip (but note UUT is rank at most p so it cannot be In). Then

X(XTX)−1XT=UΣVT(VΣUTUΣVT)−1VΣUT=UΣVT(VΣ2VT)−1VΣUT=UΣVTVΣ−2VTVΣUT=UUT.

Now, there exists a matrix U2∈Rn×n−p such that Un=[UU2] is unitary. We can write

I−X(XTX)−1XT=UnUnT−UUT=Un(In−[Ip000])UnT=Un[000In−p]UnT.
This form shows that Q is positive semidefinite, and since it is a valid svd and the singular values are the square of the eigenvalues for a square symmetric matrix, also tells us that Q has eigenvalues 1 (of multiplicity n−p) and 0 (of multiplicity p). Thus the trace of Q is n−p.
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.