Create a Statistical Model (Datasets)

The new functionality implemented in Version 5 allows Users to easily create a statistical model to find anomalies in data containing a large number of dimension values. This process can surface specific anomalies across thousand of records and dimensions, allowing reports and metrics to be easily created with this reduced information.

For an example, we will create a Stats Model from an existing Dataset containing Sales data from our test database. We want to find any values of 'Cost of Product', 'Sales Amount' or  'Gross Profit'   that fall outside of 2 standard deviations from a 30-day moving average.  We want to perform this evaluation across these dimensions: Country, Channel, and Product sub-category.

1. Creating Statistical Models from the Dataset Viewer

In our example, the All data View of the Dataset provides the following:

Measures :

  1. Cost of product
  2. Sales amount
  3. Gross profit amount

Dimensions:

  • Product_subcategory
  • Country
  • Channel

Stats Models can only be created from the 'All Data' Views

2. Actions > Build Stats Model will open the Stats Model editor

  1. Name - default is 'Statistical Model' appended to your Dataset Name - Name may be modified.
  2. Date column - choose a Date from the Results field or use 'Snapshot Date' if your Dataset is snapshotted.
  3. Moving Average Interval - select a moving average range that will produce statistically relevant data.
  4. Upper and Lower Control Limits provide calculations used in I-MR statistics.  Provide the multiplier used to generate upper and lower control boundaries.
  5. The generated Stats Model returns only records that fall outside of a specified number of standard deviations.  Lower numbers will include more results, higher numbers fewer records but significantly anomalous results. Set your Volatility limit to control the number of records returned in your stats model.
  6. You can compute volatility for the either the current(latest) Calendar date or for all Calendar values.
  7. Dimension value is defaulted but can be changed or added to by clicking on [+ Dimension]
  8. Measure values is also defaulted but can be changed or added to  by clicking on [+ Field]

3. Select Dimensions (filters) and Measures for your Stats Model Results

  1. Dimensions - We have selected 3 filters.  We have also selected Include Totals for each dimension to generate stats for every unique combination of filter values against all other filter values including aggregated totals. In this example, a Total value will be calculated for All Countries, All Channels, All Product-subcategories, as well as all channels and products for each country, all countries and products for each channel, etc.
  2. Measures - select those measures you are interested in
  3. You can add any number of computed fields via [+ Derived Field]
  4. Check to Include a generated column that concatenates all Measure Names greater than your specified volatility limit  (in this example, all measures with values greater than 2 standard deviations from 30-day moving average)
  5. If you have checked #4, you may elect to alternately display one row for each separate measure with an anomaly instead of concatenating.
  6. Save to create your Stat Dataset - note that this may take some time and that you can exit this page while this processing occurs

4. Review Results of one row per Measure setting

5. To change options, simply Edit > Statistical Model

6. Review Results of this Model will quickly highlight those elements with Anomalies

  1. For E-mail Marketing in Australia, Chardonnay  has anomalies in all 3 Measures - Total Cost, Total Sales Amount, Total Gross Profit
  2. For Website Visits in Australia, the Gift Set  has  only one measure showing an anomaly - Total Gross Profit
  3. And Germany is showing anomalies for Champagne in two channels

7. Save this new Stat Model as a new View

You can create Rules against the Stats dataset and save these as views (in example, Stats Records where the total sales are over 1 Million, etc.)

  1. Click [Save as View]
  2. Add meaningful Name for your View on the Pop-up
  3. Select Public if you want others to be able to View and Use this Stat Model, otherwise it this view will only be available to you
  4. Save
  5. Statistical Models are saved as Views
  1. All editing of Statistical Models must be done from the Dataset Viewer as Stat Datasets will not appear in Content > Dataset menu
8. Now you can easily create multiple reports and metrics directly from this View

Selecting Action > Build Report will take you directly to a defaulted report that you can edit, or simply Publish and Enable to display on your Homepage

For details on creating elements from Statistical Datasets  refer to this article for more information:  Sourcing Reports / Metrics / Dimensions from "Existing Datasets - SQL"

We can simply edit this newly created report to just display the fields we are interested in and then [Enable & publish]

Then the Report can be Viewed, Burst, or Shared

 

0 Comments

Add your comment

E-Mail me when someone replies to this comment