PairBook
HomeCGNX › CGNX vs TRS

CGNX vs TRS: Correlation

Measured on weekly returns over the past three years, Cognex Corporation (CGNX) and TriMas Corporation (TRS) carry a correlation of 0.51, a moderate link.

Data as of 2026-08-27 · refreshed every trading day · weekly returns · methodology

Correlation (3Y)
0.51
moderate
Correlation (1Y)
0.44
last 12 months
Correlation (5Y)
0.44
long-run
Ann. covariance
770.7
%² · weekly, annualized

How correlated are CGNX and TRS?

Over the past 3 years, CGNX and TRS moved with a correlation of 0.51, which is moderate. Recent behaviour matches the longer record: 0.44 over 1 year against 0.51 over 3. Over 5 years the correlation is 0.44, and the annualized covariance of weekly returns is 770.7 %².

Within CGNX's tracked universe of 16 assets, TRS comes in at #7 by 3-year correlation. Their recent paths diverged sharply: over the last 12 months CGNX outperformed by 40.4 percentage points (+43.2% for CGNX against +2.8% for TRS).

How is this computed?

Pearson correlation on weekly returns: ρ(A,B) = cov(rA, rB) / (σA · σB), over windows of 52, 156 and 260 weeks. Covariance is annualized (×52) and expressed in %². Full definitions on the methodology page.

CGNX vs TRS: side by side

CGNX (Cognex Corporation)TRS (TriMas Corporation)
1-year return+43.2%+2.8%
5-year return-27.4%+25.8%
Volatility (ann.)45.5%33.3%
Beta vs S&P 5001.270.76
Max drawdown (3Y)-55.7%-29.5%
Market cap$10.6B$1.4B
P/E (trailing)59.419.2
Dividend yield0.54%0.40%
Sector / categoryUS ListedUS Listed
Lower P/E: TRS 19.2 vs 59.4Higher yield: CGNX 0.54% vs 0.40%Smaller drawdown: TRS -29.5% vs -55.7%Higher 5y return: TRS +25.8% vs -27.4%
-20%0%+52%2025-09-052026-08-27
Both assets over the last year, indexed to 100 at the starting week. CGNX · TRS

Year-by-year returns

YearCGNXTRS
2022-39.1%-24.6%
2023-10.8%-8.1%
2024-13.4%-2.3%
2025+1.2%+45.0%
2026+75.8%+12.0%

Calendar-year price returns; the current year is year-to-date as of the data date above.

Are CGNX and TRS good diversifiers for each other?

To a limited degree. At 0.51 the two still catch most of the same waves, so the pair smooths returns a little without insulating either from a shared selloff.

FAQ

What is the correlation between CGNX and TRS?

As of 2026-08-27, the correlation of weekly returns between CGNX and TRS is 0.51 over 3 years, 0.44 over 1 year and 0.44 over 5 years.

Is TRS a good diversifier for CGNX?

To a limited degree. At 0.51 the two still catch most of the same waves, so the pair smooths returns a little without insulating either from a shared selloff.

What does a correlation of 0.51 mean?

A reading of 0.51 sits on a scale from −1 (opposite moves) through 0 (unrelated) to +1 (identical moves). Correlation captures direction, not magnitude or performance.

Use this data

JSON API · no key required
$ curl https://www.pairbook.io/api/v1/pairs/cgnx-vs-trs.json

CGNX vs TRS: 3-year weekly correlation 0.51CGNX vs TRS0.51

Markdown for the live badge, attribution link included:

[![CGNX vs TRS correlation](https://www.pairbook.io/api/v1/badge/cgnx-vs-trs.svg)](https://www.pairbook.io/pair/cgnx-vs-trs/)

No key needed, free to use. Full endpoint list in the API documentation.

Related comparisons

Hubs: CGNX correlations · TRS correlations