Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
AndreasForster
Product and Topic Expert
Product and Topic Expert
0 Kudos

This component extends the capabilities of SAP Predictive Analysis and calculates certain measures of location:

- Mean

- Confidence Interval of the Mean

- Standard Deviation

- Minimum

- Maximum

- Total Record Count

- Record Count of non-null Values

Prerequisites

The dataset must contain at least one numerical column, which will be described with the measures of location.

Usage

These parameters can be set by the user.

ParameterDescription
Group by ColumnName of categorical column for level-based statistics. Calculates the measures of location for each subgroup. If the column "Country" is selected for instance, then individual statistics will be calculated for each country, ie Switzerland, China and Brasil.
Measure(s) to DescribeNames of one or more numerical column that are to be described, ie Revenue, Duration, etc.
Calculate Overall StatisticsControls whether the overall statistics of the unfiltered dataset are to be calculated.
Confidence Level for Mean IntervalConfidence level for calculating the lower and upper limits of the mean interval.

Output Columns

ColumnDescription
GroupByColumnThe levels of the group by column which is described by the row, ie Switzerland, China or Brazil. The statistics of the unfiltered dataset (if selected) is labelled "OVERALL".
MeasureName of the measure that is described in the row.
MeanMean.
SDStandard Deviation.
MinMinimum.
MaxMaximum.
CountRow count.
CountNotNARow count of non-null values.
MeanConfidenceLevelConfidence level for the mean interval as entered by the user.
MeanCILLLower limit of the mean's confidence interval.
MeanCIULUpper limit of the mean's confidence interval.

How to Implement

The component can be downloaded as .spar file from GitHub. Then deploy it as described here. You just need to import it through the option "Import/Model Component", which you will find by clicking on the plus-sign at the bottom of the list of the available algorithms.

Example

Let's try this component on the responses of a customer survey carried out by the airport of San Francisco. Download the dataset from the year 2011, load the data with SAP Predictive Analysis and add the "Measures of Location" component to the dataflow.

Configure the component to

- analyse the satisfaction with SFO Airport as a whole (column "Q8N").

- calculate the measures of location by the respondent’s country of residence (column "Q18COUNTRY").

- calculate also the overall measures of location for the unfiltered dataset.

Run the component and see the output.

You can further process the results, for instance by graphically analysing them with SAP Predictive Analysis.

Disclaimer

Please note that this component is provided as-is without any guarantee or support.