Logo

XLeratorDB/Statistical Functions Documentation

FUNCTION REFERENCE - Statistical Functions FUNCTIONS

Continuous Data
AVEDEV

Calculate average deviation.

Read more
AVEDEV_q

Calculate average deviation.

Read more
AVERAGE

Calculate the average (arithmetic mean) of a dataset.

Read more
AVERAGE_q

Calculate the average (arithmetic mean) of a dataset.

Read more
COUNT

Calculate the count of numeric rows in a dataset.

Read more
COUNT_q

Calculate the count of numeric rows in a dataset.

Read more
COVAR

the average of the products of the deviations in known x- and y-values

Read more
COVAR_q

Calculate covariance.

Read more
COVARIANCE_P

Aggregate function to calculate the population covariance

Read more
COVARIANCE_S

Aggregate function to calculate the sample covariance

Read more
DEVSQ

Calculate deviation squared.

Read more
DEVSQ_q

Calculate deviation squared.

Read more
GEOMEAN

Calculate the geometric mean of a dataset.

Read more
GEOMEAN_q

Calculate the geometric mean of a dataset.

Read more
HARMEAN

Calculate the harmonic mean of a dataset.

Read more
HARMEAN_q

Calculate the harmonic mean of a dataset.

Read more
IPR

Calculate inter-percentile range.

Read more
IQR

Calculate inter-quartile range.

Read more
KURT

Calculate the kurtosis of a dataset.

Read more
KURT_q

Calculate the kurtosis of a dataset.

Read more
KURTOSIS_P

Calculate population kurtosis.

Read more
KURTOSIS_S

Calculate sample kurtosis.

Read more
LARGE

calculate the kth largest value in a dataset

Read more
LARGE_q

Calculate the kthlargest value in a dataset.

Read more
MEDIAN

calculate the median of a dataset

Read more
MEDIAN_q

Calculate the median value in a dataset.

Read more
MODE

Calculate the mode (most frequent value) of a dataset.

Read more
MODE_q

Calculate the mode (most frequent value) of a dataset.

Read more
PERCENTILE

Aggregate function to calculate a percentile using the 'INC' method

Read more
PERCENTILE_EXC

Calculate percentile.

Read more
PERCENTILE_q

Calculate percentile.

Read more
PERCENTILES

table-valued function to calculate one or many percentile values from a single dataset

Read more
PERCENTRANK

Aggregate function to calculate a percent rank using the 'INC' method

Read more
PERCENTRANK_EXC

Calculate the rank of a value in dataset

Read more
PERCENTRANK_q

Calculate the rank of a value in a dataset as a percentage of the dataset.

Read more
PERCENTRANKS

Calculate the relative standing of values within a dataset.

Read more
QUARTILE

Calculate the specified quartile of a dataset.

Read more
QUARTILE_EXC

Return the specified quartile of a dataset

Read more
QUARTILE_q

Calculate the specified quartile of a dataset.

Read more
RANGE

Calculate the difference between the minimum and maximum values in a dataset.

Read more
RANK

Return the rank of a number in a list of numbers.

Read more
RANK_q

Return the rank of a number in a list of numbers.

Read more
RANKAVG

Return the average rank of a number in a list of numbers.

Read more
SKEW

Return the degree of asymmetry of a distribution.

Read more
SKEW_q

Return the degree of asymmetry of a distribution.

Read more
SKEWNESS_P

Calculate the skewness for an entire population.

Read more
SKEWNESS_S

Calculate the sample skewness.

Read more
SMALL

Calculate the kth smallest value in a dataset.

Read more
SMALL_q

Calculate the kth smallest value in a dataset.

Read more
STDEV

Return the estimated standard deviation based on a sample.

Read more
STDEV_P

Calculate the standard deviation for an entire population.

Read more
STDEV_q

Return the estimated standard deviation based on a sample.

Read more
STDEV_S

Return the estimated standard deviation based on a sample.

Read more
STDEVP

Return the standard deviation for an entire population.

Read more
STDEVP_q

Return the standard deviation for an entire population.

Read more
TRIMMEAN

Calculate the mean of the interior of a dataset.

Read more
TRIMMEAN_q

Calculate the mean of the interior of a dataset.

Read more
VAR

Estimate variance based on a sample, or use VAR to estimate the population variance from a sample of N elements with an unknown mean (the mean being calculated from the sample itself).

Read more
VAR_P

Calculate the variance for an entire population.

Read more
VAR_q

Estimate variance based on a sample.

Read more
VAR_S

