\unitlength=1mm
%\special{em:linewidth 0.4pt}
%\linethickness{0.4pt}
\begin{picture}(144.00,113.00)

% the plane
\put(9.67,50.00){\line(1,0){78.67}}
\put(88.33,50.00){\line(1,1){38.00}}
\put(126.33,88.00){\line(-1,0){78.33}}
\put(48.00,88.00){\line(-1,-1){37.67}}

% the data vector
\put(52.67,65.67){\vector(3,4){35.33}}

% span(X1)
\put(53.00,65.67){\vector(4,1){91.00}}
\put(53.67,65.67){\vector(-4,-1){49.33}}

% span(X2)
\put(52.67,65.67){\vector(4,3){52.67}}
\put(52.00,65.00){\vector(-4,-3){41.00}}

% full y-hat vector
%\put(53.00,65.67){\line(2,1){35.00}}
%\multiput(53.00,65.67)(5.33,2.67){5}{\line(2,1){2.67}}
\multiput(53.00,65.67)(0.67,0.33){52}{\circle*{0.1}}

% % full-y-hat to X1-y-hat vector
% %\put(88.00,83.00){\line(3,-2){9.67}}
% \multiput(88.00,83.00)(0.67,-0.44){15}{\circle*{0.1}}

% % resids onto X1 space
% %\put(97.33,76.33){\line(-1,4){9.00}}
% %\multiput(97.33,76.33)(-0.16,0.64){57}{\circle*{0.1}}
% \multiput(97.00,77.67)(-0.16,0.64){55}{\circle*{0.1}}


% resids onto full space
%\put(87.67,112.33){\line(0,-1){29.33}}
\multiput(87.67,112.33)(0.00,-0.67){45}{\circle*{0.1}}

% right-angle notation, full resids
%\put(87.67,85.00){\line(-2,-1){3.33}}
%\put(84.33,83.67){\line(0,-1){2.33}}
\multiput(87.57,85.00)(-0.2,-0.1){16}{\circle*{0.06}}
\multiput(84.33,83.33)(0.0,-0.1){21}{\circle*{0.06}}

% % right-angle notation, X1-resids
% %\put(96.33,79.33){\line(-4,-1){2.00}}
% %\put(94.33,79.00){\line(1,-4){0.67}}
% \multiput(96.33,79.33)(-0.2,-0.05){18}{\circle*{0.06}}
 %\multiput(93.00,78.33)(0.05,-0.2){12}{\circle*{0.06}}

% % right angle, between RSS and SYY-RSS
% %\put(87.57,85.00){\line(2,-1){2.67}}
% %\put(90.33,83.33){\line(0,-1){2.00}}
% \multiput(87.57,85.00)(0.2,-0.1){15}{\circle*{0.06}}
% \multiput(90.33,83.33)(0.0,-0.1){21}{\circle*{0.06}}



% labels...

\thicklines

\put(76.33,102.33){\makebox(0,0)[cc]{$\ul y$}}

\put(10.00,64.33){\makebox(0,0)[cc]{$\mbox{Span}\,\ul 1$}}
\put(10.00,61.33){\vector(0,-1){5.33}}

\put(31.67,39.33){\makebox(0,0)[lc]{$\mbox{Span}\,(X_1,X_2,\ldots,X_k)$}}
\put(29.33,39.33){\vector(-1,0){9.33}}

\put(101.67,55.67){\makebox(0,0)[lc]{$\mbox{Span}\, X
= \mbox{Span}\,(\ul 1,X_1,\ldots,X_k)$}}
\put( 99.67,55.67){\vector(-1,0){12.33}}

\put(68.33,62.00){\makebox(0,0)[cc]{$\ul{\hat y} = P\ul y$}}
\put(68.33,65.00){\vector(0,1){7.00}}

% \put(76.00,59.00){\makebox(0,0)[cc]{$\ul{\bar y}$}}
% \put(76.00,62.00){\vector(0,1){8.00}}

% \put(86.33,70.67){\makebox(0,0)[lc]{$(\mbox{length})^2
% = RegSS = TSS - RSS = \Vert(P-J/n)\ul y\Vert^2$}}% = \sum(\hat y_i -
% \bar y)^2$}} 
% \put(91.33,73.33){\vector(0,1){6.00}}

\put(97.33,101.33){\makebox(0,0)[lc]{$\ul E = Q\ul y = (I-P)\ul y$}}
\put(95.67,101.33){\vector(-1,0){6.67}}

% \put(102.33,92.00){\makebox(0,0)[lc]{$(\mbox{length})^2
% = TSS = \Vert (I-J/n)\ul y \Vert^2$}}% = \sum(y_i - \bar y)^2$}}
% \put(100.33,92.00){\vector(-1,0){5.33}}

\thinlines

\end{picture}
