Thread Subject: PCA Q statistic (SPE) Hotelling T2

Subject: PCA Q statistic (SPE) Hotelling T2

From: alkan alkaya

Date: 19 Nov, 2009 15:30:31

Message: 1 of 6

I want to use PCA (Principle component analysis) Q and T statistics test for fault detection control process. How can I use and how can I plot the Q or T2 statistics of the measured data?

Subject: PCA Q statistic (SPE) Hotelling T2

From: Peter Perkins

Date: 22 Nov, 2009 15:49:59

Message: 2 of 6

alkan alkaya wrote:
> I want to use PCA (Principle component analysis) Q and T statistics test for fault detection control process. How can I use and how can I plot the Q or T2 statistics of the measured data?

The PRINCOMP function in the Statistics Toolbox returns the T^2 statistics; the PCARES function returns residuals that are used to compute the Q statistics. Hope this helps.

Subject: PCA Q statistic (SPE) Hotelling T2

From: alkan alkaya

Date: 23 Nov, 2009 15:30:20

Message: 3 of 6

Peter Perkins <Peter.Perkins@MathRemoveThisWorks.com> wrote in message <hebmj7$m4f$1@fred.mathworks.com>...
> alkan alkaya wrote:
> > I want to use PCA (Principle component analysis) Q and T statistics test for fault detection control process. How can I use and how can I plot the Q or T2 statistics of the measured data?
>
> The PRINCOMP function in the Statistics Toolbox returns the T^2 statistics; the PCARES function returns residuals that are used to compute the Q statistics. Hope this helps.


Thank you peter perkins,

I could see the T2 plot by using PRINCOMP function but I couldn't plot the Q statistic. I have 1024*4 matrix 4= variables,1024= samples. When I use PCARES function I have RESIDUAL=R with same dimension (1024*4). for Q statistic as I know Q=R'*R after this calculation Q matrix occurs with 4*4 dimension but I think It should be 1*1024 dimension in order to plot Q test like T2 testing. I think I miss something. Thanks for your help.

Subject: PCA Q statistic (SPE) Hotelling T2

From: Peter Perkins

Date: 23 Nov, 2009 21:02:09

Message: 4 of 6

alkan alkaya wrote:

> I could see the T2 plot by using PRINCOMP function but I couldn't plot the Q statistic. I have 1024*4 matrix 4= variables,1024= samples. When I use PCARES function I have RESIDUAL=R with same dimension (1024*4). for Q statistic as I know Q=R'*R after this calculation Q matrix occurs with 4*4 dimension but I think It should be 1*1024 dimension in order to plot Q test like T2 testing. I think I miss something. Thanks for your help.

I suspect what you want is diag(R*R'), or equivalently, sum(R.^2,2).

Subject: PCA Q statistic (SPE) Hotelling T2

From: alkan

Date: 28 Dec, 2009 08:44:09

Message: 5 of 6

On 23 Kasım, 23:02, Peter Perkins
<Peter.Perk...@MathRemoveThisWorks.com> wrote:
> alkan alkaya wrote:
> > I could see the T2 plot by using PRINCOMP function but I couldn't plot the Q statistic. I have 1024*4 matrix 4= variables,1024= samples. When I use PCARES function I have RESIDUAL=R with same dimension (1024*4). for Q statistic as I know Q=R'*R after this calculation Q matrix occurs with 4*4 dimension but I think It should be 1*1024 dimension in order to plot Q test like T2 testing. I think I miss something. Thanks for your help.
>
> I suspect what you want is diag(R*R'), or equivalently, sum(R.^2,2).

I can calculate the confidence limit for T^2 test in matlab with
"T2Upper=p*(n-1)/(n-p)*finv(0.98,p,n-p); here p =PCs,n= sample number"
like this how can I calculate the confidence limits for Q test?

Subject: PCA Q statistic (SPE) Hotelling T2

From: alkan alkaya

Date: 28 Dec, 2009 08:47:03

Message: 6 of 6

I can calculate the confidence limit for T^2 test in matlab with
"T2Upper=p*(n-1)/(n-p)*finv(0.98,p,n-p); here p =PCs,n= sample number"
like this how can I calculate the confidence limits for Q test?

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
pca alkan alkaya 23 Nov, 2009 10:48:26
fault detection alkan alkaya 19 Nov, 2009 10:34:18
t2 alkan alkaya 19 Nov, 2009 10:34:18
q alkan alkaya 19 Nov, 2009 10:34:18
rssFeed for this Thread

Contact us at files@mathworks.com