Paired T-test Sample

About This Sample

This sample demonstrates the use of the Spotfire Streaming Paired T-Test operator. The Paired T-Test operators allows you to test whether or not a pairs of variables has equal means.

The Paired T-Test Operator coupled with the Matrix operator allows you to determine whether not two groups have the mean over time. For this sample, the provided StreamBase module uses simulated data from a multivariate normal distribution of three variables whose means are drifting over time. The data is sent to a matrix operator, where the data is partitioned into tumbling windows of size 100.

Importing This Sample into StreamBase Studio

In StreamBase Studio, import this sample with the following steps:

  • From the top-level menu, click File>Import Samples and Community Content.

  • In the search field, type paired to narrow the list of options.

  • Select Paired T-Test operator from the Streaming Datascience Operators category.

  • Click Import Now.

StreamBase Studio creates a single project containing the sample files.

Running This Sample in StreamBase Studio

  1. In the Project Explorer view, find and open the sample_ttest application module. Make sure the application is the currently active tab in the EventFlow Editor.

  2. Click the Run button. This opens the SB Test/Debug perspective and starts the application.

  3. Click on the Feed Simulations tab, click the PairedTTest.sbfs, then click the Run button to start feeding the data.

  4. The paired T-test operator starts taking data from the feed simulation and emitting the results after 100 rows collected.

  5. When done, press F9 or click the Stop Running Application button.

Expected Output Stream