SkewArray (Function)

image\trumpet2.gif Disclaimer

The SkewArray function calculates the skewness of a distribution for an array of values.

Syntax

SkewArray(PriceArray, Size)

Returns (Double)

A numeric value containing the skewness of a distribution for an array of values. If improper array sizing/reference occurs, the function will return a 0.

Parameters

Name

Type

Description

PriceArray

Numeric Array

Specifies the name of a numeric array containing values upon which the Skew is calculated.

Size

Numeric

Sets the number of data elements (size) in the array to evaluate.

Remarks

Skewness characterizes the degree of asymmetry of a distribution around its mean. Positive skewness indicates a distribution with an asymmetric tail extending toward more positive values. Negative skewness indicates a distribution with an asymmetric tail extending toward more negative values.

The value for the Size input parameter should always be a whole number greater than 0 and is typically equal to the number of data elements in the array.

The SkewArray function only works with one-dimensional arrays.  All array-based referencing begins with array element 1.

  This array function is similar to Skew except that you can build an array of values that does not necessarily include contiguous bar values.

Example

Assigns to Value1 the Skew factor of the specified named array MyArray with 40 elements.

Array: MyArray[40](0);

{… add EL statements here to assign price values to array elements... }

Value1 = SkewArray(MyArray,40);