Skip to content
 
 

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Correlation Graph Visualization (GraphLation)

This repository presents a Python-based approach to construct and visualize correlation graphs using numerical variables. Pairwise Pearson correlation coefficients are used to weight the edges, and the resulting network is rendered using NetworkX and Matplotlib.

Purpose

To facilitate exploratory analysis by representing linear associations between variables as a weighted undirected graph. This allows immediate identification of key variables and their interaction structure.

Example: Synthetic Dataset

The dataset used in the example is synthetically generated to emulate variables with varying degrees of correlation. Each pair was manually defined to exhibit moderate to strong linear relationships.

Graph 1: Main Connected Component

  • Node border color is determined by node degree (i.e., the number of edges connected to the variable).
  • Edge transparency (alpha) reflects the absolute value of the Pearson correlation coefficient.
  • Correlation values are printed at the center of each edge for interpretability.

The variable with the highest degree is placed centrally in the layout.

Graph 2: Tertiary Structure

An example of a minimal network with three nodes, where the most connected node appears centrally.

Graph 3: Component with Only Two Variables

When the graph contains only two variables, no colorbar is rendered, as degree-based visual scaling is not applicable.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages