vasco

discover hidden correlations in your data with MIC

Overview

PackageVersionCategoryLicenseLanguage
vasco0.1.0FUNCGPL-3.0C
IDExtensionBinLibLoadCreateTrustRelocSchema
4660vascoNoYesNoYesNoYes-
Relatedpg_idkit pgx_ulid pg_uuidv7 pg_hashids sequential_uuids ddsketch tdigest uuid-ossp

Version

TypeRepoVersionPG VerPackageDeps
EXTPIGSTY0.1.01817161514vasco-
RPMPIGSTY0.1.01817161514vasco_$v-
DEBPIGSTY0.1.01817161514postgresql-$v-vasco-
OS / PGPG18PG17PG16PG15PG14
el8.x86_64
el8.aarch64
el9.x86_64
el9.aarch64
el10.x86_64
el10.aarch64
d12.x86_64
d12.aarch64
d13.x86_64
d13.aarch64
u22.x86_64
u22.aarch64
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
u24.x86_64
u24.aarch64
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0
PIGSTY 0.1.0

Build

You can build the RPM / DEB packages for vasco using pig build:

pig build pkg vasco         # build RPM / DEB packages

Install

You can install vasco directly. First, make sure the PGDG and PIGSTY repositories are added and enabled:

pig repo add pgsql -u          # Add repo and update cache

Install the extension using pig or apt/yum/dnf:

pig install vasco;          # Install for current active PG version
pig ext install -y vasco -v 18  # PG 18
pig ext install -y vasco -v 17  # PG 17
pig ext install -y vasco -v 16  # PG 16
pig ext install -y vasco -v 15  # PG 15
pig ext install -y vasco -v 14  # PG 14
dnf install -y vasco_18       # PG 18
dnf install -y vasco_17       # PG 17
dnf install -y vasco_16       # PG 16
dnf install -y vasco_15       # PG 15
dnf install -y vasco_14       # PG 14
apt install -y postgresql-18-vasco   # PG 18
apt install -y postgresql-17-vasco   # PG 17
apt install -y postgresql-16-vasco   # PG 16
apt install -y postgresql-15-vasco   # PG 15
apt install -y postgresql-14-vasco   # PG 14

Create Extension:

CREATE EXTENSION vasco;

Usage

vasco: Maximal Information Coefficient (MIC) extension for PostgreSQL

Discover hidden correlations in your data using the Maximal Information Coefficient (MIC) and the MINE family of statistics.

CREATE EXTENSION vasco;

Aggregate Functions

FunctionDescription
mic(x, y)Maximal Information Coefficient – detects any relationship
mas(x, y)Maximum Asymmetry Score – deviation from monotonicity
mev(x, y)Maximum Edge Value – degree of continuous function sampling
mcn(x, y)Minimum Cell Number – complexity of association
mcn_general(x, y)MCN with eps = 1 - MIC
tic(x, y)Total Information Coefficient
gmic(x, y)Generalized Mean Information Coefficient

Utility Functions

FunctionDescription
vasco_corr_matrix(table_name, output_table)Compute MIC for all column pairs and store as a correlation matrix table

Configuration

SET vasco.mic_estimator = 'ApproxMIC';  -- or 'MIC_e'
SET vasco.mine_c = ...;
SET vasco.mine_alpha = ...;

Examples

-- Compute MIC between column pairs
SELECT mic(x, cubic), mic(x, periodic), mic(x, rand_y)
FROM vasco_data;
-- 1, 1, 0.15

-- Create a full correlation matrix
SELECT vasco_corr_matrix('my_table', 'mic_my_table');
SELECT * FROM mic_my_table;

Last Modified 2026-03-12: add pg extension catalog (95749bf)