VAR and VARP

Variance is a very important statistical measure that shows how much certain items are scattered on a numerical axis. Mathematically, it follows this formula:

The preceding formula is for the variance over the whole of a statistical population, and the following formula is for the variance over a sample of a statistical population:

What do the letters in the preceding formulas mean?

  • N is the number of items in a dataset
  • i is an item index
  • xi is the value of a certain item
  • X is a mean

Both formulas are implemented in SQL Server. ...

Get Hands-On Data Science with SQL Server 2017 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.