SmartQueryTools

Compute Correlation Matrix for NDJSON Files Online

Compute a Pearson correlation matrix for numeric columns in NDJSON files directly in your browser. Instantly spot which variables move together — colour-coded heatmap, no upload required.

How to compute Correlation Matrix for NDJSON files

  1. Drop your file onto the upload area. Every numeric column is found and selected.
  2. Click column names to leave out any you do not want, such as ID or ZIP code columns. At least two must stay selected.
  3. Click Compute Correlations. A colour-coded matrix appears, blue for positive and red for negative, with values to 3 decimals. Hover a cell for 6 decimals.
  4. Click Export Matrix CSV to download the matrix with values to 4 decimals.

Your file is processed locally in your browser and is never uploaded. The free limit is 50 MB per file; larger files work if your device has the memory for them.

Worked example

An estate agent has recent house sales and wants to see which property features move with the sale price before building a pricing model.

Input (NDJSON)

{"floor_area_sqft":1450,"bedrooms":3,"age_years":32,"sale_price":612000}
{"floor_area_sqft":2100,"bedrooms":4,"age_years":8,"sale_price":845000}
{"floor_area_sqft":980,"bedrooms":2,"age_years":55,"sale_price":455000}
{"floor_area_sqft":1720,"bedrooms":3,"age_years":20,"sale_price":701000}
{"floor_area_sqft":2600,"bedrooms":5,"age_years":3,"sale_price":990000}
{"floor_area_sqft":1200,"bedrooms":2,"age_years":41,"sale_price":540000}

Settings

  • Numeric columns: floor_area_sqft, bedrooms, age_years, sale_price (all selected)
  • Export: Export Matrix CSV

Result

floor_area_sqftbedroomsage_yearssale_price
floor_area_sqft1.00000.9830-0.96690.9991
bedrooms0.98301.0000-0.93060.9798
age_years-0.9669-0.93061.0000-0.9721
sale_price0.99910.9798-0.97211.0000

The output is always a CSV, whatever the input format, with an empty top-left header cell. Floor area tracks price almost perfectly at 0.9991. Age is strongly negative at -0.9721: older homes sold for less. The diagonal is 1 because each column matches itself, and the matrix is symmetric. With only six rows these values are fragile, and one unusual sale could move them a lot.

Frequently Asked Questions

Which correlation method is used?

Pearson correlation, which measures straight-line relationships. A strong curved relationship can still show a value near 0. Spearman and Kendall are not available.

Why does a cell show NaN or a dash?

NaN means one of the two columns has the same value in every row it shares with the other, or only one shared row exists, so there is no variation to correlate. A dash means there were no rows with values in both columns. In the CSV export a dash becomes an empty cell.

Is there a limit on the number of columns?

There is no fixed limit, but the matrix grows with the square of the column count. Deselect IDs and other columns that are not real measures to keep it readable.

Related Tools

Detect Outliers in CSV Files Online

Detect statistical outliers in CSV files directly in your browser. Flag or remove rows where numeric values exceed a chosen number of standard deviations from the mean — no upload required.

Normalize Columns in CSV Files Online

Normalize numeric columns in CSV files using min-max scaling (0–1) or z-score standardisation (mean=0, std=1). Adds new columns alongside the originals — no upload required.

Manage Columns in CSV Files Online

Drop or select specific columns from CSV files directly in your browser. No upload required.

Compute Correlation Matrix for CSV Files Online

Compute a Pearson correlation matrix for numeric columns in CSV files directly in your browser. Instantly spot which variables move together — colour-coded heatmap, no upload required.

Compute Correlation Matrix for Excel Files Online

Compute a Pearson correlation matrix for numeric columns in Excel files directly in your browser. Instantly spot which variables move together — colour-coded heatmap, no upload required.

Compute Correlation Matrix for Parquet Files Online

Compute a Pearson correlation matrix for numeric columns in Parquet files directly in your browser. Instantly spot which variables move together — colour-coded heatmap, no upload required.

Compute Correlation Matrix for JSON Files Online

Compute a Pearson correlation matrix for numeric columns in JSON files directly in your browser. Instantly spot which variables move together — colour-coded heatmap, no upload required.

NDJSON Viewer Online

View and inspect NDJSON files directly in your browser. Browse rows, check column names and data types — no upload required, your data stays on your device.