<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PCA for spectral data in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/PCA-for-spectral-data/m-p/846132#M102076</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/65623"&gt;@Maike_W&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to consider clustering your variables in the PCA and refining your number of columns to the most representative ones (see below):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ben_BarrIngh_0-1741172210893.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73572iC5C5BE2EC745C32B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ben_BarrIngh_0-1741172210893.png" alt="Ben_BarrIngh_0-1741172210893.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also took this data into our Functional Data Explorer platform (after stacking the data) and split the columns to Group (Erbse, Ackerborne) and the attached numeric value (40.5, 40.15, note I added '0' for the ones where the value wasn't stated) and I got a good model explaining the difference in the peaks between the groups (see the gif and attached table).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ProtienFDE.gif" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73573i423479DCCFCAE637/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ProtienFDE.gif" alt="ProtienFDE.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Wed, 05 Mar 2025 10:59:05 GMT</pubDate>
    <dc:creator>Ben_BarrIngh</dc:creator>
    <dc:date>2025-03-05T10:59:05Z</dc:date>
    <item>
      <title>PCA for spectral data</title>
      <link>https://community.jmp.com/t5/Discussions/PCA-for-spectral-data/m-p/844960#M101945</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am performing a PCA on a large data set (257 columns (wavenumber) and about 8000 rows (samples)) and want to recognise certain patterns between the spectra with the PCA.&lt;BR /&gt;However, this warning always appears ‘Warning: The matrix correlation is not positive definite.’ Can someone help me to understand what this means and if it is relevant for my analysis of the data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am only a beginner in JMP but I appreciate any help on this matter.&lt;/P&gt;&lt;P&gt;Thank you!&lt;BR /&gt;Maike&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 11:27:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/PCA-for-spectral-data/m-p/844960#M101945</guid>
      <dc:creator>Maike_W</dc:creator>
      <dc:date>2025-02-28T11:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: PCA for spectral data</title>
      <link>https://community.jmp.com/t5/Discussions/PCA-for-spectral-data/m-p/845006#M101953</link>
      <description>&lt;P&gt;Hi Maike,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you provide an example data set to see? This is indicating that some characteristics of your matrix aren't positive (i.e. the eigenvalues arent all positive, the matrix isn't symmetrical) which changes the type of tests that can be performed with JMP that require (for example &lt;A href="https://community.jmp.com/t5/Discussions/Correlation-matrix-is-not-positive-definite-and-singular/td-p/195121" target="_self"&gt;Maximum Likelihood tests&lt;/A&gt; as described here) and can weaken the strength of your PCA. I would consider looking at your data and trying things like removing outliers/errors or even refining your predictors list to the actually important factors/columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you mentioned you're a beginner, I would recommend you look at these articles (&lt;A href="https://www.jmp.com/en/resources/articles/analyzing-spectral-data-modeling-options" target="_self"&gt;here&lt;/A&gt; and &lt;A href="https://www.jmp.com/en/resources/articles/analyzing-spectral-data-multivariate-methods" target="_self"&gt;here&lt;/A&gt;) around spectral data analysis - they're very inspiring and useful!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 14:57:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/PCA-for-spectral-data/m-p/845006#M101953</guid>
      <dc:creator>Ben_BarrIngh</dc:creator>
      <dc:date>2025-02-28T14:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: PCA for spectral data</title>
      <link>https://community.jmp.com/t5/Discussions/PCA-for-spectral-data/m-p/845862#M102046</link>
      <description>&lt;P&gt;Hi Ben,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your reply and the articles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my data you can see the spectra of native and denatured proteins. I would like to use PCA to see if I can distinguish between the native and denatured proteins. Here is an example data set with some samples.&lt;BR /&gt;I have already normalised my data to the range 0 - 1. The warning appears for both the raw data and the normalised values.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 16:54:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/PCA-for-spectral-data/m-p/845862#M102046</guid>
      <dc:creator>Maike_W</dc:creator>
      <dc:date>2025-03-04T16:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: PCA for spectral data</title>
      <link>https://community.jmp.com/t5/Discussions/PCA-for-spectral-data/m-p/846129#M102075</link>
      <description>&lt;P&gt;Hi Maike,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this example how are you distinguishing the 'denaturing' is it the difference between the samples '0.5','0.14' and '85'? I'm just trying to figure out how you intend on using PCA to then say 'these features are denatured'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 10:43:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/PCA-for-spectral-data/m-p/846129#M102075</guid>
      <dc:creator>Ben_BarrIngh</dc:creator>
      <dc:date>2025-03-05T10:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: PCA for spectral data</title>
      <link>https://community.jmp.com/t5/Discussions/PCA-for-spectral-data/m-p/846132#M102076</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/65623"&gt;@Maike_W&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to consider clustering your variables in the PCA and refining your number of columns to the most representative ones (see below):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ben_BarrIngh_0-1741172210893.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73572iC5C5BE2EC745C32B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ben_BarrIngh_0-1741172210893.png" alt="Ben_BarrIngh_0-1741172210893.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also took this data into our Functional Data Explorer platform (after stacking the data) and split the columns to Group (Erbse, Ackerborne) and the attached numeric value (40.5, 40.15, note I added '0' for the ones where the value wasn't stated) and I got a good model explaining the difference in the peaks between the groups (see the gif and attached table).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ProtienFDE.gif" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/73573i423479DCCFCAE637/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ProtienFDE.gif" alt="ProtienFDE.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 10:59:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/PCA-for-spectral-data/m-p/846132#M102076</guid>
      <dc:creator>Ben_BarrIngh</dc:creator>
      <dc:date>2025-03-05T10:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: PCA for spectral data</title>
      <link>https://community.jmp.com/t5/Discussions/PCA-for-spectral-data/m-p/846331#M102087</link>
      <description>&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;thank you very much! yes exactly, the values without a number are the native proteins and I treated them at different temperatures and times. You can see the differences in the numbers.&lt;BR /&gt;&lt;BR /&gt;My work is about whether you can see these structural differences using NIR spectroscopy. I want to see if you can see patterns and determine regularity using PCA and what wavenumber you need to look at.&lt;/P&gt;&lt;P&gt;But back to PCA and this warning (The matrix correlation is not positive definite.). Can I fix this by looking only at the columns with the important wave numbers (from clustering or the loading matrix) in the PCA?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the example in the Functional Data Explorer. I will have a closer look at it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 16:56:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/PCA-for-spectral-data/m-p/846331#M102087</guid>
      <dc:creator>Maike_W</dc:creator>
      <dc:date>2025-03-05T16:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: PCA for spectral data</title>
      <link>https://community.jmp.com/t5/Discussions/PCA-for-spectral-data/m-p/846427#M102109</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/65623"&gt;@Maike_W&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reducing your number of 'non-important' columns will help with improving the PCA - I think that you shouldn't place too much emphasis on the positive definitive isse - the PCA will help you find the related columns that could indicate the denaturation of the proteins regardless of the correlation issue, and you're going to likely look at them visually to scrutinize it anyway to see if it is a true relationship in your samples which will give you a clear 'true or not' answer to the wavelengths that are important.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 08:57:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/PCA-for-spectral-data/m-p/846427#M102109</guid>
      <dc:creator>Ben_BarrIngh</dc:creator>
      <dc:date>2025-03-06T08:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: PCA for spectral data</title>
      <link>https://community.jmp.com/t5/Discussions/PCA-for-spectral-data/m-p/846428#M102110</link>
      <description>&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you so much. This has definitely helped me.&lt;/P&gt;&lt;P&gt;Maike&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 09:05:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/PCA-for-spectral-data/m-p/846428#M102110</guid>
      <dc:creator>Maike_W</dc:creator>
      <dc:date>2025-03-06T09:05:55Z</dc:date>
    </item>
  </channel>
</rss>

