Export (0) Print
Expand All

PredictAdjustedProbability (DMX)

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Returns the adjusted probability of a specified state.

PredictAdjustedProbability(<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 adjusted probability for the missing states, set the <predicted state> to NULL.

The PredictAdjustedProbability function is a Microsoft SQL Server Analysis Services extension to the Microsoft OLE DB for Data Mining specification.

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

  [Bike Buyer],
  PredictAdjustedProbability([Bike Buyer]) AS [Adjusted Probability]
  [TM Decision Tree]
(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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft