@CORRELATION

English (Español a continuación)

This function allows to calculate the correlation coefficient between two data series.

Its structure consists of 3 parts:

  • @CORRELATION (A, B, C);

Part «A»: determines the treatment given to members that are zero or missing (no data). There are 4 options:

  • SKIPNONE: It takes into account all the values ​​of the defined series for the calculation of the correlation coefficient.
  • SKIPMISSING: For the calculation of the correlation coefficient exclude those members that do not have data.
  • SKIPZERO: For the calculation of the correlation coefficient exclude those members that have zero value.
  • SKIPBOTH: For the calculation of the correlation coefficient exclude those members that have zero value or that have no data.

Part «B»: defines the first series of data.

Part «C»: defines the second series of data.

These two series can be defined as a list of members: @LIST (Jan, Feb, Mar …) or through a range function: @RANGE (), @XRANGE () …

  • It is important that the two series contain the same number of data.

Let’s see an example:

We calculate the correlation between the sales of these two years:

We obtain this result:

  • «Coef_corr» = 0.914

Let’s see another example: now we are going to calculate the correlation between the following data series:

We apply the following function:

Obtaining the following result:

  • «Coef_corr» = 0.918

ATTENTION: note how the ranges are defined:

The next definition of the ranges is not correct:

We would obtain the following result:

  • «Coef_corr» = 0.246

It may be interesting to verify that the route that essbase makes through the outline is the one we are looking for; for this we can count the number of elements included in the range.

If we apply the function:

The result is 12, which is correct (the number of months in the year).

Instead if we apply the function:

The result is 23, which is not what we are looking for. The problem is that if we define the ranges in this way, essbase does the following route:

The problem is that essbase does not give an error message (because there is no formulation error, simply that the definition of the range is not correct), so it may be interesting to check the essbase data with a calculation in Excel.

Any question, please send an email to: essbaseeasy@gmail.com

Español

Esta función permite calcular el coeficiente de correlación entre dos series de datos.

Su estructura consta de 3 partes:

@CORRELATION(A,B,C);

Parte “A”: determina el tratamiento que se da a los miembros que son cero o missing (sin dato). Caben 4 opciones:

  • SKIPNONE: Tiene en cuenta todos los valores de la serie definida para el cálculo del coeficiente de correlación.
  • SKIPMISSING: Para el cálculo del coeficiente de correlación excluye aquellos miembros que no tengan datos.
  • SKIPZERO: Para el cálculo del coeficiente de correlación excluye aquellos miembros que tengan valor cero.
  • SKIPBOTH: Para el cálculo del coeficiente de correlación excluye aquellos miembros que tengan valor cero o que no tengan datos.

Parte “B”: recoge la primera serie de datos.

Parte “C”: recoge la segunda serie de datos.

Estas dos series se pueden definir como una lista de miembros: @LIST(ene, feb, mar…)

O mediante una range function: @RANGE(), @XRANGE()…

Es imprescindible que las dos series contengan el mismo número de datos.

Veamos un ejemplo:

Calculamos la correlación entre las ventas de estos dos años:

Obtenemos como resultado:

“Coef_corr” = 0,914

Veamos otro ejemplo: ahora vamos a calcular la correlación entre las siguientes series de datos:

Aplicamos la siguiente función:

Obteniendo el siguiente resultado:

“Coef_corr” = 0,918

ATENCIÓN: fíjense como están definidos los rangos:

No es correcta la definición de los rangos:

Obtendríamos el siguiente resultado:

“Coef_corr” = 0,246

Puede ser interesante verificar que el recorrido que hace essbase por el outline es el que buscamos; para ello podemos contar el número de elementos que incluye en el rango.

Si aplicamos la función:

El resultado es 12, que es correcto (el número de meses del año).

En cambio si aplicamos la función:

El resultado es 23, que no es lo que buscamos. El problema es que si definimos los rangos de esta manera essbase hace el siguiente recorrido:

El riesgo es que essbase no da un mensaje de error (porque no hay un error de formulación, simplemente que la definición del rango no es correcta), por eso puede ser interesante chequear el dato de essbase con un cálculo en Excel.  

Cualquier consulta envía, por favor, un correo a: essbaseeasy@gmail.com

Anuncio publicitario