Descriptive Statistics Operator Sample

About This Sample

This sample demonstrates the use of the Spotfire Streaming Descriptive Statistics operator.

The provided StreamBase module uses simulated data with four variables whose moments vary and evolve over time. This example illustrates how the Descriptive Statistics operator coupled with the Matrix operator can allow you to easily monitor the trajectory of the sample moments over time, allowing you to gain insight into possible shifts and drifts in the underlying data distributions.

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

  • Select Basic descriptive statistics 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_descriptivestatistics project and double-click to open the DescriptiveStatistics.sbapp application. 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 Descriptivestatistics.sbfs, then click the Run button to start feeding the data.

  4. The Descriptive Statistic 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