Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/davi-huanuco/python-matriz-correlacion/llms.txt

Use this file to discover all available pages before exploring further.

The Matriz view lets you visualize indicator data and compute pairwise Pearson correlation coefficients between all registered indicators. The correlation matrix helps you identify which indicators move together, in opposite directions, or independently.
To generate a meaningful correlation matrix you need at least two indicators, each with at least two shared non-null data points in the same months. If these conditions are not met, individual cells in the matrix display a dash (-) instead of a coefficient.

Generating the matrix

1

Open the Matriz view

Navigate to the Matriz section from the main navigation. The top of the page shows a summary table of all registered indicators with their codes and names.
2

Click Matriz de correlación

Click the Matriz de correlación button. The application calculates the Pearson r value for every pair of indicators and renders the results in a table below the button.

Reading the results

The correlation matrix is a square table where both rows and columns are labeled with indicator codes. Each cell contains the Pearson r value for the pair formed by that row’s indicator and that column’s indicator.
  • The diagonal (where row and column share the same indicator) always shows 1.00.
  • A dash (-) appears when there are fewer than two valid paired data points for that combination — for example, if one indicator has data only for months where the other has nulls.
Use these guidelines to interpret r values:
  • r near 1 — strong positive relationship: both indicators tend to increase together.
  • r near −1 — strong negative relationship: when one increases, the other tends to decrease.
  • r near 0 — little or no linear relationship between the two indicators.
Values above 0.7 or below −0.7 are generally considered strong correlations in most performance analysis contexts.

How the coefficient is calculated

The application computes the standard Pearson product-moment correlation coefficient. For each pair of indicators, it collects the months where both have non-null numeric values, then applies the formula:
r = Σ[(a − ā)(b − b̄)] / √[Σ(a − ā)² × Σ(b − b̄)²]
Where a and b are the paired value lists and ā, are their respective means. If the denominator is zero (all values are identical), the result is shown as -.

Build docs developers (and LLMs) love