Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PredictProbability

Returns the probability for a specified state.


PredictProbability(<scalar column reference>, [<predicted state>])

A scalar column.

A scalar value.

If the predicted state is omitted, the state that has the highest predictable probability is used, excluding the missing states bucket. To include the missing states bucket, set the <predicted state> to INCLUDE_NULL.

To return the probability for the missing states, set the <predicted state> to NULL.

The following example uses a natural prediction join to determine whether an individual is likely to be a bike buyer based on the TM Decision Tree mining model, and also determines the probability for the prediction.

SELECT
  [Bike Buyer],
  PredictProbability([Bike Buyer], 1) AS [Bike Buyer Probability],
From
  [TM Decision Tree]
NATURAL PREDICTION JOIN
(SELECT 28 AS [Age],
  '2-5 Miles' AS [Commute Distance],
  'Graduate Degree' AS [Education],
  0 AS [Number Cars Owned],
  0 AS [Number Children At Home]) AS t

Community Additions

ADD
Show:
© 2015 Microsoft