Estimate variance based on a sample, or use VAR_S to estimate the population variance from a sample of N elements with an unknown mean (the mean being calculated from the sample itself).

Read more
VARP

Return the variance for an entire population.

Read more
VARP_q

Calculate population variance.

Read more
Combinatorics
BETA

Beta function

Read more
BETAI

Incomplete beta function

Read more
BICO

Binomial coefficient

Read more
FACTLN

natural logarithm of a factorial

Read more
FACTORIALPOWER

the step-h factorial power x(n,h)

Read more
GAMMA

complete gamma function

Read more
GAMMAINC

incomplete gamma function

Read more
GAMMALN

natural logarithm of the complete gamma function

Read more
LCHOOSE

Natural logarithm of the binomial coefficient

Read more
LPERMUT

Calculate the natural logarithm of the PERMUT function.

Read more
LPERMUTA

calculate the natural logarithm of the PERMUTATIONA function.

Read more
MULTINOM

calculate the probability distribution of the outcomes of a multinomial experiment.

Read more
PERMUT

calculate the number of permutations for a given number objects that can be selected from a number of objects

Read more
PERMUTATIONA

number of permutations with repetition

Read more
STIRLING1

Stirling numbers of the first kind

Read more
STIRLING2

Calculate a Stirling Number of the second kind.

Read more
Distributions
BETA_DIST

Calculate pdf or cdf of beta distribution

Read more
BETADIST

beta distribution

Read more
BETAINV

Inverse of the beta distribution

Read more
BETAPDF

Probability density function of the beta distribution

Read more
BINOM_DIST_RANGE

Calculate the probability of a trial result using a binomial distribution.

Read more
BINOMDIST

Binomial distribution

Read more
BINOMINV

Inverse (quantile) of the binomial distribution

Read more
BIVAR

bi-variate normal distribution

Read more
CAUCHY

Calculate the probability density function or the lower cumulative distribution function of the Cauchy distribution.

Read more
CAUCHYINV

Calculate the inverse lower cumulative distribution of the Cauchy distribution.

Read more
CHI2NC

Calculate the lower cumulative distribution function of the non-central chi-square distribution.

Read more
CHI2NCINV

Calculate the inverse of the lower cumulative distribution function of the non-central chi-square distribution.

Read more
CHIDIST

chi-square distribution

Read more
CHIINV

Calculate the inverse of the one-tailed probability of the chi-square distribution.

Read more
CHISQ_DIST

Lower chi-squared distribution

Read more
CHISQ_DIST_RT

Upper chi-squared distribution

Read more
CHISQ_INV

Inverse of the chi-squared distribution

Read more
CHISQ_INV_RT

Calculate the inverse of the right-tailed probability of a chi-squared distribution.

Read more
CHISQPDF

Calculate the probability density function of the chi square distribution.

Read more
CONFIDENCE

Calculate a value that you can use to construct a confidence interval for a population mean.

Read more
CONFIDENCE_NORM

Confidence interval using the standard normal distribution

Read more
CONFIDENCE_T

Calculate a confidence interval when you don't know the population standard deviation and are using the sample standard deviation instead.

Read more
CRITBINOM

Calculate the smallest value for the cumulative binomial distribution that is greater than or equal to a criterion value.

Read more
DIGAMMA

Calculate digamma(z), the logarithmic derivative of the gamma function.

Read more
EXPDIST

Calculate the probability density function or the upper cumulative distribution function of the Exponential distribution.

Read more
EXPINV

Calculate the inverse of the cumulative distribution function of the exponential distribution.

Read more
EXPONDIST

Calculate an exponential distribution that is equivalent to the function used in EXCEL.

Read more
F_DIST

Lower F distribution

Read more
F_DIST_RT

Upper F distribution

Read more
F_INV

Inverse of the lower-tailed F distribution

Read more
F_INV_RT

Calculate the inverse of the F upper probability distribution.

Read more
FDIST

Calculate the F probability distribution.

Read more
FINV

Calculate the inverse of the F probability distribution.

Read more
FISHER

the Fisher transformation at x

Read more
FISHERINV

the inverse Fisher transformation

Read more
FPDF

Calculate the probability density function of the F distribution.

Read more
GAMMADIST

gamma distribution

Read more
GAMMAINV

inverse gamma function

Read more
GAMMAP

lower regularized gamma function

Read more
GAMMAQ

upper regularized gamma function

Read more
GEOMETRIC

Calculate the probability mass function of the geometric distribution.

Read more
GEOMETRICINV

Calculate the inverse of the cumulative distribution function of the geometric distribution.

Read more
GEOMETRICP

Calculate the cumulative distribution function of the geometric distribution.

