MB Inspect Tool

The MB Inspect tool takes as input a rules or itemsets output of the MB Rules tool, and provides a listing and analysis of those rules that can be filtered on several criteria in order to reduce the number or returned rules or itemsets to a manageable number.

This tool uses the R tool. Go to Options > Download Predictive Tools and sign in to the Alteryx Downloads and Licenses portal to install R and the packages used by the R Tool. See Download and Use Predictive Tools.

Input

The Output ("O") object from an MB Rules Tool.

Configure the tool

Use the MB Inspect - Filter Configuration tab to set the parameters for your filter.

  • Minimum support level: Support is the proportion of transactions that contain the items in the itemset or association rule. This option sets the minimum required support level to be included in an inspection. The lower this value, the more rules or itemsets that will meet the criteria, but they will represent increasingly more uncommon combinations of items. A value of zero "turns-off" this filter.
  • Maximum support level: This option sets the upper bound of support for rules or itemsets that will be inspected. One reason to set an upper bound is that high levels of support may represent obvious and uninteresting rules or items sets that are frequently purchased (e.g., milk and bread in a supermarket). A value of zero "turns-off" this filter.
  • Minimum confidence level for association rules: Confidence is the proportion of transactions where the RHS (right-hand side) item(s) of an association rule are in the transactions that also contain the LHS (left-hand side) item(s) of that rule. In other words, it is a measure of the probability that the RHS item(s) will be in the transaction when the LHS item(s) are also in the transaction. This option sets the minimum required confidence level to be included in an inspection. The lower this value, the more rules or itemsets that will meet the criteria, but they will represent rules where the proportion of times the LHS item(s) occur in transactions that contain the RHS item(s). A value of zero "turns-off" this filter, which is only applicable for association rules.
  • Maximum confidence level for association rules: This option sets the upper bound of confidence for rules or itemsets that will be inspected. One reason to set an upper bound is that high levels of confidence may represent obvious and uninteresting rules or items sets (e.g., hot dogs and hot dog buns in a supermarket). A value of zero "turns-off" this filter, which is only applicable for association rules.
  • Minimum lift level for assoc. rules: Lift is the proportion of transactions that contain the RHS and LHS items relative to the proportion of time we would expect this to occur if the items were independent (unrelated) to one another. If the lift measure is one, then the RHS and LHS item(s) as often in transaction as they are expected to when the items have no relationship to one another. If the measure is less than one, then they occur less frequently together than would be expected if they were unrelated to one another (they "repulse" one another). If the measure is greater than one, then the LHS and RHS item(s) occur together more often then is expected by random chance. In general, we are interested in association rules that have a lift substantially greater then one. However, as this minimum lift criteria increases, we have fewer returned rules. A value of zero "turns-off" this filter, which is only applicable for association rules.
  • Maximum lift level for assoc. rules: This option set the upper bound of lift for rules or itemsets that will be inspected. One reason to set an upper bound is that high levels of lift may represent obvious and uninteresting rules or items sets (e.g., hot dogs and hot dog buns in a supermarket). A value of zero "turns-off" this filter, which is only applicable for association rules.
  • Sort association rules by: This option causes the returned association rules to be sorted by the user's choice of support, confidence, or lift values, which can assist in interpreting the rules.

Use the Graphics Options tab to set the controls for the graphical output.

  • Plot size: Select inches or centimeters for the size of the graph.
  • Graph resolution: Select the resolution of the graph in dots per inch: 1x (96 dpi); 2x (192 dpi); or 3x (288 dpi). Lower resolution creates a smaller file and is best for viewing on a monitor. Higher resolution creates a larger file with better print quality.

  • Base font size (points): Select the size of the font in the graph.

View the output

  • O anchor: The Output connection returns a data stream that contains the association rules or itemsets. In the case of association rules, the fields include:
    • LHS: A comma separated list of left-hand side item(s) in each rule.
    • RHS: A comma-separated list of right-hand side item(s) in each rule.
    • Support: The level of support for each rule.
    • Confidence: The level of confidence for each rule.
    • Lift The level of lift each rule possesses.
  • In the case of itemsets, the fields include:
    • Items: A comma separated list of items in each itemset.
    • Support
  • R anchor: The Report connection returns a set of report snippets, that include
    • A summary of the filters rules to develop the inspection report.
    • The rules or itemsets generated, the same information as returned via the Output connection.
    • Diagnostic plots to aid the user in understanding the relationships between different items and rules, one for itemsets or two for association rules.