# Hotelling's T² (/docs/analyses/hotelling-t2)



## When to use it [#when-to-use-it]

Use Hotelling’s T² when you have exactly two groups and several numeric outcomes. It is the multivariate version of the independent-samples t-test. For example: do lecture and workshop students differ on recall and confidence at the same time?

Three or more groups: use [MANOVA](/docs/analyses/manova). One outcome: use the [independent-samples t-test](/docs/analyses/ttest-independent).

## Assumptions [#assumptions]

The outcomes are numeric. The two groups are separate. The outcomes should be roughly multivariate normal, with a similar covariance pattern in each group.

Tensr does not test those assumptions. It does compute η² from the T² statistic and prints it when it is available. You cannot turn that off.

## Running it in Tensr [#running-it-in-tensr]

<Steps>
  <Step>
    Analyze → Correlate → Hotelling's T². In chat: “Hotelling’s T-squared of recall and confidence by method.”
  </Step>

  <Step>
    Group column must contain two groups, or you pass exactly two labels in group values. Dependent columns are the numeric outcomes.
  </Step>

  <Step>
    There is no post-hoc option and no equal-covariance switch.
  </Step>
</Steps>

## Options [#options]

<TypeTable
  type="{
  group_column: {
    type: 'string',
    description: 'Grouping column. Two groups.',
  },
  dependent_columns: {
    type: 'string[]',
    description: 'Numeric outcomes compared jointly.',
  },
  group_values: {
    type: 'string[]',
    description: 'Optional. Two group labels to keep when the column has more.',
  },
  decimal_places: {
    type: '0–6',
    description: 'Report output. Decimal places.',
    default: '3',
  },
  apa_format: {
    type: 'boolean',
    description: 'Report output. APA-style tables.',
    default: 'true',
  },
  include_charts: {
    type: 'boolean',
    description: 'Report output. Box plot of the first outcome by group.',
    default: 'true',
  },
}"
/>

## Reading the output [#reading-the-output]

Two tutorial groups drawn from the same marking scheme, on score and confidence. The groups were not built to differ.

| Variable   | A mean | B mean | Difference |
| ---------- | -----: | -----: | ---------: |
| score      | 68.575 | 68.935 |      -0.36 |
| confidence | 48.407 | 51.355 |     -2.948 |

Hotelling's T² comparing A vs B on 2 variable(s) (score, confidence). The primary result is not significant (p = .276). This is not large enough to treat the comparison this page is about as a reliable association. The result is non-significant: the data are still compatible with no effect. Metrics: T² = 2.653; F = 1.31; p-value = .276; η² = 0.033.

## Reporting (APA 7) [#reporting-apa-7]

Hotelling's T² comparing A vs B on 2 variable(s) (score, confidence). This result is not significant (p = .276). Report the estimate with that p, and do not describe the pattern as a reliable effect.

## Coming from SPSS [#coming-from-spss]

The path stored in Tensr is Analyze → Compare Means → Hotelling. The menu you actually open is Analyze → Correlate → Hotelling's T².

SPSS often reaches this test through Multivariate GLM with two groups. Tensr prints T², the converted F, p, η², and the two group means. It does not print a covariance matrix or a univariate t for each outcome.

## Related [#related]

Three or more groups, or a follow-up ANOVA per outcome: [MANOVA](/docs/analyses/manova). One outcome: [independent-samples t-test](/docs/analyses/ttest-independent).