Read more
HYPGEOM_DIST

Hypergeometric distribution

Read more
HYPGEOM_INV

Inverse of the hypergeometric distribution

Read more
HYPGEOMDIST

Calculate the hypergeometric distribution.

Read more
HYPGEOMDISTP

Calculate the lower cumulative distribution of the hypergeometric function.

Read more
HYPGEOMDISTPINV

Calculate the inverse of the cumulative distribution function of the hypergeometric distribution.

Read more
HYPGEOMDISTQ

Calculate the upper cumulative distribution of the hypergeometric function.

Read more
INVGAMMAP

Calculate the inverse of the incomplete gamma functionP(a,x).

Read more
KSccdf

Compute the complementary cumulative probability P[Dn>= x] of the Kolmogorov-Smirnov distribution with sample size n at x.

Read more
KScdf

Compute the cumulative probability P[Dn>= x] of the Kolmogorov-Smirnov distribution with sample size n at x.

Read more
KSP

Calculate the Kolmogorov-Smirnov (KS) cumulative distribution function.

Read more
KSPINV

Calculate the inverse of the Kolmogorov-Smirnov (KS) cumulative distribution function.

Read more
KSQ

Calculate the complementary Kolmogorov-Smirnov (KS) cumulative distribution function, Qks= 1 - Pks.

Read more
KSQINV

Calculate the inverse of the complementary Kolmogorov-Smirnov (KS) cumulative distribution function, Qks= 1 - Pks.

Read more
LAPLACE

Calculate the probability density function or the lower cumulative distribution function of the Laplace distribution.

Read more
LAPLACEINV

Calculate the inverse lower cumulative distribution of the Laplace distribution.

Read more
LOGINV

Calculate the inverse of the lognormal cumulative distribution function of x where ln(x) is normally distributed within the parameters mean and standard deviation.

Read more
LOGISTIC

Calculate the probability density function or the lower cumulative distribution function of the logistic distribution.

Read more
LOGISTICINV

Calculate the inverse lower cumulative distribution of the logistic distribution.

Read more
LOGNORM_DIST

Lognormal distribution

Read more
LOGNORM_INV

Calculate the inverse of the lognormal distribution function of x, when ln(x) is normally distributed with parameters µ and s.

Read more
LOGNORMDIST

Calculate the lognormal cumulative distribution function of x where ln(x) is normally distributed within the parameters mean and standard deviation.

Read more
LOGNORMPDF

Calculate the probability density function of the lognormal distribution.

Read more
NCFCDF

Calculate the lower cumulative distribution function of the non-central F distribution.

Read more
NCFINV

Calculate the inverse of the lower cumulative distribution function of the non-central F distribution.

Read more
NCFPDF

Calculate the probability density function of the non-central F distribution.

Read more
NCHISQPDF

Calculate the probability density function of the non-central chi square distribution.

Read more
NCTCDF

Calculate the lower cumulative distribution function of the non-central T distribution.

Read more
NCTINV

Calculate the inverse of the lower cumulative distribution function of the non-central T distribution.

Read more
NCTPDF

Calculate the probability density function of the non-central T distribution.

Read more
NEGBINOM_DIST

Negative binomial distribution

Read more
NEGBINOMDIST

Negative binomial distribution

Read more
NEGBINOMDISTP

Negative binomial distribution (pdf)

Read more
NEGBINOMINV

Inverse of the negative binomial distribution

Read more
NEGHYPGEOM_DIST

Negative hypergeometric distribution

Read more
NEGHYPGEOM_INV

Calculate the quantiles of the negative hypergeometric distribution.

Read more
NORM_S_DIST

Calculate the probability density function or the lower cumulative distribution function of the standard normal distribution in SQL Server.

Read more
NORMAL

probability density function of the standard normal distribution

Read more
NORMDIST

Normal distribution

Read more
NORMINV

Inverse of the normal distribution

Read more
NORMSDIST

standard normal distribution

Read more
NORMSINV

Inverse of the standard normal distribution

Read more
POISSON

Calculate the Poisson distribution.

Read more
POISSON_DIST

Poisson distribution

Read more
POISSONINV

The poisson inverse function

Read more
STANDARDIZE

normalized value from a distribution for a specified mean and standard deviation

Read more
STUDENTST

Calculate Student’st-distribution.

Read more
T_DIST

Calculate the probability density function and the left-tailed cumulative probability distribution of Student's t-distribution.

Read more
T_DIST_2T

Calculate the two-tailed cumulative probability distribution of Student's t-distribution.

Read more
T_DIST_RT

