Solution of the given questions are:
(A) Function which performs the given task.
H <-
function(G,k){
h<-matrix(c(g),nrow=nrow(g))
for(i in c(1:nrow(g))){
h[i,]=g[i,]-((g[i,k]*g[k,])/g[k,k])
}
h[,k]=g[,k]/g[k,k]
h[k,k]=-1/g[k,k]
h
}
(B)Function call
a<-matrix( rnorm(7*5,mean=0,sd=1), 7, 5)
b<-t(a) %*% a
s=H(b,1)
print(s)
(C) Third part implementation is:
H <-
function(g,k){
h<-matrix(c(g),nrow=nrow(g))
for (i in k){
h_1<-apply(h,1,function(x){x=x-((x[i]*h[i,])/h[i,i])})
h_1[,i]=h[,i]/h[i,i]
h_1[i,i]=-1/h[i,i]
h=matrix(c(h_1),nrow=nrow(h_1))
}
h
}
(D)Function call
a<-matrix(
rnorm(7*5,mean=0,sd=1), 7, 5)
b<-t(a) %*% a
s_1=H(b,c(3,1,5))
s_2=H(b,c(1,3,5,2,4))
print(s_1)
print(s_2)
Use R programming to solve Q2. A matrix operator H(G; k) on a pxp symmetric matrix G (iy)- with a positive integer parameter k (k < p) yields another p×p symmetric matrix H = (hij 1 with i=k,j...
H I J K L M N O P Q R S T U V 2012 Total Sales by Agent A B C D E F G 2012 Total Sales by Agent January - June January February March April May June Avery $ 3,671 $ 2,973 $ 4,017 $ 5,040 $ 4,963 $ 5,497 Collins $ 1,549 $ 992 $ 2,267 $ 3,201 $ 4,008 $ 3,798 Kinsley $ 2,996 $ 6,948 $ 4,205 $ 5,523 $ 6,597 $ 5,147...
can someone help me with f g h i j k l m n o p q r s please Financial statements for Fanning Company follow FANNING COMPANY Balance Sheets As of December 31 2019 2018 25.000 241,000 208.000 280,000 31,000 $584 000 26.000 $524 000 $ Current assets Cash Marketable securities Accounts receivable net) Inventories Prepaid items Total current assets Investments Plant (net) Land Total assets Liabilities and Stockholders' Equity Liabilities Current liable Notes payable Accounts payable Salaries payable...