<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    無為

    無為則可為,無為則至深!

      BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
      190 Posts :: 291 Stories :: 258 Comments :: 0 Trackbacks

    References:

    • T. Mitchell, 1997.
    • R. Myers, R. Walpole, "Tests of Hypotheses", in R. Myers, R. Walpole, Probability and Statistics for Engineers and Scientists, Second Edition, Macmillan Publishing Co., Inc., New York, NY, 1978, pp. 268 - 273.
    • P. Winston, 1992.

    Rule Generation

    Once a decision tree has been constructed, it is a simple matter to convert it into an equivalent set of rules.

    Converting a decision tree to rules before pruning has three main advantages:

    1. Converting to rules allows distinguishing among the different contexts in which a decision node is used.
      • Since each distinct path through the decision tree node produces a distinct rule, the pruning decision regarding that attribute test can be made differently for each path.
      • In contrast, if the tree itself were pruned, the only two choices would be:
        1. Remove the decision node completely, or
        2. Retain it in its original form.
    2. Converting to rules removes the distinction between attribute tests that occur near the root of the tree and those that occur near the leaves.
      • We thus avoid messy bookkeeping issues such as how to reorganize the tree if the root node is pruned while retaining part of the subtree below this test.
    3. Converting to rules improves readability.
      • Rules are often easier for people to understand.

    To generate rules, trace each path in the decision tree, from root node to leaf node, recording the test outcomes as antecedents and the leaf-node classification as the consequent.

    Rule Simplification Overview

    Once a rule set has been devised:

    1. Eliminate unecessary rule antecedents to simplify the rules.
      • Construct contingency tables for each rule consisting of more than one antecedent.
        • Rules with only one antecedent cannot be further simplified, so we only consider those with two or more.
      • To simplify a rule, eliminate antecedents that have no effect on the conclusion reached by the rule.
      • A conclusion′s independence from an antecendent is verified using a test for independency, which is
        • a chi-square test if the expected cell frequencies are greater than 10.
        • Yates′ Correction for Continuity when the expected frequencies are between 5 and 10.
        • Fisher′s Exact Test for expected frequencies less than 5.
    2. Eliminate unecessary rules to simplify the rule set.
      • Once individual rules have been simplified by eliminating redundant antecedents, simplify the entire set by eliminating unecessary rules.
      • Attempt to replace those rules that share the most common consequent by a default rule that is triggered when no other rule is triggered.
        • In the event of a tie, use some heuristic tie breaker to choose a default rule.

    Contingency Tables

    The following is a contingency table, a tabular representation of a rule.

    ? C1 C2 Marginal Sums
    R1 x11 x12 R1T = x11 + x12
    R2 x21 x22 R2T = x21 + x22
    Marginal Sums CT1 = x11 + x21 CT2 = x12 + x22 T = x11 + x12 + x21 + x22

    R1 and R2 represent the Boolean states of an antecedent for the conclusions C1 and C2
    (C2 is the negation of C1).
    x11, x12, x21 and x22 represent the frequencies of each antecedent-consequent pair.
    R1T, R2T, CT1, CT2 are the marginal sums of the rows and columns, respectively.

    The marginal sums and T, the total frequency of the table, are used to calculate expected cell values in step 3 of the test for independence.

    Test for Independence

    Given a contingency table of dimensions r by c (rows x columns):

    1. Calculate and fix the sizes of the marginal sums.

    2. Calculate the total frequency, T, using the marginal sums.

    3. Calculate the expected frequencies for each cell.

      The general formula for obtaining the expected frequency of any cell xij, 1ir, 1jc in a contingency table is given by:

      where RiT and CTj are the row total for ith row and the column total for jth column.

    4. Select the test to be used to calculate based on the highest expected frequency, m:

      if then use
      m 10 Chi-Square Test
      5 m 10 Yates′ Correction for Continuity
      m 5 Fisher′s Exact Test

      ?

    5. Calculate using the chosen test.

    6. Calculate the degrees of freedom.

      df = (r - 1)(c - 1)

    7. Use a chi-square table with and df to determine if the conclusions are independent from the antecedent at the selected level of significance, .
      • Assume = 0.05 unless otherwise stated.

      • If
        • Reject the null hypothesis of independence and accept the alternate hypothesis of dependence.
          • We keep the antecedents because the conclusions are dependent upon them.
      • If
        • Accept the null hypothesis of independence.
          • We discard the antecedents because the conclusions are independent from them.

    Chi-Square Formulae

    • Chi-Square Test

    • Yates′ Correction for Continuity

    • Fisher′s Exact Test

      See Winston, pp. 437-442 for an explanation of Fisher′s exact test.

    ?

    Click here for an exercise in decision tree pruning.

    ?

    Decision Lists

    A decision list is a set of if-then statements.

    It is searched sequentially for an appropriate if-then statement to be used as a rule.



    凡是有該標志的文章,都是該blog博主Caoer(草兒)原創,凡是索引、收藏
    、轉載請注明來處和原文作者。非常感謝。

    posted on 2006-06-24 13:31 草兒 閱讀(1200) 評論(0)  編輯  收藏 所屬分類: BI and DM
    主站蜘蛛池模板: 中文字幕不卡免费视频| 日本不卡免费新一区二区三区| 国产国产人免费视频成69大陆| 亚洲人成网站在线播放2019| 久久精品国产精品亚洲色婷婷| 1000部拍拍拍18免费网站| 国产大片免费天天看| 苍井空亚洲精品AA片在线播放| 日本亚洲国产一区二区三区| 在线播放高清国语自产拍免费| 一出一进一爽一粗一大视频免费的| 亚洲AV无码专区国产乱码电影 | 成人免费ā片在线观看| 亚洲GV天堂无码男同在线观看| 久久激情亚洲精品无码?V| 99ee6热久久免费精品6| 十八禁在线观看视频播放免费| 亚洲AV成人无码天堂| 久久亚洲精品国产精品| 麻豆国产人免费人成免费视频| 亚洲阿v天堂在线2017免费| 校园亚洲春色另类小说合集| 亚洲国产成人片在线观看无码| 成年免费大片黄在线观看岛国| 人人爽人人爽人人片av免费| 国产精品亚洲综合| 亚洲爆乳精品无码一区二区| 亚洲欧美日韩中文二区| 亚洲熟妇AV乱码在线观看| 亚洲成a人片在线看| 亚洲精品二三区伊人久久| 亚洲日本一区二区一本一道| 一本久到久久亚洲综合| 亚洲国产精品激情在线观看 | 亚洲狠狠婷婷综合久久| 国产亚洲精品成人AA片| 国产啪亚洲国产精品无码| www.亚洲精品| 国产偷窥女洗浴在线观看亚洲| 免费无码A片一区二三区| 免费无码AV电影在线观看|