Calculate the right-tailed cumulative probability distribution of Student's t-distribution.

Read more
T_INV

Inverse of student's t distribution

Read more
T_INV_2T

Calculate the inverse of the two-tailed distribution of Student's t-distribution.

Read more
TDIST

Calculate the probability for the Studentt-distribution where a numeric value (x) is a calculated value oftfor which the probability is to be computed.

Read more
TINV

The inverse t distribution function

Read more
TPDF

Calculate the probability density function of the T distribution.

Read more
TRIGAMMA

trigamma function; the second derivative of the gamma function

Read more
UNIFORM

Calculate the probability density function or the lower cumulative distribution function of the uniform distribution.

Read more
UNIFORMINV

Calculate the inverse of the lower cumulative distribution of the uniform distribution.

Read more
WEIBULL

Calculate the Weibull distribution.

Read more
WEIBULLINV

The inverse Weibull distribution function

Read more
Statistical Inference
CHISQ

Calculate the chi-square statistic.

Read more
CHISQ_q

Calculate the chi-square statistic.

Read more
CHISQ2

Calculate the chi-square statistic.

Read more
CHISQ2_q

Calculate the chi-square statistic.

Read more
CHISQN

Calculate the chi-square statistic for data in third-normal form.

Read more
CHISQN_q

Calculate the chi-square statistic for data in third-normal form.

Read more
CHISQN2

Calculate the chi-square statistic for data in third-normal form.

Read more
CHISQN2_q

Calculate the chi-square statistic for data in third-normal form.

Read more
CHITEST

Calculate the Pearson chi-square test for independence.

Read more
CHITEST_q

Calculate the Pearson chi-square test for independence.

Read more
CHITEST2

Calculate the Pearson chi-square test for independence.

Read more
CHITEST2_q

Calculate the Pearson chi-square test for independence.

Read more
CHITESTN

Calculate the Pearson chi-square test for independence on data in third-normal form.

Read more
CHITESTN_q

Calculate the Pearson chi-square test for independence on data in third-normal form.

Read more
CHITESTN2

Calculate the Pearson chi-square test for independence on data in third-normal form.

Read more
CHITESTN2_q

Calculate the Pearson chi-square test for independence on data in third-normal form.

Read more
FTEST

Return the result of an F-test.

Read more
FTEST_q

Return the result of an F-test.

Read more
KSTEST

Compare a sample with a reference probability distribution.

Read more
KSTEST_q

Compare a sample with a reference probability distribution.

Read more
KSTEST2

Perform the two-sample Kolmogorov-Smirnov test to compare the distributions of the values in two samples.

Read more
KSTEST2_q

Perform the two-sample Kolmogorov-Smirnov test to compare the distributions of the values in two samples.

Read more
SFTEST

Perform the Shapiro-Francia test for the composite hypothesis of normality.

Read more
SFTEST_q

Perform the Shapiro-Francia test for the composite hypothesis of normality.

Read more
SWTEST

Compute Shapiro and Wilk’s W statistic and its p-value.

Read more
SWTEST_q

Compute Shapiro and Wilk’s W statistic and its p-value.

Read more
TTEST

Calculate the probability associated with Student’st-test.

Read more
TTEST_INDEP

Perform a t-test on data in two samples assuming equal variance.

Read more
TTEST_INDEPU

Perform a t-test on data in two samples assuming unequal variance.

Read more
TTEST_PAIRED

Perform a t-test on data in two samples assuming unequal variance.

Read more
TTEST_q

Calculate the probability associated with Student’s t-test.

Read more
ZTEST

one-tailed probability-value of a z-test (SQL Server 2008 and 2012 version)

Read more
ZTEST_q

Calculate the one-tailed probability of a Z-test.

Read more
Correlation And Regression Analysis
CORREL

Aggregate function to calculate the correlation coefficient

Read more
CORREL_q

Calculate the correlation coefficient between two datasets.

Read more
EXPPRED

Calculate the predicted value for a dependent variable using the coeffiecients from a previously run mutlivariate exponential regression.

Read more
FORECAST

The predicted y-value for a given x-value

Read more
FORECAST_q

Calculate a future value by using existing values.

Read more
GROWTH

calculate predicted exponential growth using existing values

Read more
GROWTH_q

Calculate predicted exponential growth by using existing data.

Read more
GROWTHMX

Values along an exponential trend

Read more
GROWTHMX_q

Calculate values along an exponential trend for multiple x values

Read more
INTERCEPT

the point at which a line will intersect the y-axis by using existing x-values and y-values

Read more
INTERCEPT_q

