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

/wp-content/uploads/2013/09/1_272123.jpg

Step 2: Open the Predictive Analysis Tool.

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

/wp-content/uploads/2013/09/2_272124.jpg

Step 4: Choose the file from the saved location.

/wp-content/uploads/2013/09/3_272126.jpg

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

/wp-content/uploads/2013/09/5_272136.jpg

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

/wp-content/uploads/2013/09/6_272137.jpg

Step 7: Go to predict tab,

Select the Algorithms tab: which shows various Algorithms:

Under Association, select R-Apriori Algorithm.

/wp-content/uploads/2013/09/7_272138.jpg


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

/wp-content/uploads/2013/09/8_272144.jpg

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.

/wp-content/uploads/2013/09/9_272169.jpg

Step 10: Run the Analysis

/wp-content/uploads/2013/09/10_272170.jpg

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.

/wp-content/uploads/2013/09/11_272177.jpg

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

/wp-content/uploads/2013/09/12_272178.jpg

/wp-content/uploads/2013/09/13_272179.jpg

Hope it helps,

Thanks,

Shivani.Yemula

Assigned Tags

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