Text Documents (Writer)
HTML Documents (Writer Web)
Spreadsheets (Calc)
Presentations (Impress)
Drawings (Draw)
Database Functionality (Base)
Formulae (Math)
Charts and Diagrams
Macros and Scripting
Office Installation
Common Help Topics
OneOffice Logo

Correlation

Calculates the correlation of two sets of numeric data.

To access this command...

Choose Data - Statistics - Correlation

The correlation coefficient (a value between -1 and +1) means how strongly two variables are related to each other. You can use the CORREL function or the Data Statistics to find the correlation coefficient between two variables.

A correlation coefficient of +1 indicates a perfect positive correlation.

A correlation coefficient of -1 indicates a perfect negative correlation

For more information on statistical correlation, refer to the corresponding Wikipedia article.

Data

Input Range: The reference of the range of the data to analyse.

Results to: The reference of the top left cell of the range where the results will be displayed.

Grouped By

Select whether the input data has columns or rows layout.

Example

The following data will be used as example

| | A | B | C | | | ---- | ----- | ------- | ------- | | 1 | Maths | Physics | Biology | | 2 | 47 | 67 | 33 | | 3 | 36 | 68 | 42 | | 4 | 40 | 65 | 44 | | 5 | 39 | 64 | 60 | | 6 | | 38 | 43 | | 7 | 47 | 84 | 62 | | 8 | 29 | 80 | 51 | | 9 | 27 | 49 | 40 | | 10 | 57 | 49 | 12 | | 11 | 56 | 33 | 60 | | 12 | 57 | | | | 13 | 26 | | |

The following table displays the results of the correlation of the sample data above.

Correlations Column 1 Column 2 Column 3
Column 1 1
Column 2 -0.4029254917 1
Column 3 -0.2107642836 0.2309714048 1