Single Sample T-Test Operator

About This Sample

This sample demonstrates the use of the Spotfire Streaming Single Sample T-test operator.

The provided StreamBase module uses the randomly generated data set including columns Var1 and Var2. Var1 is generated with uniform distribution ranging from 0 to 100 with mean value = 50. Var2 is generated with uniform distribution ranging from 0 to 60 with mean value = 30. Data is fed into the Matrix operator to be collected and emitted every 50 rows.

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 singlesamplettest to narrow the list of options.

  • Select Single Sample 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, expand the sample_datascience_singlesamplettest project and double-click to open the SingleSampleTTest.sbapp application.

  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 singlesamplettest.sbfs, then click the Run button to start feeding the data.

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

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

Expected Output Stream