# 3.5.2.40 Skew

## Description

Skewness is used to measure the degree of asymmetry of a distribution around its mean. A positive value indicates a distribution with an asymmetric tail extending toward more positive values, and a negative value indicates a negative tail. This function calculates the skewness of a distribution.

## Syntax

double Skew(dataset ds)

## Parameters

ds

The dataset for calculating skewness.

## Return

Return the skewness of a distribution.

## Example

double dSkewness = skew(col(a));
dSkewness = ;

range rr = col(a);
skew(rr) = ;

dataset ds = {1, 2, 3, 2, 3, 4, 5, 6, 4, 8};
skew(ds) = ;  // 0.7801057548373