Average Plot with Original Spectra

Table of Contents

  1. Introduction
  2. How to use
  3. Behavior
  4. Method
  5. References

Introduction

Average plot is a simple yet effective way to visualize processed data and detect overall trends. The plot optionally includes the original spectra in lighter colors for additional reference. This feature allows the user to determine which spectra lie close to or far from the mean, as well as exaggerate commonalities between the spectra. There is also an optional graph that plots the standard deviation between all the samples at each Raman frequency shift.

How to use

  1. In the analytics page, after processing your data, select “Average Plot with Original Spectra” from the drop-down menu on the left sidebar.
  2. Select whether you would like to see the original spectra plotted behind the average spectrum.
  3. Select whether you would like to see a graph of the standard deviation at each Raman frequency shift.
  4. To download the average plot data, click the button at the bottom of the page labeled “Download Avg and Std data as CSV,” which will write the data to a comma-separated list.

Behavior

  • Average plot: At each Raman frequency shift, this function determines the mean intensity between all samples and graphs the result as a bold blue line. Mathematically speaking, the average intensity graph $\overline{I}(x)$ is determined by the following equation: $\overline{I}(x)=\frac{1}{N}\sum_{i=1}^N I_i(x)$, where $I_i(x)$ is the intensity of spectrum $i$ at Raman shift $x$ $[{cm}^{-1}]$, and $N$ is the total number of samples.
  • Selected spectra: If the “Show spectra you selected” toggle is on, each spectrum $I_i(x)$ is plotted with light colors behind the average plot.
  • Standard deviation graph: If the “Show Standard Deviation” toggle is on, the standard deviation between all selected spectra is determined for each Raman shift value and plotted on a separate graph below the average plot graph. Mathematically speaking, the standard deviation graph $\sigma(x)$ is determined by the following equation:

    \[\sigma(x)=\sqrt{\frac{1}{N-1}\sum_{i=1}^N {\left(I_i(x)-\overline{I}(x)\right)}^2}\]

    where $I_i(x)$ is the intensity of spectrum $i$ at Raman shift $x$ $[{cm}^{-1}]$, and $N$ is the total number of samples.

Method

SpectraGuru computes mean and sample standard deviation at each Raman shift:

\[\bar{I}(x)=\frac{1}{N}\sum_{i=1}^N I_i(x)\]
Parameter Tunable or fixed Implementation
Show spectra you selected Tunable Boolean toggle, default True
Show Standard Deviation Tunable Boolean toggle, default True
Output Fixed Average, optional selected spectra, optional standard deviation graph, downloadable CSV

References

  1. SpectraGuru implementation, self-implemented descriptive statistics and plotting.