---
title: "Karhunen-Loeve Transform (KLT)"
author: "urey"
date: "2010-04-27T00:20:51Z"
tags: []
categories: ["非技术"]
slug: "karhunen-loeve-transform-klt"
draft: false
lastmod: "2010-04-27T15:16:32Z"
id: 653766
url: "https://urey.iteye.com/blog/653766"
---

[**Karhunen-Loeve Transform (KLT)**]()

source：http://fourier.eng.hmc.edu/e161/lectures/klt/node3.html

![${\bf\phi}_k$](http://fourier.eng.hmc.edu/e161/lectures/klt/img83.png) 是与协方差矩阵![${\bf\Sigma}_x$](http://fourier.eng.hmc.edu/e161/lectures/klt/img82.png) 与第k 个特征值 ![](http://fourier.eng.hmc.edu/e161/lectures/klt/img84.png)一致的特征向量，有：

![\begin{displaymath} {\bf\Sigma}_x {\bf\phi}_k=\lambda_k{\bf\phi}_k\;\;\;\;\;\;(k=0,\cdots,N-1) \end{displaymath}](http://fourier.eng.hmc.edu/e161/lectures/klt/img85.png)

 

或以矩阵的形式：

 

![\begin{displaymath}\left\[ \begin{array}{ccc}\cdots &\cdots &\cdots \\ \cdots & ... ...phi}_k   \end{array} \right\] \;\;\;\;\;\;(k=0,\cdots,N-1) \end{displaymath}](http://fourier.eng.hmc.edu/e161/lectures/klt/img86.png)

 

协方差矩阵是对称矩阵，有![${\bf\Sigma}_x={\bf\Sigma}_x^T$](http://fourier.eng.hmc.edu/e161/lectures/klt/img87.png) （若![${\bf x}$](http://fourier.eng.hmc.edu/e161/lectures/klt/img11.png) 是复数则共轭对称），他的特征向量 ![](http://fourier.eng.hmc.edu/e161/lectures/klt/img88.png)是正交的，有：

 

![\begin{displaymath}( {\bf\phi}_i,{\bf\phi}_j)={\bf\phi}^T_i {\bf\phi}_j=\left\{ \begin{array}{ll} 1 & i=j  0 & i\ne j \end{array} \right. \end{displaymath}](http://fourier.eng.hmc.edu/e161/lectures/klt/img89.png) &lt;!-- \[endif]--&gt;

我们可以构造![$N \times N$](http://fourier.eng.hmc.edu/e161/lectures/klt/img90.png) 正交（酉）矩阵![${\bf\Phi}$](http://fourier.eng.hmc.edu/e161/lectures/klt/img91.png) ：

 

![\begin{displaymath} {\bf\Phi}\stackrel{\triangle}{=}\[{\bf\phi}_0, \cdots,{\bf\phi}_{N-1}\] \end{displaymath}](http://fourier.eng.hmc.edu/e161/lectures/klt/img92.png)

 

满足：

 

![\begin{displaymath}{\bf\Phi}^{T} {\bf\Phi} = {\bf I},\;\;\;\;\mbox{i.e.,}\;\;\;\; {\bf\Phi}^{-1}={\bf\Phi}^{T} \end{displaymath}](http://fourier.eng.hmc.edu/e161/lectures/klt/img93.png)

 

以上N 个特征方程可能联合表达为：

 

![\begin{displaymath}{\bf\Sigma}_x{\bf\Phi}={\bf\Phi}{\bf\Lambda} \end{displaymath}](http://fourier.eng.hmc.edu/e161/lectures/klt/img94.png)  

 

矩阵形式为：

 

![](http://fourier.eng.hmc.edu/e161/lectures/klt/img95.png)

 

![${\bf\Lambda}$](http://fourier.eng.hmc.edu/e161/lectures/klt/img96.png) 是一个对角矩阵![${\bf\Lambda}=diag(\lambda_0, \cdots, \lambda_{N-1} )$](http://fourier.eng.hmc.edu/e161/lectures/klt/img97.png) 。两边左乘![${\bf\Phi}^T={\bf\Phi}^{-1}$](http://fourier.eng.hmc.edu/e161/lectures/klt/img98.png) ，协方差矩阵![${\bf\Sigma}_x$](http://fourier.eng.hmc.edu/e161/lectures/klt/img82.png) 则对角化为：

 

![\begin{displaymath}{\bf\Phi}^T{\bf\Sigma}_x{\bf\Phi}={\bf\Phi}^{-1} {\bf\Sigma}_x {\bf\Phi} = {\bf\Phi}^{-1}{\bf\Phi}{\bf\Lambda}={\bf\Lambda} \end{displaymath}](http://fourier.eng.hmc.edu/e161/lectures/klt/img99.png)

 

向量![${\bf x}$](http://fourier.eng.hmc.edu/e161/lectures/klt/img11.png) ，定义![${\bf x}$](http://fourier.eng.hmc.edu/e161/lectures/klt/img11.png) 的正交（若![${\bf x}$](http://fourier.eng.hmc.edu/e161/lectures/klt/img11.png) 为复数则为酉）K-L 变换为：

 

![\begin{displaymath}{\bf y}=\left\[ \begin{array}{l} y_0\ y_1 \ \vdots \ y_{N-1... ...\phi^T_1 \ \vdots \ \phi^T_{N-1} \end{array} \right\] {\bf x} \end{displaymath}](http://fourier.eng.hmc.edu/e161/lectures/klt/img100.png)

 

转换向量的第i 行![$y_i$](http://fourier.eng.hmc.edu/e161/lectures/klt/img101.png) 是![${\bf x}$](http://fourier.eng.hmc.edu/e161/lectures/klt/img11.png) 到![${\bf\phi_i}$](http://fourier.eng.hmc.edu/e161/lectures/klt/img88.png) 的映射：

![\begin{displaymath}y_i=({\bf\phi}_i,{\bf x})={\bf\phi}_i^T{\bf x} \end{displaymath}](http://fourier.eng.hmc.edu/e161/lectures/klt/img103.png)  

 

在![${\bf y}={\bf\Phi}T {\bf x}$](http://fourier.eng.hmc.edu/e161/lectures/klt/img105.png) 两边同乘![${\bf\Phi}=({\bf\Phi}^T)^{-1}$](http://fourier.eng.hmc.edu/e161/lectures/klt/img104.png) ，我们得到逆变换：

 

![\begin{displaymath} {\bf x}={\bf\Phi} {\bf y}=\[ {\bf\phi}_0, {\bf\phi}_1, \cdots... ...ts \ y_{N-1} \end{array} \right\] =\sum_{i=0}^{N-1} y_i \phi_i \end{displaymath}](http://fourier.eng.hmc.edu/e161/lectures/klt/img106.png)

 

我们看到，通过转换，通过N 个特征向量![${\bf\phi}_i$](http://fourier.eng.hmc.edu/e161/lectures/klt/img88.png) ![$i=0,\cdots,N-1$](http://fourier.eng.hmc.edu/e161/lectures/klt/img107.png) ），向量![${\bf x}$](http://fourier.eng.hmc.edu/e161/lectures/klt/img11.png) 扩展为N 维空间的基向量。