def gen_ordered_statistics(transaction_manager, record):
items = record.items<EOL>for combination_set in combinations(sorted(items), len(items) - <NUM_LIT:1>):<EOL><INDENT>items_base = frozenset(combination_set)<EOL>items_add = frozenset(items.difference(items_base))<EOL>confidence = (<EOL>record.support / transaction_manager.calc_support(items_base))<EOL>lift = confidence / transaction_manager.calc_support(items_add)<EOL>yield OrderedStatistic(<EOL>frozenset(items_base), frozenset(items_add), confidence, lift)<EOL><DEDENT>
Returns a generator of ordered statistics as OrderedStatistic instances.

Arguments:
    transaction_manager -- Transactions as a TransactionManager instance.
    record -- A support record as a SupportRecord instance.