Oracle Data Mining Java API Reference
10g Release 1 (10.1)

B12276-01

oracle.dmt.odm.model
Class ConditionalProbabilityExpression

java.lang.Object
  |
  +--oracle.dmt.odm.MiningObject
        |
        +--oracle.dmt.odm.model.ConditionalProbabilityExpression
All Implemented Interfaces:
java.io.Serializable

public class ConditionalProbabilityExpression
extends MiningObject

An instance of ConditionalProbabilityExpression contains the probability of a consequent conditioned on an array of antecedent values. The consequent can be thought of as a target value and the antecedents as predictors. This class is used in conjuction with the Adaptive Bayes Network algorithm.

The Bayes formula shows how to compute the probability of the target conditioned on the predictors in terms of the products of the predictors conditioned on the value of the target and, possibly other predictors. This is often easier to compute and is what AdaptiveBayesNetwork computes. In this form, the target can be one of the antecedents. ConditionalProbabilityExpression contain a consequent MiningAttribute, an array of antecedent MiningAttributes, a count, and a probability.

An example of a ConditionalProbabilityExpression is the probability that a person is in the top income bracket given that the person is age 45, female, married, and an attourney. The consequent is "income bracket = top". The antecedent attributes are "age=45", "sex = Female", "marital status = married", and "occupation = attourney". The count could be 25 out of a sample of 1,000 with a probability of 2.5%.

Since:
9.2.0
See Also:
Serialized Form

Constructor Summary
ConditionalProbabilityExpression()
           

 

Method Summary
 MiningAttribute[] getAntecedentMiningAttribute()
          Returns an array of antecedent MiningAttributes.
 MiningAttribute getConsequentMiningAttribute()
          Returns the consequent MiningAttribute.
 int getCount()
          Returns the count of entities meeting the antecedent and consequent conditions.
 Category getMiningAttributeValue(MiningAttribute miningAttribute)
          Returns the Category value associated with the mining attribute.
 float getProbability()
          Returns the conditional probability of the consequent.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ConditionalProbabilityExpression

public ConditionalProbabilityExpression()
Method Detail

getConsequentMiningAttribute

public MiningAttribute getConsequentMiningAttribute()
Returns the consequent MiningAttribute.
Returns:
The consequent mining attribute

getAntecedentMiningAttribute

public MiningAttribute[] getAntecedentMiningAttribute()
Returns an array of antecedent MiningAttributes.
Returns:
the array of antecedent mining attributes, null if none

getCount

public int getCount()
Returns the count of entities meeting the antecedent and consequent conditions.
Returns:
The count of entities meeting the antecedent and consequent conditions

getProbability

public float getProbability()
Returns the conditional probability of the consequent.
Returns:
the conditional probability of the consequent

getMiningAttributeValue

public Category getMiningAttributeValue(MiningAttribute miningAttribute)
Returns the Category value associated with the mining attribute.
Returns:
The Category value associated with the mining attribute

Copyright © 2003 Oracle Corporation. All Rights Reserved.