Calculate the point at which a line will intersect the y-axis by using existing x-values and y-values.

Read more
LINEST

the Ordinary Least Squares (OLS) solution for a series of x-values and y-values

Read more
LINEST_q

the Ordinary Least Squares (OLS) solution for a series of x-values and y-values

Read more
LMPRED

Calculate the predicted value for a dependent variable using the coefficients from a previously run multivariate linear regression.

Read more
LOGEST

Logarithmic regression

Read more
LOGEST_q

Exponential curve that best fits a series of x- and y-values

Read more
LOGIT

Logit regression

Read more
LOGITPRED

Calculate predicted values based on a logit regression

Read more
LOGITPROB

Calculate the probability that Y = 1 given a set of coefficients from a logistic regression

Read more
LOGITSUM

Logit regression using summary data

Read more
PEARSON

Aggregate function to calculate the correlation coefficient

Read more
PEARSON_q

Return the Pearson product-moment coefficient between two datasets.

Read more
PROB

Calculate the probability that values in a range are between two limits.

Read more
PROB_q

Calculate the probability that values in a range are between two limits.

Read more
ROCTable

Show the calculation of the area under the ROC curve.

Read more
RSQ

the Pearson product moment correlation coefficient through data points in known-y’s and known-x’s

Read more
RSQ_q

Return the Pearson product moment correlation coefficient through data points in known-y’s and known-x’s.

Read more
SLOPE

slope of the linear regression through the data points in the known x-values and y-values

Read more
SLOPE_q

Calculate the slope of the linear regression through the data points in the known x-values and y-values.

Read more
TREND

for simpler queries

Read more
TREND_q

Calculate the values along a linear trend.

Read more
TRENDMX

Calculate the values along a linear trend for multiple x values

Read more
TRENDMX_q

Calculate the values along a linear trend for multiple x values

Read more
VIF

Variance inflation factors

Read more
WLS

Calculate a weighted least squares (WLS) solution for a series of x- and y-values and their associated weights.

Read more
WLS_q

Calculate a weighted least squares (WLS) solution for a series of x- and y-values and their associated weights.

Read more
LLS_q

the Ordinary Least Squares (OLS) solution for a series of x-values and y-values including a tolerance parameter for collinearity

Read more
Interobserver Agreement
ICC

Calculate the intra-class coefficient.

Read more
ICC_TV

Calculate the intra-class coefficient.

Read more
KAPPA_COHEN

Calculate Cohen’s kappa () or weighted kappa as an index of inter-rater agreement between 2 raters.

Read more
KAPPA_COHEN_TV

Calculate Cohen’s kappa () or weighted kappa as an index of inter-rater agreement between 2 raters.

Read more
KAPPA_FLEISS

Calculate Fleiss’ kappa () as an index of inter-rater agreement betweenmraters on categorical data.

Read more
KAPPA_FLEISS_TV

Calculate Fleiss’ kappa () as an index of inter-rater agreement between m raters on categorical data.

Read more
KENDALLT

Calculate Kendall’s tau (t), a non-parametric measure of association based on the number of concordances and discordances in paired observations.

Read more
KENDALLT_TV

Calculate Kendall’s tau (t), a non-parametric measure of association based on the number of concordances and discordances in paired observations.

Read more
KENDALLW

Calculate Kendall’s coefficient of concordance (w) as an index of inter-rater reliability for ordinal data.

Read more
KENDALLW_TV

Calculate Kendall’s coefficient of concordance (w) as an index of inter-rater reliability for ordinal data.

Read more
MCNEMAR

Perform McNemar’s chi-squared test for symmetry of rows and columns in a two-dimensional contingency table.

Read more
MCNEMAR_TV

Perform McNemar’s chi-squared test for symmetry of rows and columns in a two-dimensional contingency table.

Read more
PSIGNRANK

Calculate the distribution function of the Wilcoxon Signed Rank statistic.

Read more
RANK_AVG

Calculate the ranks for a collection of x- and y-values.

Read more
SPEARMAN

Calculate Spearman’s rank correlation coefficient ().

Read more
SPEARMAN_TV

Calculate Spearman’s rank correlation coefficient ().

Read more
WMPSR

Calculate the Wilcoxon matched-pair signed-rank test.

Read more
WMPSR_TV

Calculate the Wilcoxon matched-pair signed-rank test.

Read more
Data Collection
KMEANS

Perform k-means clustering in N-dimensions.

Read more
STEYX

the standard error of the predicted y-value for each x in the regression

Read more
STEYX_q

Return the standard error of the predicted y-value for each x in a regression.

Read more