Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Canonical correlation
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Implementation=== CCA can be computed using [[singular value decomposition]] on a correlation matrix.<ref>{{Cite journal | last1 = Hsu | first1 = D. | last2 = Kakade | first2 = S. M. | last3 = Zhang | first3 = T. | doi = 10.1016/j.jcss.2011.12.025 | title = A spectral algorithm for learning Hidden Markov Models | journal = Journal of Computer and System Sciences | volume = 78 | issue = 5 | pages = 1460 | year = 2012 | url = http://www.cs.mcgill.ca/~colt2009/papers/011.pdf| arxiv = 0811.4413| s2cid = 220740158 }}</ref> It is available as a function in<ref>{{Cite journal | last1 = Huang | first1 = S. Y. | last2 = Lee | first2 = M. H. | last3 = Hsiao | first3 = C. K. | doi = 10.1016/j.jspi.2008.10.011 | title = Nonlinear measures of association with kernel canonical correlation analysis and applications | journal = Journal of Statistical Planning and Inference | volume = 139 | issue = 7 | pages = 2162 | year = 2009 | url = http://www.stat.sinica.edu.tw/syhuang/papersdownload/KCCA-080906.pdf | access-date = 2015-09-04 | archive-date = 2017-03-13 | archive-url = https://web.archive.org/web/20170313203427/http://www.stat.sinica.edu.tw/syhuang/papersdownload/KCCA-080906.pdf | url-status = dead }}</ref> * [[MATLAB]] as [http://www.mathworks.co.uk/help/stats/canoncorr.html canoncorr] ([https://sourceforge.net/p/octave/statistics/ci/default/tree/inst/canoncorr.m also] in [[GNU Octave|Octave]]) * [[R (programming language)|R]] as the standard function [http://stat.ethz.ch/R-manual/R-devel/library/stats/html/cancor.html cancor] and several other packages, including [https://cran.r-project.org/package=candisc candisc], [https://cran.r-project.org/web/packages/CCA/index.html CCA] and [https://cran.r-project.org/web/packages/vegan/index.html vegan]. [https://cran.r-project.org/web/packages/CCP/index.html CCP] for statistical hypothesis testing in canonical correlation analysis. * [[SAS language|SAS]] as [https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_cancorr_toc.htm proc cancorr] * [[Python (programming language)|Python]] in the library [[scikit-learn]], as [http://scikit-learn.org/stable/modules/cross_decomposition.html cross decomposition] and in statsmodels, as [https://devdocs.io/statsmodels/generated/statsmodels.multivariate.cancorr.cancorr CanCorr]. The CCA-Zoo library <ref>{{Cite journal |last1=Chapman |first1=James |last2=Wang |first2=Hao-Ting |date=2021-12-18 |title=CCA-Zoo: A collection of Regularized, Deep Learning based, Kernel, and Probabilistic CCA methods in a scikit-learn style framework |journal=Journal of Open Source Software |language=en |volume=6 |issue=68 |pages=3823 |doi=10.21105/joss.03823 |issn=2475-9066|doi-access=free |bibcode=2021JOSS....6.3823C }}</ref> implements CCA extensions, such as probabilistic CCA, sparse CCA, multi-view CCA, and deep CCA. * [[SPSS]] as macro CanCorr shipped with the main software *[[Julia (programming language)]] in the [https://github.com/JuliaStats/MultivariateStats.jl MultivariateStats.jl] package. CCA computation using [[singular value decomposition]] on a correlation matrix is related to the [[cosine]] of the [[angles between flats]]. The [[cosine]] function is [[ill-conditioned]] for small angles, leading to very inaccurate computation of highly correlated principal vectors in finite [[Precision (computer science)|precision]] [[computer arithmetic]]. To [[Angles_between_flats#Computation|fix this trouble]], alternative algorithms<ref name="KA02">{{Citation | last1 = Knyazev | first1 = A.V. | last2 = Argentati | first2 = M.E. | title = Principal Angles between Subspaces in an A-Based Scalar Product: Algorithms and Perturbation Estimates | journal = SIAM Journal on Scientific Computing | volume = 23 | issue = 6 | pages = 2009β2041 | year = 2002 | doi = 10.1137/S1064827500377332 | bibcode = 2002SJSC...23.2008K | citeseerx = 10.1.1.73.2914 }}</ref> are available in * [[SciPy]] as [https://docs.scipy.org/doc/scipy/reference/generated/scipy.linalg.subspace_angles.html linear-algebra function subspace_angles] * [[MATLAB]] as [https://www.mathworks.com/matlabcentral/fileexchange/55-subspacea-m FileExchange function subspacea]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)