\(\text{SampleSkew}\)

You can use the \(\text{SampleSkew}\) function to calculate the skew of a collection of basic values. Values can be provided as parameters or contained within a collection of iterable types.

You can use the \sskew backslash command to insert this function.

The following variants of this function are available:

  • \(\text{real } \text{SampleSkew} \left ( \ldots \right )\)

This function calculates the sample skew using the relationship:

\[\text{SampleSkew} \left ( X \right ) = \sqrt{ \frac{1}{N} \sum_{x \in X} \left ( \frac{x - \mu}{\sigma} \right ) ^ 3 }\]

Where \(\mu\) is the average value of the sample data and \(\sigma\) is the standard deviation of the sample data with Bessel’s correction applied.

Note that, like the \(text{Count}\) and \(\text{Average}\) functions, the \(\text{SampleSkew}\) you can use this function to traverse complex data strictures. The sample skew will be calculated from all scalar values contained within the structure.

Figure 198 shows the basic use of the \(\text{SampleSkew}\) function.

../_images/sample_skew_example.png

Figure 198 Example Use Of The SampleSkew Function