



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Applied Multivariate Analysis; Subject: STAT-Statistics; University: Purdue University - Main Campus; Term: Unknown 1989;
Typology: Assignments
1 / 5
This page cannot be seen from the preview
Don't miss anything!




at the a=. :\stat524\
{
%% (^) t(sigrnae$vectors) %% R12 (^) solve(msqrt(Rll)
Br --) %% R21 %% (R22) )
[1] 0.
. P2 =.
Therefore . PI
Test the hypothesis Ho: II2=O at the a= p- ~ n- tt--(n-1-(p+q+1)/2)log(prod( chicrit-qchisq(O.95,pq)
tt [1] 44. chicrit [1] 12. = 12.5916. Since the hypothesis
Ho:}:;12=O,and conclude that we correlations.
Test for the significance of the first k .. Ho :Pj 0,p2 = k. H I :P2 * 0 tt1--(n-1-(p+q+1)/2)log(prod(1-0. tt [1] 2. Chicrit1-qchisq(O.95, (p-1)*(q-1» Chicrit [1] 5.
The chi-squarecritical value = 5.9915. Since the observed test statistics 2.3458 is less than the
chi-square critical value, we don't reject the null hypothesis and we conclude that only first
canonical correlation is significant.
1
%*% (Breigen$vectors[,l])
br] br] [,1] [1,] 0. [2,] 0. [3,] 0.
Suppose Z(l) = [ zi1) , zi1) ], and Z(2) =! zi2) , zi2) , zj2) ] are standardized variables. Let Z = [ Z(l) , Z(2)]',
then 01 = a;z(l) = .7689 zi1) + .2721 zi1) , ~ = b;Z(2) = .0491 zi2) + :8975 zi2) + .1900 zj2) are the first
pair of canonical variates.
c)Using the results in Parts a and b, prepare a table showing the canonical variate coefficients and the samplecorrelations of the canonical variates with their component variables
rhoulzl-^ Rll%*%arl rhoulzl (^) ..,./ L,.I.J
rhov1z2-R22%*%br rhov1z
] 0. ] 0. --sol
[,1] 689274 720729 'e (msqrt (R22 )
b3-so1ve(msqrt(R22) ) %% a4-so1ve(msqrt(Rll))%% (- b4-so1ve(msqrt(R22)) %*% A-cbind(al, a2, a3, a4) B-cbind(bl, b2, b3, b4)
, and P: =. , Z~2) ] are standardized
are the first pair of are for The sample canonical Suppose Z(I)= [ Z:I) , Z~I)Z~I) variables. Let Z = [ Z<1), Z<2)]', then 61= a;Z(I)= .0430z:1)-1. .7806 Z~2)+ .2567 Z~2)+ .6919 Z~2)- canonical variates. The canonical presented in -" A U k .Columns of matrix B
AI AI ~ a B b' 1 b' 2 [1,] 0.4732661 -0. [2,] -0.7805809 -0. [3,] 0.2567028 -0. [4,] 0.6919168 0. [5,] -0.1451489 -0. [6,] -0.0703867 0.6255409 - [7,] 0.3127276 0. [8,] 0.3364251 0.
According to canonical ~ while ~ represents annoyance variable while V2 represents a smoking I, smoking 2 and contentedness. rJ4 is primarily annoyance, sleepiness, alertness,
2 and smoking 3 variable 1 and smoking 4 .rJ3 is primarily alertness and while V4 represents
the canonical variates. .3067 , and
4
[2,] -1.16220375 -0. [3,] 1.37533027 -0. [4,] -0.89086250 1.
variables is reflected in "
1 Ls^2 1 2 2
8 k=l Vl.'i 8 8 canonical variate O 1 of the desire to smoke set accounts for 30.7% of the set's total sample variance. The first sample canonical variate ~ and physical state set accounts for 37.1 % of the set's total' -low proportions of sample variances, " of their respective sets of variables.
rhou1z1-R11%%a rhov1z2-R22%%b rhou1z [ ,1] 1 -0. 2 -0. 3 -0. 4 -0. rhov1z [,1]
~:i ~ ~, .~j?,