This sample demonstrates the use of the Spotfire Streaming Two Sample T-Test by Groups operator. The Two Sample T-Test by Groups Operator allows you to test whether or not one or two independent groups measured on a continuous variable have equal means or not.
The Two Sample T-Test by Groups Operator coupled with the Matrix operator allows you to determine whether not two independent groups have the mean over time. The provided StreamBase module uses the randomly generated data set with two groups A and B measured on a single variable 'x'. TData is fed into the Matrix operator to be collected and emitted every 200 rows. Then the Two Sample T-Test by Groups Operator takes two emitted set of data from 2 different groups to produce a result
In StreamBase Studio, import this sample with the following steps:
From the top-level menu, click> .
In the search field, type
ttestbygroupsto narrow the list of options.
Select Two Sample T-Test by Groups operator from the Streaming Datascience Operators category.
StreamBase Studio creates a single project containing the sample files.
In the Project Explorer view, expand the
sample_datascience_ttestbygroupsproject and double-click to open the
TTestByGroups.sbappapplication. Make sure the application is the currently active tab in the EventFlow Editor.
Click the Run button. This opens the SB Test/Debug perspective and starts the application.
Click on the Feed Simulations tab, click the
TTestByGroups.sbfs, then click the Run button to start feeding the data.
The Independent Two Sample T-test operator starts taking data from the feed simulation and emitting the results after 200 rows collected.
When done, press F9 or click the Stop Running Application button.