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

PredictVariance (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 variance of a specified column.

PredictVariance(<scalar column reference>)

A scalar column.

A scalar value of the type that is specified by <scalar column reference>.

If the column reference is discrete, PredictVariance returns 0 because the variance cannot be calculated from discrete values.

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 variance for the prediction.

  [Bike Buyer],
  PredictVariance([Bike Buyer]) AS [Variance]
  [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