Skip to Content
Author's profile photo Former Member

R-Apriori Algorithm

SAP Predictive Analysis:

SAP Predictive Analysis is a statistical analysis and data mining solution that enables you to build predictive models to discover hidden insights and relationships in your data, from which you can make predictions about future events.

Association Algorithm:

R-Apriori: This algorithm is used to understand what products and services customers tend to purchase at the same time. By analyzing the purchasing trends of customers with association analysis, prediction of their future behavior can be made.

Let us walk through a simple example to work on the:

Step 1: The below excel file have the OrderID and Product ID


Step 2: Open the Predictive Analysis Tool.

Step 3: Go to FILE-> NEW-> Select the Data Source (here in this case select Excel)


Step 4: Choose the file from the saved location.


Step 5: The Below Screen shows the data Acquisition, Select Acquire.


Step 6: The below screen shows the data where we can filter, Manipulate the data


Step 7: Go to predict tab,

Select the Algorithms tab: which shows various Algorithms:

Under Association, select R-Apriori Algorithm.


Step 8: Select the Configure Properties as shown in the below screen.


Step 9: The below screen shows the Configuration Properties:

Output Mode: Select the mode to display the output, e.g. Rules

Input Format: Select the format of the input data, e.g., Transactions

Item column: Select the column containing items, on which u want to apply the algorithm

Transaction ID Column: select the column containing Transaction ID i.e., Order ID

Support: Enter a value for the minimum support of an item

Confidence: Enter a value for the minimum confidence of rules/association.

Save the model and Close.


Step 10: Run the Analysis


Step 11:  The below screen shows the

Rules: Which give the rules for the given column, here in this example the rule is applied to the Product,

This gives the support, Confidence and lift for the products in all the possible combinations, which is used to predict the frequent item set patterns.


Step 12: Select Charts, to view the summary of the algorithm,



Hope it helps,



Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.