Title: | Flury and Gautschi algorithms |
---|---|
Description: | This is a package for implementation of Flury-Gautschi algorithms. |
Authors: | Dariush Najarzadeh |
Maintainer: | Dariush Najarzadeh <[email protected]> |
License: | GPL (>= 2) |
Version: | 1.0 |
Built: | 2024-10-31 20:40:36 UTC |
Source: | CRAN |
The minimization of the objective function
is required for a potpourri of statistical problems.
This algorithm (Flury & Gautschi, 1984) is designed to find an orthogonal matrix
of dimension
such that
for all orthogonal matrices B.
The matrices ,...,
are positive-definite and are usually sample covariance matrices
and
s are positive real numbers.
It can be shown (Flury, 1983) that if , then
the following system of equations holds:
where
In other words, Flury and Gautschi algorithms find the solution of the above system of equations.
Also, this algorithm can be used to find the maximum likelihood estimates of common principal components in k
groups (Flury,1984).
Package: | FGalgorithm |
Type: | Package |
Version: | 1.0 |
Date: | 2012-11-14 |
License: | GPL (>= 2) |
Dariush Najarzadeh
Maintainer: Dariush Najarzadeh <[email protected]>
Flury, B. N. (1983), "A generalization of principal component analysis to k groups", Technical Report No. 83-14, Dept. of Statistics, Purdue University.
Flury, B. N. (1984). Common principal components in k groups. Journal of the American Statistical Association, 79(388), 892-898.
Flury, B. N., & Gautschi, W. (1984). An algorithm for simultaneous orthogonal transformation of several positive definite symmetric matrices to nearly diagonal form. SIAM Journal on Scientific and Statistical Computing, 7(1), 169-184.
Find the orthogonal matrix such that minimize
.
FGalgorithm(eF, eG, p, n , A)
FGalgorithm(eF, eG, p, n , A)
eF , eG
|
small positive constants controlling error terms. |
p |
dimensionality. |
n |
a numeric vector containing the positive integers. |
A |
a list of length k of positive definite symmetric matrices. |
Orthogonal matrix such that minimize
with respect to the group of orthogonal matrices
.
Dariush Najarzadeh
Flury, B. N., & Gautschi, W. (1986). An algorithm for simultaneous orthogonal transformation of several positive definite symmetric matrices to nearly diagonal form. SIAM Journal on Scientific and Statistical Computing, 7(1), 169-184.
n<-numeric(3) n[[1]]<-50 n[[2]]<-50 n[[3]]<-50 A<-vector("list",length=3) A[[1]]<-var(iris[51:100,1:4]) A[[2]]<-var(iris[101:150,1:4]) A[[3]]<-var(iris[1:50,1:4]) B0<-FGalgorithm(1e-5,1e-5,4,n,A) B0
n<-numeric(3) n[[1]]<-50 n[[2]]<-50 n[[3]]<-50 A<-vector("list",length=3) A[[1]]<-var(iris[51:100,1:4]) A[[2]]<-var(iris[101:150,1:4]) A[[3]]<-var(iris[1:50,1:4]) B0<-FGalgorithm(1e-5,1e-5,4,n,A) B0