CalcWorldHub
Free online calculator · no signup

Two by two set canonical correlations calculator

Find two canonical correlations between one pair of variables and a second pair, rather than comparing isolated variable pairs.

4,000 tools
Two by two set canonical correlations calculator — Rows X1 X2 Y1 Y2 and calculation method
Two by two set canonical correlations calculator: inputs and calculation method.

How to use this calculator

Find two canonical correlations between one pair of variables and a second pair, rather than comparing isolated variable pairs.

  1. Enter Rows X1 X2 Y1 Y2. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Two by two set canonical correlations explained

This guide follows two by two set canonical correlations calculator from its stated formula through a worked example, then identifies the assumptions that bound the result.

First canonical correlation0.9914
First canonical correlation: 0.99139832 in the worked scenario.

Inputs, symbols, and units

x — Rows X1 X2 Y1 Y2
Complete row-major observations ordered X1, X2, Y1, Y2. The first pair forms one variable set and the second pair the other. Use comma-separated values in the stated order.

Formula and method

ρj²=eigenvalues[Sxx⁻¹SxySyy⁻¹Syx]; descriptive Wilks Λ=(1−ρ1²)(1−ρ2²).

Rows contain four measurements in the fixed order X1,X2,Y1,Y2. Sample covariance blocks define two optimized linear-combination correlations. The second pair is constrained to the remaining canonical direction; results are ordered from larger to smaller.

A worked scenario

Rows X1 X2 Y1 Y2 = 1,2,2,1,2,1,3,2,3,4,4,3,4,2,6,1,5,5,5,4,6,3,8,3,7,6,8,5,8,4,9,4.

  • First canonical correlation: 0.99139832
  • Second canonical correlation: 0.79601556
  • Wilks lambda descriptive product: 0.0062755

Eight rows provide paired two-variable sets. The calculation finds a combination of X1 and X2 that aligns with a combination of Y1 and Y2, rather than simply correlating X1 with Y1.

Assumptions and edge cases

At least six complete independent rows and positive-definite within-set covariance blocks. This page gives descriptive canonical correlations and lambda, without loadings or a significance approximation. Near singularity and small samples can inflate fitted correlations.

Reading the outputs

Canonical correlations lie between zero and one because signs of the optimized combinations can be reversed. Lambda is a descriptive product, not a p-value.

Frequently asked questions

Is the second correlation just the second-best raw pair?

No. It is another optimized set-to-set direction with canonical orthogonality constraints.

Are coefficients or loadings returned?

No. This bounded tool returns correlations and descriptive lambda only.

Does scaling a variable change the correlations?

In exact arithmetic, nonzero rescaling within a full-rank set preserves them, though extreme scales can harm numerical precision.

How do I use the Two by two set canonical correlations calculator?

Enter Rows X1 X2 Y1 Y2. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Two by two set canonical correlations?

Rows X1 X2 Y1 Y2 = 1,2,2,1,2,1,3,2,3,4,4,3,4,2,6,1,5,5,5,4,6,3,8,3,7,6,8,5,8,4,9,4. First canonical correlation: 0.99139832 Second canonical correlation: 0.79601556 Wilks lambda descriptive product: 0.0062755 Eight rows provide paired two-variable sets. The calculation finds a combination of X1 and X2 that aligns with a combination of Y1 and Y2, rather than simply correlating X1 with Y1.